diff --git a/Vagrantfile b/Vagrantfile index 736d858..014ec3c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,10 +8,6 @@ Vagrant.configure("2") do |config| config.vm.post_up_message = nil config.vm.synced_folder ".", "/vagrant", disabled: true, type: "9p" - config.vm.provision :shell, - path: "scripts/change-vmdebootstrap-default-dhcp.sh" - #config.vm.provision "shell", - # inline: "sed -i 's/^mesg n$/tty -s \\&\\& mesg n/g' /root/.profile" config.vm.provision "shell", path: "scripts/add_salt_to_etc_hosts.sh" diff --git a/scripts/change-vmdebootstrap-default-dhcp.sh b/scripts/change-vmdebootstrap-default-dhcp.sh deleted file mode 100644 index a5f3c38..0000000 --- a/scripts/change-vmdebootstrap-default-dhcp.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e - -debootstrap_network=/etc/systemd/network/99-dhcp.network - -if grep -q '^Name=\\*' "${debootstrap_network}"; then - primary_nic=$(ls -1 /sys/class/net | grep -v lo |sort | head -1) - sed -i "s/^Name=e\\*/Name=${primary_nic}/" \ - "${debootstrap_network}" - systemctl restart systemd-networkd.service - echo "Changed systemd network configuration" -else - echo "Systemd network configuration has already been changed" -fi