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 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
The modified puppet code style

Change-Id: I1031e9f1b5586cc0c26b0f85a31fe6ce5e6c168c
Closes-Bug: #1338226
rsyslogd config templates: remove invalid comments

rsyslogd version 7.x (which is shipped with Ubuntu 14.04) does not support
comments inside multi-line statements:

if ($programname == 'foo') \
 # some comment here
then -/var/log/foo.log

rsyslogd treats such a comment as a fatal error and refuses to start.
Remove those broken comments to avoid the error.

Change-Id: I7f5efc9ec5096777b58f7ec6576947d1d36d8ecd
Rename VIP resources

DocImpact
Related blueprint pacemaker-improvements

Change-Id: Ica5498ebda1e24e3fbc9011c4c703fe31eab112d
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Add puppet module for monit

v0.0.4 412cd738a0fd94cbd337053b2a8562928988679a
source git@github.com:jbussdieker/puppet-monit.git

Related blueprint pacemaker-improvements

Change-Id: I76c5ae198ae355d0ddaeaa627a50e2c230e932b9
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Use single nova-api worker per compute node

Then using nova-network with metadata,
we don't have to spawn so many (processors core
count based) api workers for compute nodes.

Closes-bug: #1377837

Change-Id: I5835a09451d1604f6323a5cb50bfb7babb9304a5
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Adapt monit module for Fuel needs

* Lower service health polling from 120 to 30 sec
* Add timeout for start/stop actions
* Add pidless services tracking as well (e.g. we will
  need it for nova-compute, nova-network)
* Add params for Redhat/Centos support
* Make config template params based
* Add syslog support
* Redefine service's provider to monit, if already
  in catalog
* Adjust rspecs
* Add docs

Related blueprint pacemaker-improvements

Change-Id: Id4f594ceda640175f20594c6a4787c8c0145f433
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Add monit as an option for compute nodes

* Add use_monit (Default false) for site.pp
  If enabled, will install and configure monit watchdogs for
  specified services and roles (compute & cinder).
* Changes to cluster_ha.pp/cluster_simple.pp:
  - Add monit watchdogs for nova-compute/network/api for compute
    nodes by mathcing the python processes.
  - Add monit watchdogs for cinder-volume for cinder nodes
    by mathcing the python processes
  - Add monit watchdog for ovs service by its pid for computes.

DocImpact
Related blueprint pacemaker-improvements

Change-Id: Ia622d3200db1b78a0cf4e6b1da1ceff0604e8a16
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
honour `replication_mode' configuration option in the VMware NSX plugin

- `replication_mode' stanza determines network traffic replication mode.
  Default value for this setting is `service' which means that NSX
  cluster operates with NSX Service nodes (as any NSX production cluster
  should) and packet replication on router and switches happens on NSX
  Service nodes.
- setting `replication_mode' to `source' means that traffic replication
  happens localy on nodes, which is the only option if we do not have
  Service nodes.

DocImpact
Change-Id: I830dc687dbf25a8fd9e4d375c5e37af2bda83df4
Partial-bug: #1365043
Remove fuelweb from repos path

Should be synchronized with appropriate patchsets in fuel-web and
fuel-main.

Change-Id: Ide4d1138fe5f07b1775a434060c531d5273acc9e
Related-Bug: #1377160
Run syntax check for OCF scripts

Make fuel_syntax_check.sh script run syntax check for any file
found under "files/ocf/" subfolder in all puppet modules.

Also bugfix for "rake spec" testing part of the script.

Change-Id: I83c5bb1366b9284ff411c3e3e54e3a27c4049815
Closes-bug: 1376254
Closes-bug: 1378857
DocImpact
Rename package murano-api to murano

Added backward compatibility logic to murano
to enable Icehouse deployment, but depends on
setting openstack_version to 2014.1.X-6.0

blueprint fuel-deploy-juno

Co-Authored-By: Dmitry Borodaenko <dborodaenko@mirantis.com>
Change-Id: I5b7f314c3e9ff8fd34c4e2a7044e282b55ee6b7c
Merge "Rename package murano-api to murano"
Merge "honour `replication_mode' configuration option in the VMware NSX plugin"
Added AUTHORIZED_KEYS field into settings.yaml.erb

This is for making it possible for nailgun to pass
default (aka system) public key into provisioning data
so as to put them on a target node apart from user
defined public key.

Related PR to fuel-web is
https://review.openstack.org/#/c/127490/

Change-Id: Id5dff61444d7dfb278e0ae6c49b0f772ff68ffd6
Closes-Bug: 1378832
Implements: blueprint image-based-provisioning
Use host puppet manifests for containers

Potentially conflicts with upgrades, but useful
for feature of testing puppet changes with
Fuel CI. /etc/puppet of host system is now
mounted read only inside containers.

Docimpact: impact on puppet manifests for testing

blueprint fuel-master-ci-tests

Change-Id: I63a13fbd5b105c3b4326ad53125dbc4ae06e502e
Merge "Run syntax check for OCF scripts"