From: David Galloway Date: Thu, 8 Feb 2018 23:12:15 +0000 (-0500) Subject: cobbler: Remove commented if statement X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5b67087f64cc0fada6cf3c8c92f4f6d29f15b466;p=ceph-cm-ansible.git cobbler: Remove commented if statement Signed-off-by: David Galloway --- 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