-
-
Save consoledotblog/9a8bf729bae3e095c8f4 to your computer and use it in GitHub Desktop.
Rackspace Packer Configuration File
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
{ | |
"variables":{ | |
"bamboo_build_number":"", | |
"bamboo_build_user_pass":"" | |
}, | |
"builders":[ | |
{ | |
"type":"openstack", | |
"username":"INSERT YOUR RACKSPACE USERNAME HERE", | |
"api_key":"INSERT YOUR RACKSPACE API KEY HERE", | |
"openstack_provider":"rackspace", | |
"provider":"rackspace-us", | |
"openstack_provider":"rackspace", | |
"region":"IAD", | |
"ssh_username":"root", | |
"image_name":"project-name-{{user `bamboo_build_number`}}", | |
"source_image":"08d36361-5f64-4bc8-85ee-1a64a8ec8fd5", | |
"flavor":"performance1-8" | |
} | |
], | |
"provisioners":[ | |
{ | |
"type":"shell", | |
"inline":[ | |
"sleep 90" | |
] | |
}, | |
{ | |
"type":"shell", | |
"script":"provision-rackspace-env.sh", | |
"environment_vars":[ | |
"bamboo_build_number={{user `bamboo_build_number`}}", | |
"bamboo_build_user_pass={{user `bamboo_build_user_pass`}}" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment