methods/ay_xml.rb
# Populate list of packages to add
Populate list of packages to add
Populate list of packages to add
def populate_ay_add_packages(options)
  add_packages = []
  case options['service'].to_s
  when /sles_15/
    add_packages.push("openssh")
    add_packages.push("sudo")
    add_packages.push("wget")
  when /sles_12_[1-9]/
    if !options['service'].to_s.match(/sles_12_3/)
      add_packages.push("at-spi-32bit")
      add_packages.push("gdbm-32bit")
      add_packages.push("libcanberra-gtk-32bit")
      add_packages.push("libcanberra-gtk0-32bit")
      add_packages.push("libdb-4_5-32bit")
      add_packages.push("libgstreamer-0_10-0-32bit")
      add_packages.push("libproxy0-config-gnome")
      add_packages.push("libpython2_6-1_0-32bit")
      add_packages.push("librsvg-32bit")
    end
    add_packages.push("cyrus-sasl-32bit")
    add_packages.push("dbus-1-32bit")
    add_packages.push("dbus-1-glib-32bit")
    add_packages.push("libFLAC8-32bit")
    add_packages.push("libbonobo-32bit")
    add_packages.push("libbz2-1-32bit")
    add_packages.push("libcanberra0-32bit")
    add_packages.push("libcroco-0_6-3-32bit")
    add_packages.push("libgsf-1-114-32bit")
    add_packages.push("libgthread-2_0-0-32bit")
    add_packages.push("libidl-32bit")
    add_packages.push("libldap-2_4-2-32bit")
    add_packages.push("libltdl7-32bit")
    add_packages.push("libogg0-32bit")
    add_packages.push("libpulse0-32bit")
    add_packages.push("libsndfile-32bit")
    add_packages.push("libtalloc2-32bit")
    add_packages.push("libtdb1-32bit")
    add_packages.push("libvorbis-32bit")
    add_packages.push("libxml2-32bit")
    add_packages.push("orbit2-32bit")
    add_packages.push("samba-client-32bit")
    add_packages.push("sles-manuals_en")
    add_packages.push("tcpd-32bit")
    add_packages.push("xorg-x11-driver-video-radeonhd")
    add_packages.push("yast2-trans-en_US")
  else
    add_packages.push("syslinux")
    add_packages.push("snapper")
    add_packages.push("sles-release")
    add_packages.push("perl-Bootloader-YAML")
    add_packages.push("kexec-tools")
    add_packages.push("grub2")
    add_packages.push("glibc")
    add_packages.push("e2fsprogs")
    add_packages.push("btrfsprogs")
  end
  return add_packages
end
def populate_ay_add_packages ( options ) add_packages = [ ] case options [ 'service' ] . to_s when / sles_15 / add_packages . push ( "openssh" ) add_packages . push ( "sudo" ) add_packages . push ( "wget" ) when / sles_12_[1-9] / if ! options [ 'service' ] . to_s . match ( / sles_12_3 / ) add_packages . push ( "at-spi-32bit" ) add_packages . push ( "gdbm-32bit" ) add_packages . push ( "libcanberra-gtk-32bit" ) add_packages . push ( "libcanberra-gtk0-32bit" ) add_packages . push ( "libdb-4_5-32bit" ) add_packages . push ( "libgstreamer-0_10-0-32bit" ) add_packages . push ( "libproxy0-config-gnome" ) add_packages . push ( "libpython2_6-1_0-32bit" ) add_packages . push ( "librsvg-32bit" ) end add_packages . push ( "cyrus-sasl-32bit" ) add_packages . push ( "dbus-1-32bit" ) add_packages . push ( "dbus-1-glib-32bit" ) add_packages . push ( "libFLAC8-32bit" ) add_packages . push ( "libbonobo-32bit" ) add_packages . push ( "libbz2-1-32bit" ) add_packages . push ( "libcanberra0-32bit" ) add_packages . push ( "libcroco-0_6-3-32bit" ) add_packages . push ( "libgsf-1-114-32bit" ) add_packages . push ( "libgthread-2_0-0-32bit" ) add_packages . push ( "libidl-32bit" ) add_packages . push ( "libldap-2_4-2-32bit" ) add_packages . push ( "libltdl7-32bit" ) add_packages . push ( "libogg0-32bit" ) add_packages . push ( "libpulse0-32bit" ) add_packages . push ( "libsndfile-32bit" ) add_packages . push ( "libtalloc2-32bit" ) add_packages . push ( "libtdb1-32bit" ) add_packages . push ( "libvorbis-32bit" ) add_packages . push ( "libxml2-32bit" ) add_packages . push ( "orbit2-32bit" ) add_packages . push ( "samba-client-32bit" ) add_packages . push ( "sles-manuals_en" ) add_packages . push ( "tcpd-32bit" ) add_packages . push ( "xorg-x11-driver-video-radeonhd" ) add_packages . push ( "yast2-trans-en_US" ) else add_packages . push ( "syslinux" ) add_packages . push ( "snapper" ) add_packages . push ( "sles-release" ) add_packages . push ( "perl-Bootloader-YAML" ) add_packages . push ( "kexec-tools" ) add_packages . push ( "grub2" ) add_packages . push ( "glibc" ) add_packages . push ( "e2fsprogs" ) add_packages . push ( "btrfsprogs" ) end return add_packages end
Populate list of packages to add
Populate list of packages to add
options
<not_specific>