Unify the APIs
This commit is contained in:
16
client-provisioner/examples/multipart-userdata.yaml
Normal file
16
client-provisioner/examples/multipart-userdata.yaml
Normal 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 "koz is koz" >> /etc/motd
|
||||
|
||||
--==BOUNDARY==--
|
@ -1,3 +1,6 @@
|
||||
Content-Type: text/cloud-config; charset="us-ascii"
|
||||
MIME-Version: 1.0
|
||||
|
||||
#cloud-config
|
||||
# Example user-data file to set up an alternate /var/home, a first user and some SSH keys, and some packages
|
||||
bootcmd:
|
||||
@ -16,8 +19,9 @@ users:
|
||||
lock_passwd: true
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBRBGPzlbh5xYD6k8DMZdPNEwemZzKSSpWGOuU72ehfN joshua@bonifacelabs.net 2017-04
|
||||
usercmd:
|
||||
runcmd:
|
||||
- "userdel debian"
|
||||
- "groupmod -g 200 deploy"
|
||||
- "usermod -u 200 deploy"
|
||||
- "userdel debian"
|
||||
- "systemctl disable cloud-init.target"
|
||||
- "reboot"
|
||||
|
Reference in New Issue
Block a user