From: David Galloway Date: Fri, 19 Jan 2018 20:31:03 +0000 (-0500) Subject: cobbler: Use MAC address specified in ansible inventory instead of eth0 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7aebf515f74fc43218b91d0dea935c6b31d16f13;p=ceph-cm-ansible.git cobbler: Use MAC address specified in ansible inventory instead of eth0 I concede. Name it whatever you want, RHEL. This will allow the OS to use the "predictable naming" during anaconda and after firstboot preventing NIC names from switching like we're seeing in http://tracker.ceph.com/issues/22732 and http://tracker.ceph.com/issues/22643 Signed-off-by: David Galloway --- diff --git a/roles/cobbler/templates/kickstarts/cephlab_rhel.ks b/roles/cobbler/templates/kickstarts/cephlab_rhel.ks index b99ba42..482c5a9 100644 --- a/roles/cobbler/templates/kickstarts/cephlab_rhel.ks +++ b/roles/cobbler/templates/kickstarts/cephlab_rhel.ks @@ -22,7 +22,7 @@ url --url=$tree # If any cobbler repo definitions were referenced in the kickstart profile, include them here. $yum_repo_stanza # Network information -network --bootproto=dhcp --device=eth0 --onboot=on +network --bootproto=dhcp --device=$mac_address_eth0 --onboot=on # Reboot after installation reboot