Fix mongo replication

Fix mongo replication set for slow hardware; remove warnings
from puppet log

* Increase timeout to puppet default
* Refactor on script for mongod verification
* Fix linting

Change-Id: Ib6d9fa200568920ba54c21600ea647de0e92d734
Closes-bug: 1320831
Sync puppet module ntp to v3.1.1 from upstream

v3.1.1 sha1: d5c648d42ad287150206f11692816eba7c73a2b0
Implements: blueprint merge-openstack-puppet-modules

Change-Id: I0ceb392d8750469ece3c93d67d2c73a8a6d7b71d
Adapt puppet module ntp for Fuel

Rename template name for ntp.
Strictly, in current implementation (v3.1.1), ntp module not need for explicit declare config_template var,
cause all logic from templates was moved to manifests (class ntp::params) and now it's only one template,
declared by default.
But since we don't want to change upstream modules and in declaration of 'openstack::clocksync'
config_template have default value as 'undef', so we need to save declare of this value at our module.

Change-Id: I8f9ac3bdacbd5512224bb4b1a5b9214bed54093c
Implements: blueprint merge-openstack-puppet-modules
Sync puppet module rsync to v0.3.0 from upstream

v0.3.0 sha1: d0707c4ae3674b63c2193c0012ceb9fa90ed41b6
Repo link: https://github.com/puppetlabs/puppetlabs-rsync
Implements: blueprint merge-openstack-puppet-modules

Change-Id: I873975f11ad5d839c5a52c2c3301b1f63fe92f5f
Update the puppet coding style

Disable check in rakefile:
* disable 80 chars
* disable variable scope
* disable class inherits from params class
* disable class parameter defaults
The remaining work is in the correction puppet code specifications

Change-Id: I4448f1776ca3c7c3ea4a3bb64672785a62572663
Closes-Bug: #1338228
The modified puppet code style

Add the Rakefile file:
 * add dependency rubygems
 * disable 80 chars check
 * disable two-space soft tabs check
 * disable arrow alignment check
 * disable selector inside resource check
 * disable class parameter defaults
The remaining work is in the correction puppet code specifications

Change-Id: Id6caeacc10b07898af06768f6dde5261d9ea5f89
Closes-Bug: #1338477
Rename parameter 'tag' to 'vlan_tag' in l23network module

In puppet >3.0 word 'tag' is reserved, so it have to be
renamed.

Change-Id: Ie2b62d2b96ee9ca9d4ced15d038979561899e910
Closes-Bug: 1305600
The modified puppet code style

Change-Id: I1031e9f1b5586cc0c26b0f85a31fe6ce5e6c168c
Closes-Bug: #1338226
Fix syntax error in rabbitmq ocf_script

Incorrect syntax in defaults section
causes errors in log.

Closes-Bug: 1361598
Change-Id: I6074584305417993db0fe73099b4af17a153481f
Sync inifile with upstream

v1.1.3 41e2ddbc1cd861247e57d16b778cbe891602f509
Partial blueprint merge-openstack-puppet-modules

Change-Id: Idd6b512a4adafc31cd0c80ccf0ca59a18b43d98e
Set non-empty external-id for bridges by default

Set external-id for bridges to their names by default.
OVS-agent monitors external bridges only if their external-id
matches their names

Change-Id: If98ff6d13d5d229127e5218c99d788b759e3027f
Closes-bug: #1323608
Added file /etc/profile.d/nsx-alias.sh deletion in Ubuntu HA + NSX deploy

Delete this file, because it uses bash-syntax for functions defenitions,
but specified interpreter is /bin/sh and in Ubuntu /bin/sh->/bin/dash
When corosync checks it resources, it uses /bin/sh which is equivalent
/bin/dash in Ubuntu.
Accordingly, corosync can not launch mysql.

Change-Id: I950ae6ad40c2c43c410cc0af98ff3b08b52a0260
Closes-bug: #1368728
Fixed class plugin_neutronnsx for HA mode

Added forgoten case for primary-controller role
 
Change-Id: Id3f947da348ce90ae18cff76be1473859bfb9cca
Closes-bug: #1369529
Enable metadata service on Controller node for vCenter

Just patch a Nova_config resourse with a hardcoded value.

Change-Id: I520a954b73b446e8baff70d29a145af45decb462
Closes-Bug: #1370165
Merge "Enable metadata service on Controller node for vCenter"
Merge "Fixed class plugin_neutronnsx for HA mode"
Set horizon local_settings before compress

Compress fails because local_settings.py default
value is false. The settings file needs to be
created first.

Change-Id: I142a4d78880c143a13d5e715428a5c0937f33c9a
Closes-Bug: #1364938
blueprint fuel-deploy-juno
Import the camptocamp openssl module version 0.3.1.

It is a new module that will be used to manage SSL keys and
certificates. It allows:
  - The generation of SSL keys,
  - The generation of SSL certificate from private key
  - The generation of SSL certificate signing request

Change-Id: I4a6a7b78d58fd17ea133421bc326fe2d3d65b409
Implements: blueprint ssl-endpoints
Tie pub vip with public gw ping

Add new pacemaker cloned "ping" primitive and tie it with public
vip via "location" in order to migrate public VIP in case
controller can't ping public gateway.

Closes-bug: 1370510
Change-Id: Ibf4fedee536ac9eb106206060b58a6039558ef85
Set <host> in cinder.conf to rbd:<pool> for RBD backend

Cinder volume can only be managed by a cinder-volume process that has <host>
configuration variable value matching <os-vol-host-attr:host> attribute of the
volume.

By default, host of a cinder-volume service is set to its hostname, which means
that if one controller is lost, none of its volumes can be managed by
cinder-volume processes on other controllers. This makes sense for Cinder LVM,
but not for RBD or other shared backends.

This commit sets <host> to the same value on all controllers when RBD backend
is enabled, so that any controller can manage RBD backed volumes created by any
other controller.

Change-Id: I47161796dbb817eab026402760799bee24371863
Partial-Bug: #1371328