]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Add OpenSUSE Leap 15.0
authorDavid Galloway <dgallowa@redhat.com>
Tue, 2 Oct 2018 18:38:40 +0000 (14:38 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 2 Oct 2018 19:01:15 +0000 (15:01 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
cobbler.yml
roles/cobbler/defaults/main.yml
roles/cobbler/templates/kickstarts/cephlab_opensuse_leap.xml [new file with mode: 0644]
roles/cobbler_profile/defaults/main.yml

index 3d68a956dc8e995bcdb5e26cdf7a99d733060600..bcf2d4574a91b0b6e4a190ce7f14815871b8ccec 100644 (file)
@@ -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
index 214b82549a4003ba747cd410ba024df353365522..942785dbaea586c89d63ae7581f84f2d3277cb16 100644 (file)
@@ -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 (file)
index 0000000..a7e4147
--- /dev/null
@@ -0,0 +1,131 @@
+<?xml version="1.0"?>
+<!DOCTYPE profile>
+<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
+  <deploy_image>
+    <image_installation config:type="boolean">false</image_installation>
+  </deploy_image>
+  <general>
+    <mode>
+      <confirm config:type="boolean">false</confirm>
+      <final_reboot config:type="boolean">true</final_reboot>  
+    </mode>
+  </general>
+  <software>
+    <packages config:type="list">
+      <package>python</package>
+      <package>python-xml</package>
+      <package>sudo</package>
+      <package>gptfdisk</package>
+      <package>vim</package>
+      <package>curl</package>
+      <package>iputils</package>
+      <package>ethtool</package>
+      <package>bind-utils</package>
+      <package>wget</package>
+    </packages>
+  </software>
+  <partitioning config:type="list">
+    <drive>
+      <device>/dev/sda</device>
+      <use>all</use>
+      <partitions config:type="list">
+        <partition>
+          <create config:type="boolean">true</create>
+          <format config:type="boolean">true</format>
+          <mount>/</mount>
+          <filesystem config:type="symbol">ext4</filesystem>
+          <size>100%</size>
+        </partition>
+      </partitions>
+    </drive>
+  </partitioning>
+  $SNIPPET('addons.xml')
+  $SNIPPET('kdump.xml')
+  <keyboard>
+    <keymap>english</keymap>
+  </keyboard>
+  <language>
+    <language>en_US</language>
+    <languages></languages>
+  </language>
+  <login_settings/>
+  $SNIPPET('networking.xml')
+  <runlevel>
+    <default>3</default>
+  </runlevel>
+  <services-manager>
+    <default_target>multi-user</default_target>
+    <services>
+      <enable config:type="list">
+        <service>sshd</service>
+        <service>rc-local</service>
+      </enable>
+    </services>
+  </services-manager>
+  <users config:type="list">
+    <user>
+      <encrypted config:type="boolean">true</encrypted>
+      <fullname>root</fullname>
+      <gid>0</gid>
+      <home>/root</home>
+      <password_settings>
+        <expire></expire>
+        <flag></flag>
+        <inact></inact>
+        <max></max>
+        <min></min>
+        <warn></warn>
+      </password_settings>
+      <shell>/bin/bash</shell>
+      <uid>0</uid>
+       <user_password>$default_password_crypted</user_password>
+      <username>root</username>
+    </user>
+  </users>
+  <scripts>
+    ## we have to include the pre-scripts tag to get kickstart_start included
+    <pre-scripts config:type="list">
+      #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')
+    </pre-scripts>
+    <chroot-scripts config:type="list">
+       #set global $wrappedscript = 'cephlab_user'
+       $SNIPPET('suse_scriptwrapper.xml')
+    </chroot-scripts>
+    <post-scripts config:type="list">
+       ##
+       ## 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')
+    </post-scripts>
+    ## we have to include the init-scripts tag to get kickstart_done included
+    <init-scripts config:type="list">
+      #set global $wrappedscript = 'kickstart_done'
+      $SNIPPET('suse_scriptwrapper.xml')
+    </init-scripts>
+  </scripts>
+</profile>
index 9e2b1eb3cc3fb1a7573723ef29691534a6d6ab93..b2bbc48b25fd784f21330606605afcdfe107a872 100644 (file)
@@ -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