Reorganize and add more comments to examples

This commit is contained in:
2022-10-05 23:18:52 -04:00
parent 1e0b502250
commit 3a5d8c61da
5 changed files with 136 additions and 223 deletions

View File

@ -0,0 +1,16 @@
Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0
--==BOUNDARY==
Content-Type: text/cloud-config; charset="us-ascii"
users:
- blah
--==BOUNDARY==
Content-Type: text/x-shellscript; charset="us-ascii"
#!/bin/bash
echo "pvc is grand" >> /etc/motd
--==BOUNDARY==--

View File

@ -0,0 +1,19 @@
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
#cloud-config
# Example user-data file. It will:
# 1. Generate locales for us
# 2. Update packages and install OpenSSH and sudo
# 3. Disable the manually-enabled cloud-init target (see debootstrap_script.py)
# 4. Reboot the system
# You can, of course, do anything you want in here which cloud-init normally supports.
bootcmd:
- "locale-gen"
package_update: true
packages:
- openssh-server
- sudo
runcmd:
- "systemctl disable cloud-init.target"
- "reboot"