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>
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
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"
Add dhcp-sequential-ip option to dnsmasq

For many simultaneously DHCPDISCOVER requests dnsmasq
can offer the same IP for two different MAC addresses.
This option prevents it by assigning IPs one by one
instead of using hashing algorithm.

Change-Id: Iff3c42d21e1f1c09cb9eab5f07dbb066508dcb56
Related-bug: 1378000
Related-bug: 1376680
Related-bug: 1379917
Blueprint: 100-nodes-support
Merge "Added AUTHORIZED_KEYS field into settings.yaml.erb"
Fix blocking reject rule for rabbit ocf

* Make RMQ unblock call safe (remove all discovered RMQ
  blocking rules, if there are many of them).
* Use unblock safe call prior to the blocking one.
* Make block call idempotent and add 5 retries for iptables.
* Add info log messages about block/unblock actions. Notify
  if RMQ blocking rule cannot be added for some strange reason.

Partial-bug: #1373569
Closes-bug: #1375824

Change-Id: I46c6bf3c83ada4273eaa05530e80886ebac7e75f
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Run horizon chown after compress styles

Chown Horizon files after the styles have
been compressed.

Change-Id: I06de3239f615d9455a639182f9a3be2a1ebf9d97
Closes-Bug: 1378860