diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-01-04 14:20:03 +0100 |
---|---|---|
committer | Michal Zegan <m.zegan@samsung.com> | 2019-01-17 15:19:21 +0100 |
commit | b5cd82b2ec6f4fe69eae27f70eb3b5eda52da368 (patch) | |
tree | 060acfd9bd4241bb1755fbde9c2ad1a7150f39b0 /ansible/roles/docker/tasks/main.yml | |
parent | cde2f33dfcd9728240d37c80383534a5b6af5caf (diff) |
Fix docker config handling in offline installer
This fixes adding of dns address to
/etc/docker/daemon.json to always use infra's ip address
instead of possibly using it's hostname.
Also similar change is done in handling of
/etc/resolv.conf in infrastructure.yml.
Ip address is specified by the "cluster_ip" variable placed on a host.
Inventory specifies ip for everything except resource server (just for consistency).
Change-Id: I2baa3f4c7d69b8dff109b5f8ae984134caf2af7d
Issue-ID: OOM-1573
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible/roles/docker/tasks/main.yml')
-rw-r--r-- | ansible/roles/docker/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml index 9851d4dc..09e790a4 100644 --- a/ansible/roles/docker/tasks/main.yml +++ b/ansible/roles/docker/tasks/main.yml @@ -20,7 +20,7 @@ json_add: path: /etc/docker/daemon.json key: dns - value: "{{ hostvars[groups.infrastructure[0]].ansible_default_ipv4.address }}" + value: "{{ hostvars[groups.infrastructure[0]].cluster_ip }}" notify: - Restart Docker |