summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-06-07 13:30:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-06-07 13:30:03 +0000
commit473a4d2598894e82e845310e3763a0ec8d6689c2 (patch)
treee0abafae54902286a0545c5363cedfdb900d5992 /xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml
parent41d49bfaa73bee43ad17addbdf75eec94fc3ecbb (diff)
parenta82590eb643383127abea5dc7320445e03d7a9c2 (diff)
Merge "roles: bootstrap-host: Ensure DNS info from IDF is respected"
Diffstat (limited to 'xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml')
-rw-r--r--xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml b/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml
index c9c9d83c..e2b5aa4a 100644
--- a/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml
+++ b/xci/playbooks/roles/bootstrap-host/tasks/network_suse.yml
@@ -30,6 +30,14 @@
dest: "/etc/sysconfig/network/scripts/network-config-suse"
mode: 0755
+- name: Configure static DNS on SUSE
+ lineinfile:
+ regexp: '^NETCONFIG_DNS_STATIC_SERVERS=.*'
+ line: "NETCONFIG_DNS_STATIC_SERVERS={{ host_info[inventory_hostname]['public']['dns'] }}"
+ path: "/etc/sysconfig/network/config"
+ state: present
+ when: host_info[inventory_hostname]['public']['dns'] is defined
+
- name: Configure routes on SUSE
template:
src: "{{ installer_type }}/{{ ansible_os_family | lower }}.routes.j2"