From 12d838e0c329c960a1be5909a6c65e92dd195db8 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Thu, 4 Sep 2014 18:17:13 -0700 Subject: [PATCH] Update openstack builder doc to include private openstack example This illustates how to use the OpenStack builder with a private OpenStack cloud, as opposed to a public cloud such as Rackspace public cloud. --- .../docs/builders/openstack.html.markdown | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/website/source/docs/builders/openstack.html.markdown b/website/source/docs/builders/openstack.html.markdown index 3f8c5bb87..1b7abb07d 100644 --- a/website/source/docs/builders/openstack.html.markdown +++ b/website/source/docs/builders/openstack.html.markdown @@ -111,7 +111,7 @@ each category, the available configuration keys are alphabetized. * `use_floating_ip` (boolean) - Whether or not to use a floating IP for the instance. Defaults to false. -## Basic Example +## Basic Example: Rackspace public cloud Here is a basic example. This is a working example to build a Ubuntu 12.04 LTS (Precise Pangolin) on Rackspace OpenStack cloud offering. @@ -131,6 +131,31 @@ Ubuntu 12.04 LTS (Precise Pangolin) on Rackspace OpenStack cloud offering. } +## Basic Example: Private OpenStack cloud + +This example builds an Ubuntu 14.04 image on a private OpenStack cloud, +powered by Metacloud. + +
+{
+  "type": "openstack",
+  "ssh_username": "monkey",
+  "image_name": "ubuntu1404_packer_test_1",
+  "source_image": "91d9c168-d1e5-49ca-a775-3bfdbb6c97f1",
+  "flavor": "2"
+}
+
+ +In this case, the connection information for connecting to OpenStack +doesn't appear in the template. That is because I source a standard +OpenStack script with environment variables set before I run this. This +script is setting environment variables like: + +- OS_AUTH_URL +- OS_TENANT_ID +- OS_USERNAME +- OS_PASSWORD + ## Troubleshooting *I get the error "Missing or incorrect provider"*