Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Created September 9, 2013 14:06
Show Gist options
  • Save netmarkjp/6496048 to your computer and use it in GitHub Desktop.
Save netmarkjp/6496048 to your computer and use it in GitHub Desktop.
#cloud-config
hostname: myhostname
runcmd:
- [ echo, 'Setting custom hostname' ]
- [ sed, -i, 's/^HOSTNAME=.*/HOSTNAME=myhostname/', /etc/sysconfig/network ]
- [ hostname, 'myhostname' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment