Source

stacklet / specs / distro / fedora / 18 / fedora.18.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.red</imports>
  <xi:include href="fedora.18.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='random' spec='c 1 8'/>
    <stk:device name='urandom' spec='c 1 9'/>
    <stk:directory>
      <loc>/bootstrap</loc>
    </stk:directory>
    <stk:directory>
      <loc>/etc</loc>
    </stk:directory>
    <stk:directory>
      <loc>/tmp</loc>
    </stk:directory>
    <stk:file>
      <loc>/bootstrap</loc>
      <name>corePackages</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>corePackages</name>
      </stk:content>
    </stk:file>
    <stk:bootstrap proxy='_proxy_'>
      <url>_bootstrap.url_</url>
    </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/sysconfig</loc>
      <name>network</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>network</name>
      </stk:content>
    </stk:file>
    <stk:file>
      <loc>/etc/sysconfig/network-scripts</loc>
      <name>ifcfg-eth0</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>ifcfg-eth0</name>
      </stk:content>
    </stk:file>
    <stk:package proxy='_proxy_'>
      <update>all</update>
      <add>
        acl 
        acpid
        attr 
        audit 
        authconfig
        bzip2
        checkpolicy
        cronie
        dhclient
        diffutils
        e2fsprogs
        file
        hostname
        _image.kernel_
        iptables
        lsof 
        make  
        man
        mingetty
        nano
        net-tools
        openssh-server
        openssh-clients
        pam_pkcs11
        passwd
        policycoreutils
        redhat-lsb-core
        rootfiles
        rsyslog
        selinux-policy 
        selinux-policy-targeted 
        sendmail 
        setserial 
        system-config-firewall-base
        sudo
        tar
        uuid
        vim-minimal
        wget
        which
        yum-plugin-fastestmirror
        yum-utils
      </add>
    </stk:package>
    <stk:service>
      <enable>
        network
      </enable>
    </stk:service>
    <stk:command>
      systemctl --no-reload enable sshd.service || true
    </stk:command>
    <stk:command>
      systemctl --no-reload enable crond.service || true
    </stk:command>
    <stk:command>
      systemctl --no-reload disable iptables.service ip6tables.service || true
    </stk:command>
    <stk:password>
      <user>root</user>
      <password>password</password>
    </stk:password>
    <stk:command>
      ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
    </stk:command>
    <stk:command>
      sed -i.save -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
    </stk:command>
    <stk:command>
      echo UTC &gt;&gt; /etc/adjtime;
      ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime;
      echo -e 'ZONE="Etc/UTC"\nUTC=true' &gt; /etc/sysconfig/clock;
    </stk:command>
  </stk:spec>
</stk:spec>