Commit 10533977 authored by Deac Karns's avatar Deac Karns

broke out dns setting and system ctl masking to individual tasks

parent f692e810
......@@ -20,6 +20,16 @@ Vagrant.configure("2") do |config|
config.vm.provision "file", source: "./setupVars.conf", destination: "/home/vagrant/setupVars.conf"
config.vm.provision "file", source: "./dnsmasq.conf", destination: "/home/vagrant/dnsmasq.conf"
config.vm.provision "shell", inline: <<-SHELL
echo -e "Setting resolv.conf DNS to 8.8.8.8"
sed -i 's/^nameserver .*$/nameserver 8.8.8.8/' /etc/resolv.conf
SHELL
config.vm.provision "shell", inline: <<-SHELL
echo -e "Disabling unatended upgrades"
systemctl mask unattended-upgrade.service
SHELL
class Renew
def to_s
print "\n\nDo you want to renew your DHCP settings (y/n): "
......@@ -55,9 +65,6 @@ Vagrant.configure("2") do |config|
curl -sSL https://install.pi-hole.net | bash /dev/stdin --unattended
pihole -a -p secret
fi
sed -i 's/^nameserver .*$/nameserver 8.8.8.8/' /etc/resolv.conf
systemctl mask unattended-upgrade.service
SHELL
......
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