]> git.proxmox.com Git - ceph.git/blob - ceph/qa/tasks/userdata_setup.yaml
7271925c9f7c5627c376996065f0e04217ce87c9
[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 apt-get update
18 apt-get -y install nfs-common
19 mkdir /mnt/log
20 # 10.0.2.2 is the host
21 mount -v -t nfs -o proto=tcp 10.0.2.2:{mnt_dir} /mnt/log
22
23 # mount the iso image that has the test script
24 mkdir /mnt/cdrom
25 mount -t auto /dev/cdrom /mnt/cdrom