From d9691df25b72c5b691b5a02436b95f4993798cd2 Mon Sep 17 00:00:00 2001 From: "Denis V. Meltsaykin" Date: Tue, 19 Jan 2016 15:08:40 +0300 Subject: [PATCH] DNS enhancement As we hardcode "peerdns=no" in eth0 during master node deployment a dirty hack is needed to make resolver work. This change introduces new option "DNS1=$ADMIN_SUBNET_GATEWAY" to ifcfg-eth1, although this address is not in eth1-network it will work anyway. Change-Id: I9ed1148b9acbd4e2539186421a31ec7996398ea1 --- jenkins/build_cluster/build_cluster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/build_cluster/build_cluster.py b/jenkins/build_cluster/build_cluster.py index 25f4cd8..7e1c4d2 100755 --- a/jenkins/build_cluster/build_cluster.py +++ b/jenkins/build_cluster/build_cluster.py @@ -450,10 +450,12 @@ def inject_ifconfig_ssh(): "IPADDR={ip}\n" \ "NETMASK={netmask}\n" \ "GATEWAY={gw}\n" \ + "DNS1={dns}\n" \ .format( ip=str(cfg["PUBLIC_SUBNET"].ip + 2), netmask=str(cfg["PUBLIC_SUBNET"].netmask), - gw=str(cfg["PUBLIC_SUBNET"].ip + 1) + gw=str(cfg["PUBLIC_SUBNET"].ip + 1), + dns=str(cfg["ADMIN_SUBNET"].ip + 1) ) print ("\nTo fuel:\n{0}".format(rule)) ifcfg = "/etc/sysconfig/network-scripts/ifcfg-eth1" -- 2.45.2