Created
March 4, 2013 20:22
-
-
Save proffalken/5085293 to your computer and use it in GitHub Desktop.
Connecting to HPCS and setting hostname via cloud-init
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
ud = "#cloud-config\nfqdn: " + server_fqdn + "\nhostname: " + hostname + "\nmanage_etc_hosts: true" | |
# get the image | |
image_details = self.get_image(image,region) | |
new_server = self.cx[region].servers.create(hostname,flavor=flavor,image=image_details,key_name=key_name,userdata=ud) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment