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
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
Run horizon chown after compress styles

Chown Horizon files after the styles have
been compressed.

Change-Id: I06de3239f615d9455a639182f9a3be2a1ebf9d97
Closes-Bug: 1378860
Increases the number of processes in CentOS 6.X

Increases the number of processes per user in /etc/security/limits.d/90-nproc.conf
for CentOS 6.X due to bug https://bugzilla.redhat.com/show_bug.cgi?id=919793

Change-Id: I76f258f33325f80fe06167dec08d81dabd292163
Closes-Bug: 1376564
Merge "Add puppet module for monit"
Merge "Adapt monit module for Fuel needs"
Merge "Add monit as an option for compute nodes"
Merge "Increases the number of processes in CentOS 6.X"
Fix a typo and change elsif to else

Closes-bug: 1380999

Change-Id: I8d2013fc33e072ee5bdf18447c38cbce1f2230cd
Merge "Run horizon chown after compress styles"
Do not kill swift replicator services

To move from exec to SysV provider of the service
in previous releases we had to kill swift replicator
service with swift-init kill command.

This is not what we need in 6.0 release as we
are already managing everything with default OS
providers. Moreover, this commit is error-prone
for Ubuntu with upstart provider.

Change-Id: I9ed3a030b4987f919a9f9ec2d9351f0b2c3623b0
Closes-bug: #1381018