#cloud-config
locale: en_US.UTF-8
timezone: Etc/UTC
password: ubuntu
chpasswd: { expire: False }
ssh_pwauth: True
manage_etc_hosts: True
apt_upgrade: true
write_files:
- path: /etc/init.d/autopkgtest
permissions: '0755'
content: |
#!/bin/sh
### BEGIN INIT INFO
# Provides: autopkgtest
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: root shell on ttyS1 for autopkgtest control
### END INIT INFO
if [ "$1" = start ]; then
(setsid sh </dev/ttyS1 >/dev/ttyS1 2>&1) &
fi
- path: /etc/apt/apt.conf.d/90nolanguages
content: |
Acquire::Languages "none";
- path: /etc/dpkg/dpkg.cfg.d/autopkgtest
content: |
force-unsafe-io
runcmd:
- [ ln, -s, ../init.d/autopkgtest , /etc/rc2.d/S99autopkgtest ]
- [ eatmydata, apt-get, -y, purge, cloud-init ]
power_state: { mode: poweroff }
#password: ubuntu
#chpasswd: { expire: False }