|
@@ -3,9 +3,9 @@
|
|
|
package:
|
|
|
name: "etcd{{ '-' + etcd_version if etcd_version is defined else '' }}"
|
|
|
state: present
|
|
|
- when: not etcd_is_atomic | bool
|
|
|
- delegate_to: "{{ etcd_ca_host }}"
|
|
|
- run_once: true
|
|
|
+ when:
|
|
|
+ - not etcd_is_atomic | bool
|
|
|
+ - not openshift_is_bootstrapped | bool
|
|
|
register: result
|
|
|
until: result is succeeded
|
|
|
|
|
@@ -180,8 +180,8 @@
|
|
|
file:
|
|
|
path: "{{ item }}"
|
|
|
mode: 0600
|
|
|
- owner: "etcd"
|
|
|
- group: "etcd"
|
|
|
+ owner: "{{ 'etcd' if not openshift_is_bootstrapped else omit }}"
|
|
|
+ group: "{{ 'etcd' if not openshift_is_bootstrapped else omit }}"
|
|
|
when: etcd_url_scheme == 'https'
|
|
|
with_items:
|
|
|
- "{{ etcd_ca_file }}"
|
|
@@ -192,8 +192,8 @@
|
|
|
file:
|
|
|
path: "{{ item }}"
|
|
|
mode: 0600
|
|
|
- owner: "etcd"
|
|
|
- group: "etcd"
|
|
|
+ owner: "{{ 'etcd' if not openshift_is_bootstrapped else omit }}"
|
|
|
+ group: "{{ 'etcd' if not openshift_is_bootstrapped else omit }}"
|
|
|
when: etcd_peer_url_scheme == 'https'
|
|
|
with_items:
|
|
|
- "{{ etcd_peer_ca_file }}"
|
|
@@ -204,6 +204,6 @@
|
|
|
file:
|
|
|
path: "{{ etcd_conf_dir }}"
|
|
|
state: directory
|
|
|
- owner: "etcd"
|
|
|
- group: "etcd"
|
|
|
+ owner: "{{ 'etcd' if not openshift_is_bootstrapped else omit }}"
|
|
|
+ group: "{{ 'etcd' if not openshift_is_bootstrapped else omit }}"
|
|
|
mode: 0700
|