Merge pull request #12 from stackhpc/dev-static-eth1

Add static configuration of eth1 in development environment
This commit is contained in:
Mark Goddard 2017-09-07 18:32:05 +01:00 committed by GitHub
commit c60c07b191

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