2019-12-12 22:50:42 -05:00
|
|
|
Content-Type: text/cloud-config; charset="us-ascii"
|
|
|
|
MIME-Version: 1.0
|
|
|
|
|
2019-12-12 19:41:23 -05:00
|
|
|
#cloud-config
|
|
|
|
# Example user-data file to set up an alternate /var/home, a first user and some SSH keys, and some packages
|
|
|
|
bootcmd:
|
|
|
|
- "mv /home /var/"
|
|
|
|
- "locale-gen"
|
|
|
|
package_update: true
|
|
|
|
packages:
|
|
|
|
- openssh-server
|
|
|
|
- sudo
|
|
|
|
users:
|
|
|
|
- name: deploy
|
|
|
|
gecos: Deploy User
|
|
|
|
homedir: /var/home/deploy
|
|
|
|
sudo: "ALL=(ALL) NOPASSWD: ALL"
|
|
|
|
groups: adm, sudo
|
|
|
|
lock_passwd: true
|
|
|
|
ssh_authorized_keys:
|
|
|
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBRBGPzlbh5xYD6k8DMZdPNEwemZzKSSpWGOuU72ehfN joshua@bonifacelabs.net 2017-04
|
2019-12-12 22:50:42 -05:00
|
|
|
runcmd:
|
|
|
|
- "userdel debian"
|
2019-12-12 19:41:23 -05:00
|
|
|
- "groupmod -g 200 deploy"
|
|
|
|
- "usermod -u 200 deploy"
|
|
|
|
- "systemctl disable cloud-init.target"
|
2019-12-12 22:50:42 -05:00
|
|
|
- "reboot"
|