Merge pull request #1459 from msabramo/add_private_openstack_example
Update openstack builder doc to include private openstack example
This commit is contained in:
commit
c6b36420b4
|
@ -112,7 +112,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.
|
||||
|
@ -133,6 +133,31 @@ Ubuntu 12.04 LTS (Precise Pangolin) on Rackspace OpenStack cloud offering.
|
|||
}
|
||||
</pre>
|
||||
|
||||
## Basic Example: Private OpenStack cloud
|
||||
|
||||
This example builds an Ubuntu 14.04 image on a private OpenStack cloud,
|
||||
powered by Metacloud.
|
||||
|
||||
<pre class="prettyprint">
|
||||
{
|
||||
"type": "openstack",
|
||||
"ssh_username": "monkey",
|
||||
"image_name": "ubuntu1404_packer_test_1",
|
||||
"source_image": "91d9c168-d1e5-49ca-a775-3bfdbb6c97f1",
|
||||
"flavor": "2"
|
||||
}
|
||||
</pre>
|
||||
|
||||
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"*
|
||||
|
|
Loading…
Reference in New Issue