From: Denis V. Meltsaykin Date: Tue, 19 Jan 2016 12:08:40 +0000 (+0300) Subject: DNS enhancement X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d9691df25b72c5b691b5a02436b95f4993798cd2;p=tools%2Fsustaining.git 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 --- 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"