Configure MySQL before db sync runs

When using puppet-mysql 2.2, the restart and bind-address options need to
be passed so that MySQL server will be configured properly before db sync
runs are made for the various OpenStack services.

Also include max-connections, max_connect_errors, and key_buffer_size as
generally useful parameters that together provide an example to users of
how to supply MySQL config options through the composition layer.

Change-Id: I0b607a56b63f51bc698c23b1797d81f9d7dca506
Closes-Bug: #1304579
Add variables for active-passive Galera HA proxy

Add variables and data mappings needed to configure Galera HAProxy in an
active-passive model due to compatibility issues between Galera
configured with multiple active writers and certain SQL statements used
in OpenStack code.

Change-Id: I09111b406edf3799e01b7172956d08d84d40f526
Partial-Bug: #1321734
Allow rabbitmq erlang cookie to be set

The wipe_db_on_cookie_change flag must be set so that the erlang cookie
for RabbitMQ can be configured by Puppet.

Change-Id: I92d861142befa4ffa79a1086dad775f3168c0381
Closes-Bug: #1322210
Horizon login failing due to incorrect endpoint

Update data mappings so that horizon uses the public keystone endpoint
(port 5000) instead of the internal keystone endpoint (35357) to allow
users to log in.

Change-Id: I7d6298fbffb81e8f8929a2f2e74b6ef9f4c59b6a
Closes-Bug: #1322282
Supress default vhost creation in HA scenarios

Disable default vhost creation in HA scenarios so that the horizon vhost
will work.

Change-Id: Ief9cafa3d948c5c6ed5ece0eefa1908c01b659e1
Closes-Bug: #1322284
Merge "Configure MySQL before db sync runs"
Merge "Add variables for active-passive Galera HA proxy"
Merge "Allow rabbitmq erlang cookie to be set"
Merge "Supress default vhost creation in HA scenarios"
Merge "Horizon login failing due to incorrect endpoint"
Set charset and collation order parameters

Add data mappings and set charset and collation order parameters for
Ceilometer, Cinder, Glance, Heat, Keystone, Neutron, and Nova.

Conflicts:
	data/hiera_data/common.yaml

Closes-Bug: #1302088
Change-Id: Ia9bb5ef8018bb11158569d8e1ce32d18754f0c2f
Set up Apache on build server for HA

In HA scenarios the build server needs apache::default_vhost enabled but
the other Apache nodes in HA do not.

Change-Id: If891c6895ee53f7f24de8c1b0c3f0bae3c53c5da
Closes-Bug: #1324593
ceilometer_controller: Add missing ceilometer::agent::auth class

Without this patch, class ceilometer::agent::central was installed on
the ceilometer controller but without the necessary authentication
settings to talk to other openstack services.

Adding the ceilometer::agent::auth class on the controller node fixes
this issue.

Change-Id: I7f1ead998f3f6c9492f5076160b52156ef689b63
Fixup for Cinder iSCSI volumes

Cinder could only attach volumes to instances that were on the
same node. This is due to the iscsi listening address set to
0.0.0.0. Attaching the listener to a interface resolves the
problem and allows volume operations from/to any host.

Change-Id: Ia66c4f7f7278e2056d1ca3770ed2461259cca4e8
Merge "Set up Apache on build server for HA"
Fix iscsi_ip_address to work automatically for AIO

In https://review.openstack.org/#/c/101589/ a change was made
to allow compute nodes to connect to iscsi volumes that don't
reside on the same physical host. However, the default value used
is the IP address on eth1, which causes a minor headache for many
people deploying AIO with a single NIC (usually eth0).  This patch
adds a line to the install.sh script that sets a value in user.yaml
that works for such cases.

Change-Id: I6d968ec5fb9bea56159c48e754e94e53ab0b1bb8
Closes-Bug: #1344074
Fix augeas gem installs in bootstrap

Augeas is handled separately so it should not
be installed along with other local gems.

Change-Id: I090a3c8f44a93e3a9a0edc65683ba263b7af7eae
Install wget if it's not already there

In addition, don't try to set the wget proxy
until it's installed.

Change-Id: Ibd01939264a2ce1fd9fa36ff10de0785c6722025
Use facter for hostname in bootstrap script

Change-Id: Iceb0b482aedb3a44afb051bd62a9d732c81c3ea1
Fix ruby version detection in bootstrap

The ruby install section did not correctly
handle the case where ruby was not present.

This patch adds a check

Change-Id: I0d4333e847545bc4bf5466367a761fd056d298d8