From 69f9c72f414e6696d772630c812796b155fc4c9a Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Fri, 17 Jan 2014 07:28:36 +1300 Subject: [PATCH] Configure eth1 for DHCP in tripleo-gate instances Because we like our networks working. Change-Id: If6c6066727889e5bf327945e6b09d114b11c25fc --- .../files/nodepool/scripts/prepare_tripleo.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh b/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh index 58bf333e28..9adcdeaeed 100755 --- a/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh +++ b/modules/openstack_project/files/nodepool/scripts/prepare_tripleo.sh @@ -42,6 +42,16 @@ bash /opt/git/openstack/tripleo-incubator/scripts/pull-tools # refresh-env script working: # source tripleo-incubator/scripts/refresh-env ~/tripleo +# tripleo-gate runs with two networks - the public access network and eth1 +# pointing at the in-datacentre L2 network where we can talk to the test +# environments directly. We need to enable DHCP on eth1 though. +sudo dd of=/etc/network/interfaces oflag=append conv=notrunc << EOF +auto eth1 +iface eth1 inet dhcp +EOF +# Note that we don't bring it up during prepare - it's only needed to run +# tests. + # We'll want something like this for triplo when we do dependencies # #. /etc/lsb-release