diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-06-30 12:19:38 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-06-30 13:11:45 +0200 |
commit | c7f631b3e233eb477fd5921ddf7ff720142a3a4e (patch) | |
tree | 34f982b2f29b9c1f5c17733be84a2a6c22cdbb2b /roles | |
parent | 312c1d100259b1d3778bedd8db091d6280089aba (diff) | |
download | openshift-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.service | 2 |
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 |