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:
Aleksandr Didenko 2016-06-20 14:42:46 +02:00
parent 0e48ce51ce
commit 7a53c32a3b
2 changed files with 15 additions and 2 deletions

15
Vagrantfile vendored
View file

@ -68,8 +68,21 @@ Vagrant.configure("2") do |config|
domain.disk_bus = "virtio"
end
# Networks and interfaces
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
config.vm.provision "file", source: "ssh", destination: "~/ssh"

View file

@ -4,7 +4,7 @@ echo node > /var/tmp/role
# Packages
sudo apt-get --yes update
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
sudo pip install kpm