]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Remove cephlab_ubuntu_network snippet
authorDavid Galloway <dgallowa@redhat.com>
Thu, 1 Dec 2016 20:26:24 +0000 (15:26 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 1 Dec 2016 20:26:24 +0000 (15:26 -0500)
Just cruft at this point.  It hasn't been used since
05267fe001432d326c30262d4b07d1775a2ad0d4

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/defaults/main.yml
roles/cobbler/templates/snippets/cephlab_ubuntu_network [deleted file]

index 8af4005e4a20cd5a157de0608bfb28733c1cb6e2..0acf7c90abc69838d6ac296f406ba8f75ea12b55 100644 (file)
@@ -40,7 +40,6 @@ snippets:
   - cephlab_rc_local
   - cephlab_rhel_disks
   - cephlab_post_install_kernel_options
-  - cephlab_ubuntu_network
 
 scripts:
   - cephlab_preseed_late
diff --git a/roles/cobbler/templates/snippets/cephlab_ubuntu_network b/roles/cobbler/templates/snippets/cephlab_ubuntu_network
deleted file mode 100644 (file)
index 6c8f484..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-### {{ ansible_managed }}
-#set os_version = $getVar('os_version','')
-#if $os_version == 'vivid'
-# deleting interfaces we don't need for vivid.
-# if these are in place then vivid wants to use eth2 as the
-# primary interface
-sed -i '/eth2/d' /etc/udev/rules.d/70-persistent-net.rules
-sed -i '/eth3/d' /etc/udev/rules.d/70-persistent-net.rules
-#end if
-
-rm -f /etc/network/interfaces
-touch /etc/network/interfaces
-
-cat >> /etc/network/interfaces << EOF
-# This file describes the network interfaces available on your system
-# and how to activate them. For more information, see interfaces(5).
-
-# The loopback network interface
-auto lo
-iface lo inet loopback
-
-# The primary network interface
-auto eth0
-iface eth0 inet dhcp
-# This is an autoconfigured IPv6 interface
-iface eth0 inet6 auto
-EOF
-
-{% if resolvconf|length > 0 %}
-rm -f /etc/resolv.conf
-touch /etc/resolv.conf
-
-cat >> /etc/resolv.conf << EOF
-{% for line in resolvconf %}
-{{ line }}
-{% endfor %}
-EOF
-
-cat >> /etc/resolvconf/resolv.conf.d/base << EOF
-{% for line in resolvconf %}
-{{ line }}
-{% endfor %}
-EOF
-{% endif %}