diff --git a/roles/network_plugin/contiv/defaults/main.yml b/roles/network_plugin/contiv/defaults/main.yml index b6e237df577e125b1f1fb8df04c9dae6a697c40b..11c6e79a94cca785f1bac7f4b8c23828c3c92962 100644 --- a/roles/network_plugin/contiv/defaults/main.yml +++ b/roles/network_plugin/contiv/defaults/main.yml @@ -15,6 +15,9 @@ contiv_etcd_endpoints: |- contiv_etcd{{ loop.index }}=http://{{ hostvars[host]['ip'] | default(hostvars[host].ansible_default_ipv4['address']) }}:{{ contiv_etcd_peer_port }}{% if not loop.last %},{% endif %} {%- endfor %} +contiv_etcd_init_image_repo: ferest/etcd-initer +contiv_etcd_init_image_tag: latest + # Parameters for Contiv api-proxy contiv_enable_api_proxy: true contiv_api_proxy_port: 10000 diff --git a/roles/network_plugin/contiv/templates/contiv-etcd.yml.j2 b/roles/network_plugin/contiv/templates/contiv-etcd.yml.j2 index a6e9121d4ff11f122a7fb37917feaba1aed78e25..9d75028575165afd05dcdad29c5817ca8532ef84 100644 --- a/roles/network_plugin/contiv/templates/contiv-etcd.yml.j2 +++ b/roles/network_plugin/contiv/templates/contiv-etcd.yml.j2 @@ -26,7 +26,7 @@ spec: effect: NoSchedule initContainers: - name: contiv-etcd-init - image: ferest/etcd-initer:latest + image: {{ contiv_etcd_init_image_repo }}:{{ contiv_etcd_init_image_tag }} imagePullPolicy: Always env: - name: ETCD_INIT_ARGSFILE