diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-03 08:29:52 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-03 08:29:52 -0500 |
commit | 94c5c1fe5c280054132077dedcc1d0b96558a91f (patch) | |
tree | 4cfbf11355dbf2e2631cfe8b9b20937ba4f445da /roles/etcd_common/tasks | |
parent | a4d5e59c413746cb1715b15a9e158be3f3a94a54 (diff) | |
parent | 02a6d993509ac395165c504dba7b92c4f2eb907c (diff) | |
download | openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.tar.gz openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.tar.bz2 openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.tar.xz openshift-94c5c1fe5c280054132077dedcc1d0b96558a91f.zip |
Merge pull request #702 from detiber/etcd_cert_fix
Fix etcd cert generation when etcd_interface is defined
Diffstat (limited to 'roles/etcd_common/tasks')
-rw-r--r-- | roles/etcd_common/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/etcd_common/tasks/main.yml b/roles/etcd_common/tasks/main.yml new file mode 100644 index 000000000..cd108495d --- /dev/null +++ b/roles/etcd_common/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- set_fact: + etcd_host_int_map: "{{ lookup('template', '../templates/host_int_map.j2') | from_yaml }}" + +- fail: + msg: "Interface {{ item.value.etcd_interface }} not found on host {{ item.key }}" + when: "'etcd_interface' in item.value and 'interface' not in item.value" + with_dict: etcd_host_int_map + +- fail: + msg: IPv4 address not found for {{ item.value.interface.device }} on host {{ item.key }} + when: "'ipv4' not in item.value.interface or 'address' not in item.value.interface.ipv4" + with_dict: etcd_host_int_map |