From 5b67087f64cc0fada6cf3c8c92f4f6d29f15b466 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 8 Feb 2018 18:12:15 -0500 Subject: [PATCH] cobbler: Remove commented if statement Signed-off-by: David Galloway --- roles/cobbler/templates/snippets/cephlab_rc_local | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/cobbler/templates/snippets/cephlab_rc_local b/roles/cobbler/templates/snippets/cephlab_rc_local index 91f4978..a08b961 100644 --- a/roles/cobbler/templates/snippets/cephlab_rc_local +++ b/roles/cobbler/templates/snippets/cephlab_rc_local @@ -30,9 +30,7 @@ if [ ! -f /.cephlab_net_configured ]; then if command -v apt-get &>/dev/null; then echo -e "auto lo\niface lo inet loopback\n\nauto $nic\niface $nic inet dhcp" > /etc/network/interfaces else - #if [ ! -f /etc/sysconfig/network-scripts/ifcfg-$nic ]; then - echo -e "DEVICE=$nic\nBOOTPROTO=dhcp\nONBOOT=yes" > /etc/sysconfig/network-scripts/ifcfg-$nic - #fi + echo -e "DEVICE=$nic\nBOOTPROTO=dhcp\nONBOOT=yes" > /etc/sysconfig/network-scripts/ifcfg-$nic fi # Bounce the NIC so it gets a DHCP address ifdown $nic -- 2.39.5