Add static configuration of eth1 in development environment

This is required in order to allow kayobe to reach the controller prior to
running the network configuration plays.
This commit is contained in:
Mark Goddard 2017-09-04 15:47:05 +00:00
parent 4fbf0dd50f
commit bbbc55e4a2

9
Vagrantfile vendored
View File

@ -84,6 +84,15 @@ EOF" | sudo -s
config.vm.provision :reload config.vm.provision :reload
config.vm.provision "shell", privileged: false, inline: <<-SHELL config.vm.provision "shell", privileged: false, inline: <<-SHELL
cat << EOF | sudo tee /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
BOOTPROTO=none
IPADDR=192.168.33.3
NETMASK=255.255.255.0
ONBOOT=yes
NM_CONTROLLED=no
EOF
sudo ifup eth1 sudo ifup eth1
sudo yum -y install gcc git vim python-virtualenv sudo yum -y install gcc git vim python-virtualenv