added user-data.example
[leap_cloudadmin.git] / user-data.example
1 #cloud-config
2
3 cloud_init_modules:
4 # - bootcmd
5  - resizefs
6  - set_hostname
7  - update_hostname
8  - update_etc_hosts
9 # - ca-certs
10 # - rsyslog
11  - ssh
12
13 cloud_config_modules:
14 # - mounts
15  - ssh-import-id
16  - set-passwords
17 #- ssh
18 #- grub-dpkg
19  - apt-update-upgrade 
20  - timezone
21 #- puppet
22 #- updates-check
23 #- disable-ec2-metadata
24 # - runcmd
25
26
27 cloud_final_modules:
28  - rightscale_userdata
29  - scripts-per-once
30  - scripts-per-boot
31  - scripts-per-instance
32  - [scripts-user, always] 
33  - keys-to-console
34 # - phone-home
35  - final-message
36
37 #######
38 # Optional settings
39 #######
40
41 apt_preserve_sources_list: true
42
43 manage_etc_hosts: true
44
45 ##runcmd:
46 # - [ ls, -l, / ]
47
48 #packages:
49 # - pwgen
50
51 # set the timezone
52 timezone: Etc/UTC
53
54 # allow root login through ssh
55 disable_root: false
56
57 # set the correct local
58 locale: en_US.UTF-8 UTF-8 
59
60 ######
61 # Change these setings !!!
62 ######
63
64 hostname: cloudinit-test
65 fqdn: cloudinit-test.leap.se
66
67 user: root
68 password: 
69 chpasswd: { expire: False }
70
71 # paste ssh_authorized_keys at the end because config can get easily corrupted when pasting shit
72 ssh_authorized_keys:
73   - ssh-rsa AAAAB3NzaC1yc2EAAdABIwAAAGEA3FSyQwBI6Z+nCSjUUk8EEAnnkhXlukKoppND/RRClWz2s5TCzIkd3Ou5+Cyz71X0XmazM3l5WgeErvtIwQMyT1KjNoMhoJMrJnWqQPOt5Q8zWd9qG7PBl9+eiH5qV7NZ mykey@host
74
75 # Dont's edit below this line