terraform/openstack/fio_bench/user-data.yaml

17 lines
308 B
YAML

#cloud-config
password: ubuntu
chpasswd: {expire: False}
ssh_pwauth: True
write_files:
- content: |
#!/bin/bash
sudo mkfs.ext4 /dev/vdb
sudo mkdir /mnt/disk
sudo mount /dev/vdb /mnt/disk
owner: root
permissions: '0755'
path: /tmp/mount_disk.sh
runcmd:
- [ sudo, /tmp/mount_disk.sh ]