summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-06-30 12:19:38 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-06-30 13:11:45 +0200
commitc7f631b3e233eb477fd5921ddf7ff720142a3a4e (patch)
tree34f982b2f29b9c1f5c17733be84a2a6c22cdbb2b /roles
parent312c1d100259b1d3778bedd8db091d6280089aba (diff)
downloadopenshift-c7f631b3e233eb477fd5921ddf7ff720142a3a4e.tar.gz
openshift-c7f631b3e233eb477fd5921ddf7ff720142a3a4e.tar.bz2
openshift-c7f631b3e233eb477fd5921ddf7ff720142a3a4e.tar.xz
openshift-c7f631b3e233eb477fd5921ddf7ff720142a3a4e.zip
run etcd_container with type:spc_t label
Diffstat (limited to 'roles')
-rw-r--r--roles/etcd/templates/etcd.docker.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/etcd/templates/etcd.docker.service b/roles/etcd/templates/etcd.docker.service
index adeca7a91..d9327f433 100644
--- a/roles/etcd/templates/etcd.docker.service
+++ b/roles/etcd/templates/etcd.docker.service
@@ -7,7 +7,7 @@ PartOf={{ openshift.docker.service_name }}.service
[Service]
EnvironmentFile={{ etcd_conf_file }}
ExecStartPre=-/usr/bin/docker rm -f {{ etcd_service }}
-ExecStart=/usr/bin/docker run --name {{ etcd_service }} --rm -v {{ etcd_data_dir }}:{{ etcd_data_dir }}:z -v {{ etcd_conf_dir }}:{{ etcd_conf_dir }}:ro --env-file={{ etcd_conf_file }} --net=host --entrypoint=/usr/bin/etcd {{ openshift.etcd.etcd_image }}
+ExecStart=/usr/bin/docker run --name {{ etcd_service }} --rm -v {{ etcd_data_dir }}:{{ etcd_data_dir }}:z -v {{ etcd_conf_dir }}:{{ etcd_conf_dir }}:ro --env-file={{ etcd_conf_file }} --net=host --security-opt label=type:spc_t --entrypoint=/usr/bin/etcd {{ openshift.etcd.etcd_image }}
ExecStop=/usr/bin/docker stop {{ etcd_service }}
SyslogIdentifier=etcd_container
Restart=always