Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / 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   #!/bin/bash
11   exec passwd -d ubuntu
12
13 - |
14   #!/bin/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