]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Correct ifcfg syntax for OpenSUSE 530/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 17 Feb 2020 18:47:49 +0000 (13:47 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 17 Feb 2020 18:47:49 +0000 (13:47 -0500)
Fixes: https://tracker.ceph.com/issues/44158
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/snippets/cephlab_rc_local

index 895f570f6140144e77a70d451fb37b35ee18e3d9..9afac4246a3747418df402b52e4c0d3d531b5027 100644 (file)
@@ -37,7 +37,7 @@ if [ ! -f /.cephlab_net_configured ]; then
     sleep 5
     if ethtool $nic | grep -q "Link detected: yes"; then
       if command -v zypper &>/dev/null; then
-        echo -e "DEVICE=$nic\nBOOTPROTO=dhcp\nONBOOT=yes" > /etc/sysconfig/network/ifcfg-$nic
+        echo -e "DEVICE=$nic\nBOOTPROTO=dhcp\nSTARTMODE=auto" > /etc/sysconfig/network/ifcfg-$nic
       elif 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