forked from frederickding/Cloud-Init-ISO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-data
23 lines (23 loc) · 836 Bytes
/
user-data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#cloud-config
users:
- name: zph
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
lock_passwd: false
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDC1khgoTnIfy3h+23lKnK72LLxuznJAe2JzLMi3UG+U9VUIbctre/Avt3eCdPGkTp9W/rWO8QFKj6OkFvjNHA+YST7NYobkVNwPddpuKFt19/T3iNXLOE5zhg3CYk1EBGM89pdLK7QNg+dVfi5Tk8jAKgNYRtZjgFb9c+0ZYjmNmsEzjMAnmlQxb+zWUP9tctcVNONkvRWaaTX41X089hjcl7kVdXe8XDVazw5Xkjmh/nBPKiGYTCO2EkbUYpXAn1/iZ4PPXiqDLZbAY4JSE73q748AZshZkAeti3ZZsIgpX5Z2x9B5Jwn3rorC0/8EJ9WivzJtn9L7JfB52UhS2xT ilumos
chpasswd:
list: |
zph:zph
expire: True
runcmd:
- [ update-grub ]
write_files:
- content: |
hostname $new_host_name
path: /etc/dhcp/dhclient-exit-hooks.d/sethostname
power_state:
mode: reboot
message: Cloud init completed, rebooting
timeout: 5
condition: True