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:
parent
4fbf0dd50f
commit
bbbc55e4a2
9
Vagrantfile
vendored
9
Vagrantfile
vendored
@ -84,6 +84,15 @@ EOF" | sudo -s
|
||||
config.vm.provision :reload
|
||||
|
||||
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 yum -y install gcc git vim python-virtualenv
|
||||
|
Loading…
Reference in New Issue
Block a user