Source

stacklet / specs / distro / opensuse / 12-2 / suse.12-2.x86.lightweight.xml

<?xml version="1.0"?>
<stk:spec xmlns:stk="http://stacklet.com/specfile/v1"
          xmlns:xi="http://www.w3.org/2001/XInclude">
  <imports>stacklet.task.image.core stacklet.task.user.password stacklet.task.distro.suse</imports>
  <xi:include href="suse.12-2.x86.lightweight.properties.xml"/>
  <stk:properties>
    <name>properties.xml</name>
  </stk:properties>
  <stk:spec>  
    <stk:directory>
      <loc>/dev</loc>
    </stk:directory>
    <stk:device name='console' spec='c 5 1'/>
    <stk:device name='null' spec='c 1 3'/>
    <stk:device name='zero' spec='c 1 5'/>
    <stk:device name='urandom' spec='c 1 9'/>
    <stk:directory>
      <loc>/bootstrap</loc>
    </stk:directory>
    <stk:file>
      <loc>/bootstrap</loc>
      <name>corePackages</name>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>corePackages</name>
      </stk:content>
    </stk:file>
    <stk:bootstrap proxy='_proxy_'>
      <url>_bootstrap.url_</url>
      <repository>_bootstrap.repository_</repository>
      <repository1>_suse.repository1_</repository1>
      <repository2>_suse.repository2_</repository2>
    </stk:bootstrap>
    <stk:file>
      <loc>/etc</loc>
      <name>fstab</name>
      <exists>replace</exists>
      <stk:content filters='substitute_props'>
        <loc>_build.assetLoc_</loc>
        <name>fstab</name>
      </stk:content>
    </stk:file>
    <stk:file>
      <loc>/etc</loc>
      <name>HOSTNAME</name>
      <exists>replace</exists>
      <stk:content filters='substitute_props'>
        <loc>_build.assetLoc_</loc>
        <name>HOSTNAME</name>
      </stk:content>
    </stk:file>
    <stk:file>
      <loc>/etc/sysconfig/network</loc>
      <name>ifcfg-eth0</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>ifcfg-eth0</name>
      </stk:content>
    </stk:file>    
    <stk:file>
      <loc>/etc/zypp</loc>
      <name>zypp.conf</name>
      <stk:content filters='substitute_props'>
        <loc>_build.assetLoc_</loc>
        <name>zypp.conf</name>
      </stk:content>
    </stk:file>    
    <stk:package proxy='_proxy_'>
      <update>all</update>
      <add>
        acpid
        curl
        dhcpcd
        e2fsprogs
        elfutils
        iptables
        iputils
        lsb-release
        man
        mkinitrd
        module-init-tools
        nano
        openssh
        perl-doc
        perl-gettext
        postfix
        rsync
        rsyslog
        sysvinit
        tar
        timezone
        vim
        wget
        xinetd
        yast2 
        yast2-dbus-server
        yast2-firstboot
        yast2-mail
        yast2-ncurses 
        yast2-runlevel
        yast2-sshd
        yast2-sudo 
        yast2-sysconfig 
        yast2-users 
      </add>
    </stk:package>
    <stk:password>
      <user>root</user>
      <password>password</password>
    </stk:password>
    <stk:service>
      <enable>
        network
        sshd
        syslog
      </enable>
      <disable>
        postfix
      </disable>
    </stk:service>    
    <stk:command>
      /bin/systemctl --no-reload --root / disable postfix.service
    </stk:command>
    <stk:command>
      /bin/systemctl --no-reload --root / enable sshd.service
    </stk:command>
    <stk:command>
      cp -a /etc/skel/.[a-z]* /root
    </stk:command>
    <stk:command>
      postmap /etc/postfix/relay
    </stk:command>
    <stk:command>
      sed -i.orig 's|TIMEZONE=""|TIMEZONE="Etc/UTC"|' /etc/sysconfig/clock;
    </stk:command>
    <stk:command>
      sed -i.orig 's|RC_LANG=""|RC_LANG="en_US.UTF-8"|' /etc/sysconfig/language;
    </stk:command>
    <stk:command>
      zypper mr -r 1; 
      zypper mr -r 2
    </stk:command>
  </stk:spec>
</stk:spec>