editfiles:

  debian::

    { /etc/apt/sources.list
      HashCommentLinesStarting "deb cdrom:"
      HashCommentLinesStarting "deb http://security.debian.org/ jessie/updates main"
      AppendIfNoSuchLine "deb http://security.debian.org/ jessie/updates main contrib non-free"
      AppendIfNoSuchLine "deb http://http.debian.net/debian jessie main contrib non-free"
    }

  debian.ltspserver::
    # A copy of the above
    { /opt/ltsp/$(ltsp_arch)/etc/apt/sources.list
      HashCommentLinesStarting "deb file:"
      HashCommentLinesStarting "deb http://security.debian.org/ jessie/updates main"
      AppendIfNoSuchLine "deb http://security.debian.org/ jessie/updates main contrib non-free"
      AppendIfNoSuchLine "deb http://http.debian.net/debian jessie main contrib non-free"
    }

shellcommands:

  debian::

    "/usr/sbin/debian-edu-hwsetup"

# Remove unneeded packages at the end of the installation, in case we
# removed something in the process.
shellcommands:
  debian.fifthpass::
    "/usr/bin/apt-get autoremove -y"
