summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-03-03 08:42:07 -0500
committerGitHub <noreply@github.com>2017-03-03 08:42:07 -0500
commitb777f84e9e86558e9083b5ce8e62d606f955be55 (patch)
treed2f132cbadd85940175c9d856405c6c625d45700
parent4630305622b6f8d6957f93da72b15fe4bda1fd02 (diff)
parentfb17c969069121aa45b8041804126da40f082ffb (diff)
downloadopenshift-b777f84e9e86558e9083b5ce8e62d606f955be55.tar.gz
openshift-b777f84e9e86558e9083b5ce8e62d606f955be55.tar.bz2
openshift-b777f84e9e86558e9083b5ce8e62d606f955be55.tar.xz
openshift-b777f84e9e86558e9083b5ce8e62d606f955be55.zip
Merge pull request #3551 from sdodson/BZ1428532
Only set ownership to etcd for thirdparty datadir
-rw-r--r--roles/etcd/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml
index 17bec5352..b4ffc99e3 100644
--- a/roles/etcd/tasks/main.yml
+++ b/roles/etcd/tasks/main.yml
@@ -63,10 +63,17 @@
path: "{{ etcd_data_dir }}"
state: directory
mode: 0700
+ when: etcd_is_containerized | bool
+
+- name: Ensure etcd datadir ownership for thirdparty datadir
+ file:
+ path: "{{ etcd_data_dir }}"
+ state: directory
+ mode: 0700
owner: etcd
group: etcd
recurse: True
- when: etcd_is_containerized | bool or etcd_is_thirdparty | bool
+ when: etcd_is_thirdparty | bool
# TODO: Determine if the below reload would work here, for now just reload
- name: