2012-06-19 21:13:39 +00:00
|
|
|
#cloud-config-archive
|
|
|
|
|
|
|
|
- type: text/cloud-config
|
|
|
|
content: |
|
|
|
|
output:
|
|
|
|
all: '| tee -a /var/log/cloud-init-output.log'
|
|
|
|
|
|
|
|
# allow passwordless access for debugging
|
|
|
|
- |
|
2017-07-20 22:26:42 +00:00
|
|
|
#!/usr/bin/env bash
|
2012-06-19 21:13:39 +00:00
|
|
|
exec passwd -d ubuntu
|
|
|
|
|
|
|
|
- |
|
2017-07-20 22:26:42 +00:00
|
|
|
#!/usr/bin/env bash
|
2012-06-19 21:13:39 +00:00
|
|
|
|
2015-02-19 18:35:25 +00:00
|
|
|
# mount a NFS share for storing logs
|
|
|
|
apt-get update
|
|
|
|
apt-get -y install nfs-common
|
2012-06-19 21:13:39 +00:00
|
|
|
mkdir /mnt/log
|
2015-02-19 18:35:25 +00:00
|
|
|
# 10.0.2.2 is the host
|
|
|
|
mount -v -t nfs -o proto=tcp 10.0.2.2:{mnt_dir} /mnt/log
|
2012-06-19 21:13:39 +00:00
|
|
|
|
|
|
|
# mount the iso image that has the test script
|
|
|
|
mkdir /mnt/cdrom
|
|
|
|
mount -t auto /dev/cdrom /mnt/cdrom
|