Explicitly specify AZ for boot volume

If a volume is to be used as a boot volume (i.e. attached to the
Instance prior to creation using the Volumes property, rather than
afterwards with a VolumeAttachment), then it cannot obtain the
AvailabilityZone (which, if not specified, is assigned dynamically) from
the Instance, since that has not yet been created and assigned to an AZ.
Instead, require the AZ to be specified as a parameter.

Change-Id: Icccc9b531b1fd7754d76c13d90679ed04c9c0d02
Tidy up and make OpenShift.template work

With these changes it is now possible to launch the wordpress
gear on the node.

Changes include:
- set environment variables at the start of the UserData and use them
  throughout instead of heat refs
- set /etc/resolv.conf to point at the broker's bind
- on the broker run setsebool -P httpd_unified=on
  oo-accept-broker suggested this was necessary, and the console errored
  until it was set
- enforce selinux, it was left in permissive mode
- setsebool httpd_unified needs to be set on the broker
- node /etc/resolv.conf needs to be overwritten after puppet apply
- Outputs for console URL and nameserver entry for DNS resolution of apps

Change-Id: I28c9ce4b19f4a0aa59ef514a269ae30b6fb9f6fa
diskimage-builder elements for openshift-origin

These have been used to deploy a working openshift stack.

They pre-install more images than the oz templates, based on the yum
log of extra installs during boot time.

Change-Id: Icb246033964e1388aeebdd4229790acfe0e17718
OpenShiftAutoScaling and OpenShift feature parity.

Updates OpenShiftAutoScaling.template with fixes contained in
OpenShift.template.

Nodes do scale when the hard-coded cfn-push-stats value is raised
above the threshold.

Change-Id: I79051a15a5116034d06fd95b5cc8c3412eda33a8
Additional OpenShiftAutoScaling launch parameters.

- Server flavors for broker and nodes
- Min and max node server counts for autoscaling policy

Change-Id: I70835beca8e29e33c3e8b25cc57d5321a4df7c11
Port OpenShiftAutoScalaing to yaml

This deploys an identical stack to the original json.

OpenShiftAutoScaling.template has been deleted to reduce
maintenance burden.

Change-Id: Ie2840f65ed0d6f6964b4be71d6b19368e844bac4
Move autoscaling metrics from nodes to broker.

Broker has scripts /etc/heat/notify-scale-up and /etc/heat/notify-scale-down
which will trigger heat autoscaling.

Scaling decisions will be made within the broker itself using its own
platform agnostic scaling scripts:
https://github.com/openshift/openshift-extras/tree/enterprise-1.1/node-manager

This template has successfully scaled up from 1 to 3 nodes, and scaled back
down to 1 by manually executing notify-scale-up and notify-scale-down.

Change-Id: Idb9920438bbe598b610efc8eca5bc158181b74a7
Fix F18 oz-install failures

F18 builds are unreliable (or for some people don't work at all),
this seems due to the following bug:

https://bugzilla.redhat.com/show_bug.cgi?id=906031

The simplest workaround is to use the netinst ISO instead of the DVD
so we pick up the newer curl package which fixes the problem

Fixes bug #1185810

Change-Id: I066356e8a780caa8ca2798644ec7594b0536005c
Add sudo -E to heat-jeos recommended command

Normally heat would be run without root capabilities.  The
directory /var/lib/libvirt/images is typically not world
readable.  As a result, the glance operation requires root
permissions to actually read the file, and may be a source
of confusion for users.

Also break the notification into two lines since it wraps on
80 character windows.

Change-Id: I905f3c24ed253ddc1e843bc73c93464c65d3df0b
heat-jeos.sh: Use netinst ISOs instead of full DVD isos

The netinst isos produce smaller qcow2 images and are faster
to download.  Use netinst ISOs for F17 instead.

Change-Id: I76c59728ed1b9b90b43487f93fdc2e55ee604916
The NoKey template references gold images which don't exist and doesn't run cfn-init

Change-Id: I726cc53d099292ef91ccecb7c784e3757e356b68
Fixes: Bug #1186791
Fix script formatting in OpenShift README

Change-Id: I4acea16ea63fadb2f42de58f55371ea7ba94da30
Improve formatting of OpenShift Origin README

Fix the bullet list, and add a title.

Change-Id: Icfa04bfbbb54cbaf244fc43041c4be24a9c5c0b9
Deliver HOT hello world template

This patch delivers a most simple HOT template with only a single instance,
no software, and just a few basic parameters and output.
The template can be processed with the code delivered in this patch

https://review.openstack.org/#/c/33258/

applied to the heat repository.

Contributes to blueprint hot-hello-world

Change-Id: Ib87a88aa4a71f1c1f147084273610b95bda704c1
Add a WordPress template for Rackspace Cloud Servers

Change-Id: I9bfecc035667a66579e9cac720a0d150ee6518f9
Add an auto scaling template that uses Ceilometer

blueprint: watch-ceilometer
Change-Id: I0f419b3a490a728727f6288c45e4a7c9fcdb1862
Parameter constraint samples for HOT hello world

Adding example for parameter validation constraints to HOT hello world
template to show new syntax and features for parameter constraints in
HOT.

This change depends on changes in the heat github repository, which
need to be completed so this new template can be processed.

Contributes to blueprint hot-parameters

Change-Id: I720f22795c94e4ceacc9ebe030929f9b58e981e9
Make YAML template easier to read

- Use folded block for Description
- Clarify description text
- Don't use JSON-style notation for Parameters
- Join UserData script with newlines to make it more readable
- Rename nonsensical 'WikiDatabase' instance to WebServer

Change-Id: Ieb7925e3fdb0e7f65fd6f69b9e9bbcd0235587da
Provide example F18 NoKey example

F18 requires some firewalld magic to enable http

Change-Id: I3e8ac256ee09af68d772b23690ed1ed368e04938
Add F17, F18, F19, U12 subdirectories for templates

This change makes it possible for us to properly maintain example templates
for various distributions by organizing them into subdirectories.

Change-Id: I06e4d24cae83330af97870bab1e6795999218d1e