Skip to content

Instantly share code, notes, and snippets.

@ahmetb
Last active December 6, 2018 23:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmetb/dbeccaf14e6bd8a78a9e to your computer and use it in GitHub Desktop.
Save ahmetb/dbeccaf14e6bd8a78a9e to your computer and use it in GitHub Desktop.
1,3c1,5
< #cloud-config
< disable_root: false
< manage_etc_hosts: true
---
> users:
> - default
>
> disable_root: true
> preserve_hostname: false
16c18
< - [ update_etc_hosts, once-per-instance ]
---
> - update_etc_hosts
23a26
> - emit_upstart
28a32
> - snappy
32a37
> - fan
34a40
> - lxd
$ curl http://169.254.169.254/metadata/v1/vendor-data
#cloud-config
disable_root: false
manage_etc_hosts: true
# The modules that run in the 'init' stage
cloud_init_modules:
- migrator
- ubuntu-init-switch
- seed_random
- bootcmd
- write-files
- growpart
- resizefs
- set_hostname
- update_hostname
- [ update_etc_hosts, once-per-instance ]
- ca-certs
- rsyslog
- users-groups
- ssh
# The modules that run in the 'config' stage
cloud_config_modules:
- disk_setup
- mounts
- ssh-import-id
- locale
- set-passwords
- grub-dpkg
- apt-pipelining
- apt-configure
- package-update-upgrade-install
- landscape
- timezone
- puppet
- chef
- salt-minion
- mcollective
- disable-ec2-metadata
- runcmd
- byobu
# The modules that run in the 'final' stage
cloud_final_modules:
- rightscale_userdata
- scripts-vendor
- scripts-per-once
- scripts-per-boot
- scripts-per-instance
- scripts-user
- ssh-authkey-fingerprints
- keys-to-console
- phone-home
- final-message
- power-state-change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment