ceph/qa/tasks/userdata_setup.yaml
Ilya Dryomov dcd193c35e qa/tasks/qemu: precise repos have been archived
Fixes: https://tracker.ceph.com/issues/51033
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-06-01 12:54:16 +02:00

28 lines
703 B
YAML

#cloud-config-archive
- type: text/cloud-config
content: |
output:
all: '| tee -a /var/log/cloud-init-output.log'
# allow passwordless access for debugging
- |
#!/usr/bin/env bash
exec passwd -d ubuntu
- |
#!/usr/bin/env bash
# mount a NFS share for storing logs
sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/' /etc/apt/sources.list
sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/' /etc/apt/sources.list
apt-get update
apt-get -y install nfs-common
mkdir /mnt/log
# 10.0.2.2 is the host
mount -v -t nfs -o proto=tcp 10.0.2.2:{mnt_dir} /mnt/log
# mount the iso image that has the test script
mkdir /mnt/cdrom
mount -t auto /dev/cdrom /mnt/cdrom