Skip to content

Instantly share code, notes, and snippets.

@rodrickbrown
Created February 4, 2016 02:19
Show Gist options
  • Select an option

  • Save rodrickbrown/4ff31800f1e333b1663f to your computer and use it in GitHub Desktop.

Select an option

Save rodrickbrown/4ff31800f1e333b1663f to your computer and use it in GitHub Desktop.
#cloud-config
bootcmd:
- setenforce 0
hostname: ${hostname}
fqdn: ${fqdn}
package_update: true
package_upgrade: true
package_reboot_if_required: true
yum_repos:
datadog:
name: Datadog, Inc.
baseurl: http://yum.datadoghq.com/rpm/x86_64/
enabled: true
gpgcheck: false
packages:
- btrfs-progs
- bzip2
- datadog-agent
- dstat
- facter
- file
- freeipa-client
- git
- htop
- iptraf
- mlocate
- nc
- ncdu
- nmap
- ntp
- python-pip
- python-psutil
- rsync
- ruby
- s3cmd
- strace
- sysstat
- tmux
- tuned
- unzip
- vim
- wget
- which
- xfsprogs
- tcpdump
runcmd:
# - [ipa-client-install, --domain=aws.orchardplatform.com, -N, --hostname=${fqdn}, --principal=admin, --password=0rch4rd2015, -U]
- [systemctl, enable, tuned]
- [systemctl, start, tuned]
- [systemctl, enable, ntpd]
- [systemctl, start, ntpd]
- [systemctl, disable, datadog-agent]
# - sed 's/api_key:.*/api_key: ${dd_key}/' /etc/dd-agent/datadog.conf.example > /etc/dd-agent/datadog.conf"
final_message: "The system is finally up, after $UPTIME seconds"
users:
- default
- name: orchard
gecos: Orchard Service User
lock-passwd: true
system: true
shell: /sbin/nologin
power_state:
mode: reboot
message: "shutdown by cloud-init post setup"
timeout: 30
cloud_final_modules:
- power-state-change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment