Commit b6f58efe authored by Andreas Schmidt's avatar Andreas Schmidt

Change to bridged mode.

parent 108bc75c
......@@ -22,13 +22,13 @@ Vagrant.configure("2") do |config|
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", host_ip: "10.8.0.1", guest: 53, host: 53
config.vm.network "forwarded_port", host_ip: "10.8.0.1", guest: 4505, host: 4505
config.vm.network "forwarded_port", host_ip: "10.8.0.1", guest: 4506, host: 4506
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "public_network", ip: "10.8.0.2", bridge: [
"enp1s0f0"
]
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
......@@ -40,7 +40,6 @@ Vagrant.configure("2") do |config|
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "salt", "/srv/salt"
#config.vm.synced_folder "master", "/etc/dnsmasq.d/"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
......@@ -70,6 +69,10 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get upgrade
apt-get install dnsmasq
ln -s /vagrant/master/dnsmasq.conf /etc/dnsmasq.d/dnsmasq.conf
echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf
service dnsmasq restart
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sh install_salt.sh -P -M
SHELL
......
# Note: specify the interface as
# interface=eth0
# MAC-IP Bindings
dhcp-range=10.8.0.10,10.8.0.50,255.255.255.0,12h
dhcp-host=b8:27:eb:9c:d6:e3,10.8.0.2
# DNS Server Entries
dhcp-option=6,10.8.0.1
# DNS Zone
host-record=salt,10.8.0.1
no-resolv
# MAC-IP Bindings
dhcp-range=10.8.0.10,10.8.0.50,255.255.255.0,12h
dhcp-host=b8:27:eb:9c:d6:e3,10.8.0.3
# DNS Server Entries
dhcp-option=6,10.8.0.2
# DNS Zone
host-record=salt,10.8.0.2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment