Merge pull request #12 from stackhpc/dev-static-eth1
Add static configuration of eth1 in development environment
This commit is contained in:
commit
c60c07b191
9
Vagrantfile
vendored
9
Vagrantfile
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user