From: David Galloway Date: Tue, 2 Oct 2018 18:38:40 +0000 (-0400) Subject: cobbler: Add OpenSUSE Leap 15.0 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6afe3fccab90c1a2982a4cce51ce76bf340a31f4;p=ceph-cm-ansible.git cobbler: Add OpenSUSE Leap 15.0 Signed-off-by: David Galloway --- diff --git a/cobbler.yml b/cobbler.yml index 3d68a956..bcf2d457 100644 --- a/cobbler.yml +++ b/cobbler.yml @@ -29,5 +29,6 @@ - { role: cobbler_profile, distro_name: Ubuntu-15.04-server-x86_64, tags: ['ubuntu-vivid'] } - { role: cobbler_profile, distro_name: Ubuntu-16.04-server-x86_64, tags: ['ubuntu-xenial'] } - { role: cobbler_profile, distro_name: Ubuntu-18.04-server-x86_64, tags: ['ubuntu-bionic'] } + - { role: cobbler_profile, distro_name: openSUSE-15.0-x86_64, tags: ['opensuse-15.0'] } - cobbler_systems become: true diff --git a/roles/cobbler/defaults/main.yml b/roles/cobbler/defaults/main.yml index 214b8254..942785db 100644 --- a/roles/cobbler/defaults/main.yml +++ b/roles/cobbler/defaults/main.yml @@ -32,6 +32,7 @@ settings: kickstarts: - cephlab_rhel.ks - cephlab_ubuntu.preseed + - cephlab_opensuse_leap.xml snippets: - cephlab_user diff --git a/roles/cobbler/templates/kickstarts/cephlab_opensuse_leap.xml b/roles/cobbler/templates/kickstarts/cephlab_opensuse_leap.xml new file mode 100644 index 00000000..a7e4147b --- /dev/null +++ b/roles/cobbler/templates/kickstarts/cephlab_opensuse_leap.xml @@ -0,0 +1,131 @@ + + + + + false + + + + false + true + + + + + python + python-xml + sudo + gptfdisk + vim + curl + iputils + ethtool + bind-utils + wget + + + + + /dev/sda + all + + + true + true + / + ext4 + 100% + + + + + $SNIPPET('addons.xml') + $SNIPPET('kdump.xml') + + english + + + en_US + + + + $SNIPPET('networking.xml') + + 3 + + + multi-user + + + sshd + rc-local + + + + + + true + root + 0 + /root + + + + + + + + + /bin/bash + 0 + $default_password_crypted + root + + + + ## we have to include the pre-scripts tag to get kickstart_start included + + #set global $wrappedscript = 'kickstart_start' + $SNIPPET('suse_scriptwrapper.xml') + ## SuSE has an annoying habit on ppc64 of changing the system + ## boot order after installation. This makes it non-trivial to + ## automatically re-install future OS. + #set global $wrappedscript = 'save_boot_device' + $SNIPPET('suse_scriptwrapper.xml') + + + #set global $wrappedscript = 'cephlab_user' + $SNIPPET('suse_scriptwrapper.xml') + + + ## + ## This plugin wrapper provides the flexibility to call pure shell + ## snippets which can be used directly on autoinst file and with + ## wrapper on SuSE. + ## + ## To use it + ## - exchange name_of_pure_shell_snippet with the name of this shell snippet + ## - and remove the '##' in front of the line with suse_scriptwrapper.xml + ## + #set global $wrappedscript = 'name_of_pure_shell_snippet' + ## $SNIPPET('suse_scriptwrapper.xml') + + ## SuSE has an annoying habit on ppc64 of changing the system + ## boot order after installation. This makes it non-trivial to + ## automatically re-install future OS. + #set global $wrappedscript = 'restore_boot_device' + $SNIPPET('suse_scriptwrapper.xml') + + #set global $wrappedscript = 'cephlab_rc_local' + $SNIPPET('suse_scriptwrapper.xml') + + #set global $wrappedscript = 'cephlab_user' + $SNIPPET('suse_scriptwrapper.xml') + + ## we have to include the init-scripts tag to get kickstart_done included + + #set global $wrappedscript = 'kickstart_done' + $SNIPPET('suse_scriptwrapper.xml') + + + diff --git a/roles/cobbler_profile/defaults/main.yml b/roles/cobbler_profile/defaults/main.yml index 9e2b1eb3..b2bbc48b 100644 --- a/roles/cobbler_profile/defaults/main.yml +++ b/roles/cobbler_profile/defaults/main.yml @@ -92,3 +92,7 @@ distros: kickstart: cephlab_ubuntu.preseed kernel_options: "netcfg/choose_interface=auto console=tty0 console=ttyS1,115200" kernel_options_post: "pci=realloc=off console=tty0 console=ttyS1,115200" + "openSUSE-15.0-x86_64": + iso: "https://download.opensuse.org/distribution/leap/15.0/iso/openSUSE-Leap-15.0-DVD-x86_64.iso" + sha256: c477428c7830ca76762d2f78603e13067c33952b936ff100189523e1fabe5a77 + kickstart: cephlab_opensuse_leap.xml