#cloud-config
users:
- name: root
- name: customer
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL:ALL) ALL']
lock-passwd: false
chpasswd:
list: |
root:password
customer:password
expire: True
ssh_pwauth: True
manage-resolv-conf: True
resolv-conf:
nameservers:
- '8.8.8.8'
- '8.8.4.4'
options:
rotate: true
growpart:
mode: auto
devices: ["/"]
resize_rootfs: True
resize_rootfs_tmp: /dev
#package_upgrade: true
runcmd:
- sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
# - yum -y upgrade
cloud_init_modules:
- migrator
- bootcmd
- write-files
- growpart
- resizefs
- set_hostname
- update_hostname
- update_etc_hosts
- rsyslog
- users-groups
- ssh
cloud_config_modules:
- mounts
- locale
- set-passwords
- yum-add-repo
- package-update-upgrade-install
- timezone
- puppet
- chef
- salt-minion
- mcollective
- disable-ec2-metadata
- runcmd
cloud_final_modules:
- rightscale_userdata
- scripts-per-once
- scripts-per-boot
- scripts-per-instance
- scripts-user
- ssh-authkey-fingerprints
- keys-to-console
- phone-home
- final-message