mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
3aae5ca6fd
/bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>
26 lines
544 B
YAML
26 lines
544 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
|
|
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
|