Source

stacklet / specs / distro / ubuntu / 12-10 / ubuntu.12-10.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.debu</imports>
  <xi:include href="ubuntu.12-10.x86.lightweight.properties.xml"/>
  <stk:properties>
    <name>properties.xml</name>
  </stk:properties>
  <stk:spec>
    <stk:debootstrap proxy='_proxy_'>
      <arch>_image.arch_</arch>
      <codename>_image.codename_</codename>
    </stk:debootstrap>
    <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/network</loc>
      <name>interfaces</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>interfaces</name>
      </stk:content>
    </stk:file>
    <stk:file>
      <loc>/etc/apt</loc>
      <name>sources.list</name>
      <exists>replace</exists>
      <stk:content>
        <loc>_build.assetLoc_</loc>
        <name>sources.list</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:password>
      <user>root</user>
      <password>password</password>
    </stk:password>
    <stk:command>
      dpkg-divert --local --rename --add /sbin/initctl; ln -s /bin/true /sbin/initctl
    </stk:command>
    <stk:package proxy='_proxy_'>
      <options>--force-yes</options>
      <update>all</update>
      <add>
	acl
        acpid
        anacron
        aptitude
        at
	avahi-daemon
        bash-completion
	binutils
        bsdutils
        console-data
        consolekit
        curl
        dbus
        diffutils
        dnsutils
        ftp
        gettext
        heirloom-mailx
        hostname
        info
        installation-report
        iptables
        language-pack-en
        locales
        lsof
        man
        manpages
        mktemp
        nano
        ncurses-base
        ncurses-term
        netcat
        psmisc
	rsync
        shared-mime-info
        ssh
        ssl-cert
        tasksel
	time
        traceroute
        ubuntu-minimal
	unzip
        update-inetd
        uuid-runtime
        w3m
        wget
        whois
      </add>
    </stk:package>
    <stk:command>
      rm -f /sbin/initctl; dpkg-divert --local --rename --remove /sbin/initctl
    </stk:command>
    <stk:command>
      update-locale LANG="en_US.UTF-8" LANGUAGE="en_US:en"
    </stk:command>
    <stk:command>
      sed -i.orig 's~^exit~test -e /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server\nexit~' /etc/rc.local
    </stk:command>
    <stk:command>
      echo "manual" > /etc/init/avahi-daemon.override
    </stk:command>
  </stk:spec>
</stk:spec>