From 05bc41286072c3fb8e7e9df4b3896e91bd75953e Mon Sep 17 00:00:00 2001 From: toby Date: Wed, 1 May 2019 03:49:00 +0000 Subject: [PATCH] MAJOR: static hostname assignments in favor of disabling ipv4 on mgmt1, frr reload, and simple rename of a couple of files to make it simpler --- debian/{wit-network-config.displace => displace} | 0 debian/{wit-network-config.install => install} | 0 debian/{wit-network-config.links => links} | 0 debian/{wit-network-config.postinst => postinst} | 6 ++++-- debian/{wit-network-config.preinst => preinst} | 0 debian/{wit-network-config.transform => transform} | 0 6 files changed, 4 insertions(+), 2 deletions(-) rename debian/{wit-network-config.displace => displace} (100%) rename debian/{wit-network-config.install => install} (100%) rename debian/{wit-network-config.links => links} (100%) rename debian/{wit-network-config.postinst => postinst} (98%) rename debian/{wit-network-config.preinst => preinst} (100%) rename debian/{wit-network-config.transform => transform} (100%) diff --git a/debian/wit-network-config.displace b/debian/displace similarity index 100% rename from debian/wit-network-config.displace rename to debian/displace diff --git a/debian/wit-network-config.install b/debian/install similarity index 100% rename from debian/wit-network-config.install rename to debian/install diff --git a/debian/wit-network-config.links b/debian/links similarity index 100% rename from debian/wit-network-config.links rename to debian/links diff --git a/debian/wit-network-config.postinst b/debian/postinst similarity index 98% rename from debian/wit-network-config.postinst rename to debian/postinst index 8f4aed6..321fd58 100755 --- a/debian/wit-network-config.postinst +++ b/debian/postinst @@ -34,6 +34,8 @@ case "$1" in ## START gather all the info from the box and generate the variabels HOSTNAME="$(hostname)" DOMAINNAME="$(hostname -d)" + echo $HOSTNAME >/etc/hostname + ## new, trying to go to dhcp6, setting hostname statically. hopefully this allows us to disable dhcp4 dig_txt() { @@ -228,8 +230,7 @@ case "$1" in pre-up /bin/ip link set up dev mgmt pre-up /bin/ip link set master mgmt dev $ifname post-down /bin/ip link del dev mgmt - iface $ifname inet dhcp - # still need it, but at this point only for hostname, we prob think of something + #iface $ifname inet dhcp EOF @@ -417,6 +418,7 @@ case "$1" in systemctl enable strongswan || true ## in case we kick-start or done have it enabled for some reason systemctl enable firewall systemctl restart firewall + systemctl reload frr ## END services section diff --git a/debian/wit-network-config.preinst b/debian/preinst similarity index 100% rename from debian/wit-network-config.preinst rename to debian/preinst diff --git a/debian/wit-network-config.transform b/debian/transform similarity index 100% rename from debian/wit-network-config.transform rename to debian/transform