Fix to work when keystone is behind haproxy
Use new helpers to get hostnames for endpoints
Moved role constraints into model and removed edit deployment

(cherry picked from commit 7062e7e572d1bf7bf33d3403ced1b03981281de8)
Merge pull request #190 from vuntz/release/roxy/master

Moved role constraints into model and removed edit deployment
Removed the single assignment block from constraints
Merge pull request #191 from tboerger/feature/roxy/fix-constraints

Removed the single assignment block from constraints
Add qemu-img as requirements for qemu-kvm
Merge pull request #187 from vuntz/haproxy

Work with keystone behind haproxy
Merge branch 'release/roxy/master' into roxy-sync
Services listen on another port when HA is enabled

When the HA proxy runs in front of the glance services (API and
registry), make sure that they bind to a different port.

In the config file templates of these services, the ports were set from
a config hash, so refactor this and pass the port as a template
variable from the recipes.

Also fix configs for scrubber and cache, as these use the registry
bind/port too.
Add HA recipe

If HA is enabled, this recipe sets up a load balancing for glance
services (registry + api).

The recipe basically just asks for the ip/ports of other servers that
should be behind HA and can be failed over to and sets up load balancing
on the current node.
Setup HA and VIP networks in crowbar framework

Check if HA should be enabled. Currently, that means that there are
clusters defined for a given role, i.e. that list of role elements
expands to a differing list of nodes.

Based on that, mark the role as using HA. Then set up virtual IP network
for each cluster and make sure the DNS is configured, as the setup
recipe in the glance cookbook needs to resolve virtual IPs in the cluster.
Add dependency on pacemaker to cookbook metadata
Centralize network settings

To make configuring / fiddling with network settings easier, centralize
them into a helper method, returning a hash w/ API + registry network
configuration.
Enable cluster mode in role constraints
Set database password from crowbar, not cookbook

It turns out that we didn't have attributes for the database known to
crowbar, so we need to add them.

One bit worth mentioning: the db name was hard-coded to "glancedb"
before, so we keep it on migration.
Merge pull request #1 from vuntz/ha

Set database password from crowbar, not cookbook
Merge pull request #195 from vuntz/roxy-sync

Merge roxy branch into stoney
Merge pull request #194 from vuntz/qemu-img-centos

Add qemu-img as requirements for qemu-kvm
cluster_vhostname moved to CrowbarPacemakerHelper