]> git.proxmox.com Git - ceph.git/blob - ceph/qa/tasks/userdata_setup.yaml
import ceph 15.2.14
[ceph.git] / ceph / qa / tasks / userdata_setup.yaml
1 #cloud-config-archive
2
3 - type: text/cloud-config
4 content: |
5 output:
6 all: '| tee -a /var/log/cloud-init-output.log'
7
8 # allow passwordless access for debugging
9 - |
10 #!/usr/bin/env bash
11 exec passwd -d ubuntu
12
13 - |
14 #!/usr/bin/env bash
15
16 # mount a NFS share for storing logs
17 sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/' /etc/apt/sources.list
18 sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/' /etc/apt/sources.list
19 apt-get update
20 apt-get -y install nfs-common
21 mkdir /mnt/log
22 # 10.0.2.2 is the host
23 mount -v -t nfs -o proto=tcp 10.0.2.2:{mnt_dir} /mnt/log
24
25 # mount the iso image that has the test script
26 mkdir /mnt/cdrom
27 mount -t auto /dev/cdrom /mnt/cdrom