diff options
| author | Scott Dodson <sdodson@redhat.com> | 2017-03-03 08:42:07 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-03 08:42:07 -0500 | 
| commit | b777f84e9e86558e9083b5ce8e62d606f955be55 (patch) | |
| tree | d2f132cbadd85940175c9d856405c6c625d45700 /roles | |
| parent | 4630305622b6f8d6957f93da72b15fe4bda1fd02 (diff) | |
| parent | fb17c969069121aa45b8041804126da40f082ffb (diff) | |
| download | openshift-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
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/etcd/tasks/main.yml | 9 | 
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: | 
