Created
July 24, 2015 20:50
-
-
Save major/0fefd42e37bd1a047372 to your computer and use it in GitHub Desktop.
Rackspace cloud-init configuration (drop in /etc/cloud/cloud.cfg.d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| datasource_list: [ ConfigDrive, None ] | |
| disable_root: False | |
| ssh_pwauth: True | |
| ssh_deletekeys: False | |
| resize_rootfs: noblock | |
| growpart: | |
| mode: auto | |
| devices: ['/'] | |
| cloud_config_modules: | |
| - disk_setup | |
| - mounts | |
| - ssh-import-id | |
| - locale | |
| - set-passwords | |
| - package-update-upgrade-install | |
| - yum-add-repo | |
| - timezone | |
| - puppet | |
| - chef | |
| - salt-minion | |
| - mcollective | |
| - disable-ec2-metadata | |
| - runcmd | |
| - byobu | |
| cloud_init_modules: | |
| - migrator | |
| - bootcmd | |
| - write-files | |
| - growpart | |
| - resizefs | |
| - set_hostname | |
| - update_hostname | |
| - update_etc_hosts | |
| - rsyslog | |
| - users-groups | |
| - ssh | |
| cloud_final_modules: | |
| - rightscale_userdata | |
| - scripts-per-once | |
| - scripts-per-boot | |
| - scripts-per-instance | |
| - scripts-user | |
| - phone-home | |
| - final-message | |
| # this bit scales some sysctl parameters to flavor type | |
| runcmd: | |
| - echo "net.ipv4.tcp_rmem = $(cat /proc/sys/net/ipv4/tcp_mem)" >> /etc/sysctl.conf | |
| - echo "net.ipv4.tcp_wmem = $(cat /proc/sys/net/ipv4/tcp_mem)" >> /etc/sysctl.conf | |
| - echo "net.core.rmem_max = $(cat /proc/sys/net/ipv4/tcp_mem | awk {'print $3'})" >> /etc/sysctl.conf | |
| - echo "net.core.wmem_max = $(cat /proc/sys/net/ipv4/tcp_mem | awk {'print $3'})" >> /etc/sysctl.conf | |
| - echo 'net.ipv4.tcp_window_scaling = 1' >> /etc/sysctl.conf | |
| - echo 'net.ipv4.tcp_timestamps = 1' >> /etc/sysctl.conf | |
| - echo 'net.ipv4.tcp_sack = 1' >> /etc/sysctl.conf | |
| - sysctl -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment