diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-11-20 17:43:08 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-11-20 17:43:08 -0500 |
commit | 85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e (patch) | |
tree | 94a48919c5bd29a7653486309b4929fb21ac7d8b /roles/etcd/defaults | |
parent | 6313f519307cf50055589c3876d8bec398bbc4d4 (diff) | |
download | openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.tar.gz openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.tar.bz2 openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.tar.xz openshift-85efc9cffcc8a80dc3b939c5e4ffcd7825b4300e.zip |
Refactor etcd image
Simplify logic for etcd_image
Diffstat (limited to 'roles/etcd/defaults')
-rw-r--r-- | roles/etcd/defaults/main.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/etcd/defaults/main.yaml b/roles/etcd/defaults/main.yaml index 4b734d4ed..9a3652a2b 100644 --- a/roles/etcd/defaults/main.yaml +++ b/roles/etcd/defaults/main.yaml @@ -6,6 +6,12 @@ r_etcd_common_backup_sufix_name: '' r_etcd_common_etcd_runtime: "docker" r_etcd_common_embedded_etcd: false +osm_etcd_image: 'registry.access.redhat.com/rhel7/etcd' +etcd_image_dict: + origin: "registry.fedoraproject.org/f26/etcd" + openshift-enterprise: "{{ osm_etcd_image }}" +etcd_image: "{{ etcd_image_dict[openshift_deployment_type | default('origin')] }}" + # etcd run on a host => use etcdctl command directly # etcd run as a docker container => use docker exec # etcd run as a runc container => use runc exec |