Fix networks and add some debug tools
- Create two networks: public (NATed) and private (isolated) - Add some debug tools to minion nodes
This commit is contained in:
parent
0e48ce51ce
commit
7a53c32a3b
2 changed files with 15 additions and 2 deletions
15
Vagrantfile
vendored
15
Vagrantfile
vendored
|
@ -68,8 +68,21 @@ Vagrant.configure("2") do |config|
|
||||||
domain.disk_bus = "virtio"
|
domain.disk_bus = "virtio"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Networks and interfaces
|
||||||
ip = "#{$private_subnet}.#{i+10}"
|
ip = "#{$private_subnet}.#{i+10}"
|
||||||
test_vm.vm.network :private_network, :ip => "#{ip}"
|
pub_ip = "#{$public_subnet}.#{i+10}"
|
||||||
|
# "public" network with nat forwarding
|
||||||
|
test_vm.vm.network :private_network,
|
||||||
|
:ip => pub_ip,
|
||||||
|
:model_type => "e1000",
|
||||||
|
:libvirt__dhcp_enabled => false,
|
||||||
|
:libvirt__forward_mode => "nat"
|
||||||
|
# "private" isolated network
|
||||||
|
test_vm.vm.network :private_network,
|
||||||
|
:ip => ip,
|
||||||
|
:model_type => "e1000",
|
||||||
|
:libvirt__dhcp_enabled => false,
|
||||||
|
:libvirt__forward_mode => "none"
|
||||||
|
|
||||||
# Provisioning
|
# Provisioning
|
||||||
config.vm.provision "file", source: "ssh", destination: "~/ssh"
|
config.vm.provision "file", source: "ssh", destination: "~/ssh"
|
||||||
|
|
|
@ -4,7 +4,7 @@ echo node > /var/tmp/role
|
||||||
# Packages
|
# Packages
|
||||||
sudo apt-get --yes update
|
sudo apt-get --yes update
|
||||||
sudo apt-get --yes upgrade
|
sudo apt-get --yes upgrade
|
||||||
sudo apt-get --yes install screen vim telnet tcpdump python-pip
|
sudo apt-get --yes install screen vim telnet tcpdump python-pip traceroute iperf3 nmap ethtool
|
||||||
|
|
||||||
# Pip
|
# Pip
|
||||||
sudo pip install kpm
|
sudo pip install kpm
|
||||||
|
|
Loading…
Reference in a new issue