Skip to content

Instantly share code, notes, and snippets.

@eriweb
Created November 3, 2014 22:11
Show Gist options
  • Save eriweb/f053d1da36be6f7e0045 to your computer and use it in GitHub Desktop.
Save eriweb/f053d1da36be6f7e0045 to your computer and use it in GitHub Desktop.
packer-cloudstack config
{
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
]
}
],
"builders": [
{
"api_url": "https://mysite.xyz/client/api",
"api_key": "xyz",
"secret_key": "xyz",
"type": "cloudstack",
"hypervisor": "xenserver",
"service_offering_id" : "3670b3d8-2d36-45ef-82c2-390ef4b9d299",
"template_id" : "02814566-3906-4090-81b6-f3f05acea79a",
"zone_id" : "6008e91a-8974-4f95-9e1d-fa4a862b6c35",
"disk_offering_id" :"fc03013a-0cc4-4714-807b-a49b3f46964f",
"network_ids" : ["37300843-9168-426e-b45c-a65c5b6a1ad6"],
"ssh_timeout": "15m",
"ssh_username": "root",
"state_timeout": "30m",
"template_name": "centos-6.5-20gb-chef11",
"template_display_text": "CentOS 6.5 20GB chef11",
"template_os_id": "144",
"http_directory": "http",
"insecure_skip_verify": "true",
"user_data": "#!ipxe\nkernel http://{{.HTTPIP}}:{{.HTTPPort}}/vmlinuz ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg\ninitrd http://{{.HTTPIP}}:{{.HTTPPort}}/initrd.img\nboot"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment