]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Remove commented if statement
authorDavid Galloway <dgallowa@redhat.com>
Thu, 8 Feb 2018 23:12:15 +0000 (18:12 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 8 Feb 2018 23:12:15 +0000 (18:12 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/snippets/cephlab_rc_local

index 91f497850a87be03f661cd08117ba5088de3d7f9..a08b9619f6a18b5fbf5eb5645c5db23295d64f89 100644 (file)
@@ -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