]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/log
puppet-modules/puppet-ceilometer.git
9 years agomake crontab for expirer optional
Xav Paice [Thu, 25 Jun 2015 03:28:12 +0000 (15:28 +1200)]
make crontab for expirer optional

This adds an 'enable_cron' switch to ceilometer::expirer, defaults to
true, so that if we want to configure the TTL but don't want to run the
expiry job via cron we don't have to.

Closes-Bug: 1468937

Change-Id: I7fd89e58f70ae41628e769ed24f1ef5c15af51f9

10 years agoRelease 5.1.0 - Juno
Emilien Macchi [Wed, 17 Jun 2015 17:45:54 +0000 (13:45 -0400)]
Release 5.1.0 - Juno

Prepare 5.1.0 release.

Change-Id: Idd85e908cbedcbc6b6a2453c3b8012bcaa12e70a

10 years agoMerge "Deprecate old public, internal and admin parameters"
Jenkins [Wed, 17 Jun 2015 00:02:27 +0000 (00:02 +0000)]
Merge "Deprecate old public, internal and admin parameters"

10 years agoMerge "Update spec_helper_acceptance for project renames"
Jenkins [Tue, 16 Jun 2015 15:54:46 +0000 (15:54 +0000)]
Merge "Update spec_helper_acceptance for project renames"

10 years agoUpdate spec_helper_acceptance for project renames
Colleen Murphy [Sat, 13 Jun 2015 00:33:15 +0000 (17:33 -0700)]
Update spec_helper_acceptance for project renames

Change-Id: I9f63d9bd8373102a4a8cfe8320a41d824501b8f0

10 years agoUpdate .gitreview file for project rename
Jeremy Stanley [Fri, 12 Jun 2015 22:41:19 +0000 (22:41 +0000)]
Update .gitreview file for project rename

Change-Id: I2d86f89f1984d128edad5497466e3c7606e225f2

10 years agoDeprecate old public, internal and admin parameters
Mathieu Gagné [Thu, 11 Jun 2015 18:04:12 +0000 (14:04 -0400)]
Deprecate old public, internal and admin parameters

This change deprecates the following parameters:
- port (replaced by public/internal/admin_url)
- public_protocol (replaced by public_url)
- public_address (replaced by public_url)
- internal_protocol (replaced by internal_url)
- internal_address (replaced by internal_url)
- admin_protocol (replaced by admin_url)
- admin_address (replaced by admin_url)

Add deprecation warnings if any of those values are provided
while maintaining full backward compatibility.

Closes-bug: #1274979
Change-Id: Ia20f9d032fada10979383446f78ff57035b9c763

10 years agoMerge "Unpin beaker-rspec"
Jenkins [Tue, 9 Jun 2015 17:18:09 +0000 (17:18 +0000)]
Merge "Unpin beaker-rspec"

10 years agoUnpin beaker-rspec
Colleen Murphy [Mon, 8 Jun 2015 19:55:06 +0000 (12:55 -0700)]
Unpin beaker-rspec

The latest version of beaker tries to manage sshd_config[1] in order to
pass through environment variables. JJB also tries to manage
sshd_config by adding Match blocks to securely allow root SSH[2]. When
beaker tries to append the PermitUserEnvironment line after the Match
blocks, SSH fails to open port 22 and beaker can't SSH in to the
node[3]. This patch unpins beaker-rspec and adds set_env: false to the
nodepool nodesets so that the set_env method is never called and does
not try to mess with the sshd_config.

[1] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L528
[2] http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n42
[3] http://logs.openstack.org/61/185161/1/check/gate-puppet-nova-puppet-beaker-rspec-dsvm-centos7/cd81608/console.html.gz#_2015-05-22_22_05_46_933
[4] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L502

Change-Id: Ia96c315a44d7ae90511d515b03166cbe5a060f31

10 years agoMove rabbit/kombu settings to oslo_messaging_rabbit section
Gael Chamoulaud [Tue, 14 Apr 2015 19:35:39 +0000 (21:35 +0200)]
Move rabbit/kombu settings to oslo_messaging_rabbit section

Kilo oslo-messaging deprecates rabbit/kombu settings in the
DEFAULT section.

Move these settings to proper oslo_messaging_rabbit section.

Change-Id: I0b822c37b81e9bcbb7f51959300167ff7ff3eb68
Closes-bug: 1444161
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoFix dependency on nova-common package
iberezovskiy [Fri, 22 May 2015 09:39:48 +0000 (12:39 +0300)]
Fix dependency on nova-common package

  Nova module could be not included or imported directly
  and this can lead to failure with missing dependency
  on 'nova-common' package. More safe is to use
  Package <| title == nova-common |>

Change-Id: Idac8d52955ff6f3f1c62a538b197eeac6f281a1f

10 years agoMerge "acceptance: don't install erlang on RHEL"
Jenkins [Sun, 17 May 2015 01:29:10 +0000 (01:29 +0000)]
Merge "acceptance: don't install erlang on RHEL"

10 years agoMerge "Fix spec tests for RSpec 3.x and Puppet 4.x"
Jenkins [Thu, 14 May 2015 18:35:32 +0000 (18:35 +0000)]
Merge "Fix spec tests for RSpec 3.x and Puppet 4.x"

10 years agoacceptance: don't install erlang on RHEL
Emilien Macchi [Wed, 13 May 2015 21:08:35 +0000 (17:08 -0400)]
acceptance: don't install erlang on RHEL

Puppet erlang module does not pin puppetlabs-apt so it will have
conflicts in other modules if we want to use it (since we try to not use
2.0.0 release).

Let's simplify acceptance tests in not using erlang module and be
consistent with all Puppet OpenStack modules tests.

Change-Id: I6c79968becc11a19bddd2cba5aedb663f4c80c61

10 years agoFix spec tests for RSpec 3.x and Puppet 4.x
Sebastien Badia [Wed, 13 May 2015 15:36:59 +0000 (17:36 +0200)]
Fix spec tests for RSpec 3.x and Puppet 4.x

Fix resource array, according[1].
[1]https://github.com/puppetlabs/puppet/blob/3.7.5/lib/puppet/resource.rb#L446-L453

Closes-bug: #1447620
Change-Id: I246a53b90a74aed4b114ffad5ce1995bb9e334dc

10 years agoBring Redhat support to acceptance tests
Emilien Macchi [Mon, 11 May 2015 19:38:43 +0000 (15:38 -0400)]
Bring Redhat support to acceptance tests

OpenStack Infra has jobs to run this on both Ubuntu Trusty and CentOS7.

* Add minitest to Gemfile (dependency to run beaker on centos - see
  http://projects.theforeman.org/issues/2650 for details)
* separate nodepool files to have trusty & centos7 support in OS infra
* basic_keystone_spec: add case for repo configuration and support
  RH systems.
* rabbitmq: install module from source and on RH, install erlang before rabbitmq-server.

Change-Id: Ie6c823c7906afb37dd9e49fa434fefc3e26b5569
Closes-bug: #1444736

10 years agoBeaker: install APT repo with openstack_extras
Emilien Macchi [Mon, 11 May 2015 19:22:36 +0000 (15:22 -0400)]
Beaker: install APT repo with openstack_extras

Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I5bf3bd0e2e1b8db49752abca823203ff225713c4

10 years agoMerge "Ensure python-mysqldb is installed before MySQL db_sync"
Jenkins [Wed, 6 May 2015 14:20:26 +0000 (14:20 +0000)]
Merge "Ensure python-mysqldb is installed  before MySQL db_sync"

10 years agoMerge "Beaker tests"
Jenkins [Tue, 5 May 2015 08:45:03 +0000 (08:45 +0000)]
Merge "Beaker tests"

10 years agoBeaker tests
Emilien Macchi [Sat, 25 Apr 2015 19:19:58 +0000 (15:19 -0400)]
Beaker tests

Implement basic structure for beaker tests.

Change-Id: I6ca638994e9d2ecc8977a186525c9c41d2be563b
Closes-bug: #1444736

10 years agoEnsure python-mysqldb is installed before MySQL db_sync
Emilien Macchi [Sun, 26 Apr 2015 10:48:24 +0000 (06:48 -0400)]
Ensure python-mysqldb is installed  before MySQL db_sync

When running MySQL for storage backend, we need to make sure
python-mysqldb is installed *before* the db_sync command, otherwise it
will fail:
"ImportError: No module named MySQLdb".

This patch ensure the ordering to ensure puppetlabs-mysql installed the
package before puppet-ceilometer tries to synchronize the MySQLdatabase.

Change-Id: Iae7c8f24fda32357a61ffa3b8597dd3413c303cb

10 years agoBump rspec-puppet to 2.1.0
Emilien Macchi [Wed, 22 Apr 2015 21:12:26 +0000 (17:12 -0400)]
Bump rspec-puppet to 2.1.0

rspec-puppet 2.1.0 includes Puppet 4.0 support [1].

[1] https://github.com/rodjek/rspec-puppet/commits/v2.1.0

Change-Id: I765b70a4eef15eb9df14ea14dd6a65715d0ae637

10 years agoMySQL: change default MySQL collate to utf8_general_ci
Emilien Macchi [Tue, 21 Apr 2015 17:05:47 +0000 (13:05 -0400)]
MySQL: change default MySQL collate to utf8_general_ci

Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: I9fb58a749436873b60b51bb67127ae9524f944db
Closes-bug: #1446375

10 years agoMerge "Synchronize LICENSE file with OpenStack projects"
Jenkins [Mon, 20 Apr 2015 14:26:59 +0000 (14:26 +0000)]
Merge "Synchronize LICENSE file with OpenStack projects"

10 years agoSynchronize LICENSE file with OpenStack projects
Emilien Macchi [Tue, 14 Apr 2015 21:02:51 +0000 (17:02 -0400)]
Synchronize LICENSE file with OpenStack projects

Update LICENSE file to be the same as other OpenStack projects.

Change-Id: Iae45127b6a758f655a8ba82e1c24749793072589
Closes-bug: #1241725

10 years agospec: Add Unit Tests for Ceilometer_config type/provider
Gael Chamoulaud [Fri, 3 Apr 2015 13:15:02 +0000 (15:15 +0200)]
spec: Add Unit Tests for Ceilometer_config type/provider

Change-Id: I0527683055829d3a3b6ff465c48a0caf44c41595
Partial-bug: #1440401
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoPin puppetlabs-concat to 1.2.1 in fixtures
Colleen Murphy [Wed, 15 Apr 2015 22:14:14 +0000 (15:14 -0700)]
Pin puppetlabs-concat to 1.2.1 in fixtures

Puppet Labs is in the process of releasing a 2.0.0 version of
puppetlabs-concat, which will have many breaking changes that affect
many dependent modules. Changes have been merged to master, but not yet
released. While we figure out what changes we need to make in our own
modules and wait for updates in dependent modules, we should just pin
to a stable version.

This module declared concat twice in the fixtures, so we also remove
the second one so that pinning is effective.

Change-Id: I53f6bd56099287bfc075bffb24a9ab4be8133cab

10 years agoMerge "Add udp_address/udp_port parameters for collector."
Jenkins [Fri, 10 Apr 2015 07:45:36 +0000 (07:45 +0000)]
Merge "Add udp_address/udp_port parameters for collector."

10 years agoAdd udp_address/udp_port parameters for collector.
Sofer Athlan-Guyot [Mon, 23 Mar 2015 18:42:41 +0000 (14:42 -0400)]
Add udp_address/udp_port parameters for collector.

Change-Id: Ib776ecda9185caca9ea5c95525f0ffe4487b6a56
Closes-Bug: rhbz/1185652

10 years agoFix some missing rspec3 keywords
Gael Chamoulaud [Fri, 3 Apr 2015 13:10:59 +0000 (15:10 +0200)]
Fix some missing rspec3 keywords

- 'should' keyword should be changed in 'is_expected.to'

Change-Id: I4ac85551285058fb50ba66e12c6b0d0982ff8485
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoTag all Ceilometer packages
Gael Chamoulaud [Sat, 28 Mar 2015 13:05:31 +0000 (14:05 +0100)]
Tag all Ceilometer packages

Some users wish to override the default package provider by their own.

Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.

Closes-bug: #1391209

Change-Id: If43101b9974d26c88f8612da64c5356a644f892e
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoMerge "Add Puppet 4.x lint checks"
Jenkins [Mon, 16 Mar 2015 06:16:56 +0000 (06:16 +0000)]
Merge "Add Puppet 4.x lint checks"

10 years agoMerge "spec: updates for rspec-puppet 2.x and rspec 3.x"
Jenkins [Fri, 13 Mar 2015 15:31:04 +0000 (15:31 +0000)]
Merge "spec: updates for rspec-puppet 2.x and rspec 3.x"

10 years agoAdd support for identity_uri.
Dan Prince [Thu, 12 Mar 2015 13:45:46 +0000 (09:45 -0400)]
Add support for identity_uri.

This patch adds the ability to set a new keystone_identity_uri
parameter.  It also deprecates the old keystone_host, keystone_port,
keystone_protocol, and keystone_auth_admin_prefix parameters. Logic
is in place so that users of the deprecated settings should have a
smooth upgrade process and get deprecation warnings until they adopt
the new settings.

Change-Id: Ideefb4d824cbd5b4b83f9eb773a75e536e3458fb

10 years agoAdd Puppet 4.x lint checks
Sebastien Badia [Sun, 22 Feb 2015 21:14:37 +0000 (22:14 +0100)]
Add Puppet 4.x lint checks

This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

This commit also remove custom metadata rake task (this task is now
provided by puppetlabs_spec_helper).

Conflicts:
Gemfile

Change-Id: I22369948db6a2f8ddab9b8c93c3a047ff2e229ca

10 years agospec: updates for rspec-puppet 2.x and rspec 3.x
Sebastien Badia [Sun, 22 Feb 2015 21:02:45 +0000 (22:02 +0100)]
spec: updates for rspec-puppet 2.x and rspec 3.x

This patch aim to update our specs test in order to work with the new
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:

  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: Ieaff6bc8bdd8548648ff5e76b212d4df382fa8a3
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant

10 years agoAdd support for ceilometer-polling agent
iberezovskiy [Mon, 26 Jan 2015 11:25:43 +0000 (14:25 +0300)]
Add support for ceilometer-polling agent

Add ability to use new ceilometer-polling agent
instead of ceilometer-central, ceilometer-compute or
ceilometer-ipmi. Specify central_namespace, compute_namespace
and ipmi_namespace parameters to set namespaces

Change-Id: I066f601a5234cb689c98e8eea2b5790bdaa5b8b5

10 years agoFix lint issues (doc, metadata, manifests)
Sebastien Badia [Sun, 22 Feb 2015 20:53:35 +0000 (21:53 +0100)]
Fix lint issues (doc, metadata, manifests)

Add puppet parameters lint (with puppet-lint-param-docs gem) and fix
missing documentations, this commit also fix manifest lint issues (due
to puppet-lint upgrade) and metadata.json file (SPDX license, and open
dependencies).

Change-Id: If0cfefec6b2c6865a3078d91a40326082825f8ec

10 years agospec: pin rspec-puppet to 1.0.1
Sebastien Badia [Tue, 3 Feb 2015 14:32:20 +0000 (15:32 +0100)]
spec: pin rspec-puppet to 1.0.1

rspec-puppet (2.0.0) was released yesterday[1], this new version broke
puppet-openstack unit tests (undefined method `resource')[2] as talked on
and in a second time to update your specs to 2.0.0 and rspec 3.x`)

[1] https://github.com/rodjek/rspec-puppet/commit/8459e14807977244c00bdbcf190062c529b63474
[2] http://logs.openstack.org/45/105245/6/check/gate-puppet-nova-puppet-unit-3.3/3682541/console.html

Change-Id: Ia41394433be65435fc7de6327a5659b26e1a85a5
Partial-bug: #1417604

10 years agoMerge "Deprecate support for Fedora 18"
Jenkins [Wed, 14 Jan 2015 14:41:24 +0000 (14:41 +0000)]
Merge "Deprecate support for Fedora 18"

10 years agoMerge "Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default"
Jenkins [Mon, 12 Jan 2015 23:41:30 +0000 (23:41 +0000)]
Merge "Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default"

10 years agoDeprecate support for Fedora 18
Lukas Bezdicka [Fri, 19 Dec 2014 12:04:04 +0000 (13:04 +0100)]
Deprecate support for Fedora 18

Also fixes error on Rawhide: Error: comparison of String with 18.
Package python-sqlite2 is deprecated since F18. F19 is also EOL.
https://fedoraproject.org/wiki/End_of_life

Change-Id: Id59fd02af92c6d77d49195001fc4f983d66d29dd

10 years agoSwitch to TLSv1 as SSLv3 is considered insecure and is disabled by default
Lukas Bezdicka [Fri, 2 Jan 2015 19:04:10 +0000 (20:04 +0100)]
Switch to TLSv1 as SSLv3 is considered insecure and is disabled by default

Rabbitmq won't talk to us anymore if we try to use SSLv3 as it disabled
support for SSLv3. Openstack components use python's openssl
implementation which does not support TLSv1.1 and TLSv1.2 yet so we
just switch to TLSv1. Support for newer TLS should come with python
2.7.9+

Closes-Bug: #1409667
Change-Id: I00cfa06030b84ae23cb8548b74cf5684562377aa

10 years agoMerge "Implement Ceilometer-API as a WSGI process support"
Jenkins [Mon, 12 Jan 2015 00:14:55 +0000 (00:14 +0000)]
Merge "Implement Ceilometer-API as a WSGI process support"

10 years agoMerge "fixtures: Unpin puppetlabs-mysql module"
Jenkins [Sun, 11 Jan 2015 23:59:00 +0000 (23:59 +0000)]
Merge "fixtures: Unpin puppetlabs-mysql module"

10 years agoMerge "db: Added postgresql backend using openstacklib helper"
Jenkins [Sun, 11 Jan 2015 23:54:37 +0000 (23:54 +0000)]
Merge "db: Added postgresql backend using openstacklib helper"

10 years agoImplement Ceilometer-API as a WSGI process support
Emilien Macchi [Wed, 7 Jan 2015 23:40:33 +0000 (18:40 -0500)]
Implement Ceilometer-API as a WSGI process support

Ceilometer API can be run as a WSGI process.
Let's use openstacklib to run this service under WSGI process by using
Apache2.

Change-Id: I004d7e7a9bfccc4677d5d629503a92a15b6263c6

10 years agoFix syntax error with postgresql database string
Paul Belanger [Tue, 6 Jan 2015 04:52:14 +0000 (23:52 -0500)]
Fix syntax error with postgresql database string

Change-Id: Icc93b18218de57403c1f5d9793dfdd74dcb623d9
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
10 years agodb: Added postgresql backend using openstacklib helper
Sebastien Badia [Tue, 30 Dec 2014 17:55:06 +0000 (18:55 +0100)]
db: Added postgresql backend using openstacklib helper

Standardize ceilometer module, and add postgresql backend.

Change-Id: I6603304cab680185d289e6b284e55deaef437b61
Implements: blueprint commmon-openstack-database-resource

10 years agofixtures: Unpin puppetlabs-mysql module
Sebastien Badia [Tue, 30 Dec 2014 17:39:40 +0000 (18:39 +0100)]
fixtures: Unpin puppetlabs-mysql module

Since commit dd25406 of puppet-openstacklib we don't need to pin a
specific release of puppetlabs-mysql.

Change-Id: Ib7c3b4b1ff012307e8a80ae75de9f7ac3ce18e91

10 years agocrontab: ensure the script is run with shell
Emilien Macchi [Tue, 9 Dec 2014 15:53:50 +0000 (10:53 -0500)]
crontab: ensure the script is run with shell

Some distros does not provide a default shell for Ceilometer user.
We can run the crontab by force shell usage and avoid running
issues.

Closes-bug: #1400523
Change-Id: I3a4d5c958a4620335d062baecfc362fd758768b6

10 years agoMerge "Refactorise Keystone resources management"
Jenkins [Wed, 3 Dec 2014 22:22:16 +0000 (22:22 +0000)]
Merge "Refactorise Keystone resources management"

10 years agoMerge "Add support for configuring coordination/backend_url"
Jenkins [Wed, 26 Nov 2014 13:23:52 +0000 (13:23 +0000)]
Merge "Add support for configuring coordination/backend_url"

10 years agoClean up stray copy-paste error
Colleen Murphy [Tue, 25 Nov 2014 01:51:50 +0000 (17:51 -0800)]
Clean up stray copy-paste error

Change-Id: Ie45c8220d3a7b49b85d3090443eb675a2a3fbd0e

10 years agoRelease 5.0.0 - Juno 5.0.0
Colleen Murphy [Fri, 21 Nov 2014 00:59:10 +0000 (16:59 -0800)]
Release 5.0.0 - Juno

Changes in this release:
* Added package_ensure parameters to various classes to control package installation
* Added ceilometer::policy to control policy.json
* Updated validate_re expressions for Puppet 3.7
* Bumped stdlib dependency to >=4.0.0
* Added manage_service parameters to various classes to control whether the service was managed, as well as added enabled parameters where not already present
* Added parameters to control whether to configure users
* Added the ability to override the keystone service name in keystone::auth
* Migrated the ceilometer::db::mysql class to use openstacklib::db::mysql and deprecated the mysql_module parameter
* Fixed ceilometer-notification package name for RHEL
* Removed deprecation notices for sectionless ceilometer_config types for Juno release
* Added ability to hide secrets from puppet logs

Change-Id: Ifda9dba6ef8a9eb99d1a5d2bf45aa74b210675dc

10 years agoRefactorise Keystone resources management
Emilien Macchi [Fri, 21 Nov 2014 15:06:47 +0000 (10:06 -0500)]
Refactorise Keystone resources management

Refactorise the code of Keystone resources management with backward
compatibility since we don't modify the unit tests.

Change-Id: Iafbe248ef0314b8abc31d22a7631df51e23f2c48
Implements: blueprint common-openstack-identity-resource

10 years agoAdd support for configuring coordination/backend_url
Chris Dent [Thu, 13 Nov 2014 20:24:33 +0000 (20:24 +0000)]
Add support for configuring coordination/backend_url

If 'coordination_url' argument and value is provided to the central agent
or alarm evaluator classes, they will try to set 'backend_url' in the
'[coordination]' section of the ceilometer_config. This allows group
membership handling coordinated by tooz.

ensure_resource is used to avoid duplicate resources while still allowing
the central agent and alarm evaluator to be configured separately if
on different machines.

Note that this change does not include support for enabling coordination
of the compute agent.

Change-Id: I707a8b70ad742cc9f8fdc62c196d0e75574a50b2

10 years agopolicy.pp : Fix duplicate ressource issue openstacklib::policy
Yanis Guenane [Mon, 10 Nov 2014 19:45:07 +0000 (14:45 -0500)]
policy.pp : Fix duplicate ressource issue openstacklib::policy

Currently, in the policy.pp file the class openstacklib::policy
is called. The same apply for all components resulting in a
Duplicate Ressource issue. Using directly the underlying ressource
openstacklib::policy::base we prevent this issue.

Change-Id: Ia384a42365056317ca14031081f8c6e134f266aa

10 years agoMerge "Added metadata lint and puppet-syntax gems"
Jenkins [Sun, 9 Nov 2014 11:25:25 +0000 (11:25 +0000)]
Merge "Added metadata lint and puppet-syntax gems"

10 years agoMerge "policy.json: Allow one to manage them from the puppet module"
Jenkins [Sun, 9 Nov 2014 11:23:58 +0000 (11:23 +0000)]
Merge "policy.json: Allow one to manage them from the puppet module"

10 years agoAdded metadata lint and puppet-syntax gems
Sebastien Badia [Thu, 9 Oct 2014 14:50:53 +0000 (16:50 +0200)]
Added metadata lint and puppet-syntax gems

metadata-json-lint is a little tool to check the validity of
Puppet metatdata.json files.

puppet-syntax tool check the validity of templates,manifests and hiera
files (the goal here is to replace manual checks in the gate by a
standard? check `rake syntax`).

Change-Id: I60b9cdfe27eeb8a8f5ad3a238dd847ed3096cb6b

10 years agoAdd package_ensure where missing
Xav Paice [Tue, 2 Sep 2014 08:59:29 +0000 (20:59 +1200)]
Add package_ensure where missing

This adds package_ensure parameter to:
* ceilometer::agent::central
* ceilometer::agent::compute
* ceilometer::agent::notification
* ceilometer::api
* ceilometer::collector

Change-Id: I3a982882c37a24737d71f9af93d7aa0d7200bdf4

10 years agopolicy.json: Allow one to manage them from the puppet module
Yanis Guenane [Fri, 26 Sep 2014 23:07:49 +0000 (19:07 -0400)]
policy.json: Allow one to manage them from the puppet module

This commit allow a deployer to manage the policies via this module
It relies on augeas to change only the policy needed. The init takes
a hash of policies and apply them.

Change-Id: I413702d5baa0e96c43f9a599e1e06ed23ab23993

10 years agoSwitch to metadata.json for Puppet forge releases
Sebastien Badia [Sat, 27 Sep 2014 09:14:56 +0000 (11:14 +0200)]
Switch to metadata.json for Puppet forge releases

Since puppet 3.x, Puppet Labs Forge accept only the metadata.json file
for module description (Modulefile is now deprecated).

This patch :
 - convert the Modulefile to metadata.json.
 - bump major version to 5 (for juno), and deps.
 - switch to stackforge namespace.
 - relax pe version_requirement to 3.x.

Change-Id: Iff1f059764547634570b763f04833ddbc01f4758

10 years agoMerge "Stringify $evaluation_interval for validate_re call"
Jenkins [Fri, 3 Oct 2014 20:18:33 +0000 (20:18 +0000)]
Merge "Stringify $evaluation_interval for validate_re call"

10 years agoEnsure nova-common is installed before ceilometer
Chris Hoge [Thu, 2 Oct 2014 01:10:50 +0000 (20:10 -0500)]
Ensure nova-common is installed before ceilometer

Ceilometer depends on the nova user and group being
present. This change adds a dependency to nova-common
to ensure that packging will handle the user before
the ceilometer compute agent tries to add user ceilometer
to the nova group.

Fixes bug 1350980

Change-Id: Iaf950c4a487b4b25c9053d59cab4fa45a1f7390b

10 years agoMerge "Make user creation optional when creating service."
Jenkins [Mon, 29 Sep 2014 19:39:13 +0000 (19:39 +0000)]
Merge "Make user creation optional when creating service."

10 years agoMerge "Add manage_service feature"
Jenkins [Mon, 29 Sep 2014 04:13:53 +0000 (04:13 +0000)]
Merge "Add manage_service feature"

10 years agoStringify $evaluation_interval for validate_re call
Mike Dorman [Thu, 18 Sep 2014 18:18:30 +0000 (12:18 -0600)]
Stringify $evaluation_interval for validate_re call

Under Puppet 3.7.x, calls to validate_re fail if the parameter is not
strictly a string.  This change creates a string from
$evaluation_interval when passing to validate_re, so the call will
pass regardless of if the parameter to the class is specified as
string or an integer.

Change-Id: I17b82977f21483acf134837a66c5ecebe346cfdf
Closes-Bug: 1371235

10 years agoUpdate stdlib dependency to 4.x
Colleen Murphy [Mon, 22 Sep 2014 21:53:47 +0000 (14:53 -0700)]
Update stdlib dependency to 4.x

puppetlabs/stdlib 4.x is backwards compatible with 3.x and still tested
on Puppet 2.7. Updating stdlib to 4.x allows modules to use newer
functions without breaking older functionality.

Change-Id: I710daa21f3c1cf5640903243904655817e2a69f2

10 years agoAdd manage_service feature
Martin Magr [Wed, 20 Aug 2014 13:57:55 +0000 (15:57 +0200)]
Add manage_service feature

puppet-ceilometer lacks of disabling service managing. This patch adds
$manage_service parameter to all relevant classes.

Closes-bug: #1359823
Change-Id: Iee545b46ef5d7cf92859356ae84b8103564bf047

10 years agoMake user creation optional when creating service.
Mike Dorman [Wed, 10 Sep 2014 16:39:04 +0000 (11:39 -0500)]
Make user creation optional when creating service.

In some cases it is useful to be able to just configure
the service in Keystone and not the service user. This
is the case when e.g. a read only LDAP backend is used.
Added a parameter configure_user (defaults to true).
Closes-Bug: 1360232

Change-Id: I541224b9bf431da957b9de31909e0aad5c9be187

10 years agoMakes kombu_ssl_* parameters optional when rabbit_use_ssl => true
Mike Dorman [Thu, 4 Sep 2014 19:49:30 +0000 (13:49 -0600)]
Makes kombu_ssl_* parameters optional when rabbit_use_ssl => true

The kombu_ssl_* parameters should not be required when rabbit_use_ssl => true
Rather, rabbit_use_ssl must be set to true if the kombu_ssl_* parameters are
used.

Change-Id: I7664dda2c66ffb34ceb56ada722574ae0e490f8f
Closes-Bug: 1356083

10 years agoMerge "Adds ability to override service name for service catalog"
Jenkins [Wed, 3 Sep 2014 15:15:10 +0000 (15:15 +0000)]
Merge "Adds ability to override service name for service catalog"

10 years agoMerge "Migrate mysql backend to use openstacklib::db::mysql"
Jenkins [Wed, 3 Sep 2014 03:32:40 +0000 (03:32 +0000)]
Merge "Migrate mysql backend to use openstacklib::db::mysql"

10 years agoAdds ability to override service name for service catalog
Mike Dorman [Wed, 13 Aug 2014 15:19:26 +0000 (09:19 -0600)]
Adds ability to override service name for service catalog

Instead of forcing the name of the service in the service catalog to
match auth_name, this allows the ability to explicitly set the service
name, spearately from auth_name.
If service_name is not specified, it's value defaults to the value
of auth_name (which maintains the current behavior.)

Closes-bug: #1359755
Change-Id: I66dadaebb526cfae2b6c250b2bef97e1e6d6aafe

10 years agoAdd extended logging options.
Johannes Grassler [Tue, 12 Aug 2014 12:17:33 +0000 (14:17 +0200)]
Add extended logging options.

There is a range of extended logging options in Openstack services that use
openstack.common.logger (Ceilometer, Cinder, Heat, Keystone, Nova). Adding
ceilometer::logging to support them.

No blueprint/spec, as discussed in the IRC meeting on 08-11-2014.

Change-Id: I910e2f9e4f3ad1991d58ba6df16adfbc85e20131

10 years agoMigrate mysql backend to use openstacklib::db::mysql
Colleen Murphy [Thu, 31 Jul 2014 18:11:26 +0000 (11:11 -0700)]
Migrate mysql backend to use openstacklib::db::mysql

Implements: blueprint commmon-openstack-database-resource
Change-Id: Iaa4f1cfb6a26795112117e2d3230b4a11250e2df

10 years agoFix ceilometer agent notification package error
Xingchao Yu [Thu, 7 Aug 2014 07:05:23 +0000 (15:05 +0800)]
Fix ceilometer agent notification package error

ceilometer-notification package name should be
openstack-ceilometer-notification in RHEL.
See more info in related bug tracker record.

Change-Id: If64f1ea641c5d99c0adf2104a308c2d5442c3324
Closes-Bug: #1353844

10 years agoAdd ability to disable ceilometer-collector without db
Mathieu Gagné [Tue, 5 Aug 2014 15:58:27 +0000 (11:58 -0400)]
Add ability to disable ceilometer-collector without db

You are no longer required to include ceilometer::db when
disabling ceilometer-collector using the enabled parameter.

The relationships with any database resources are now only enforced
when the service is enabled.

Closes-bug: #1352958
Change-Id: I00a5e651184788acdd30de1908e2bf38566f78e1

10 years agoMerge "Use 2.2 as the default mysql_module"
Jenkins [Tue, 29 Jul 2014 23:01:01 +0000 (23:01 +0000)]
Merge "Use 2.2 as the default mysql_module"

10 years agoUse 2.2 as the default mysql_module
Soren Hansen [Wed, 16 Jul 2014 13:13:48 +0000 (18:43 +0530)]
Use 2.2 as the default mysql_module

Change-Id: I91c87fa0b4d5871aa936a5b4842b47f4cfee4ca8

10 years agoRemove deprecation notice for sectionless ceilometer_config
Sebastien Badia [Sat, 12 Jul 2014 00:20:30 +0000 (02:20 +0200)]
Remove deprecation notice for sectionless ceilometer_config

ceilometer_config used to accept section-less configuration name.

Change-Id: I11348ced3bccb1bb88ae493ae1e15017aa360096

10 years agoFixes Facts string comparisons in CentOS 7
Gael Chamoulaud [Wed, 9 Jul 2014 09:52:25 +0000 (11:52 +0200)]
Fixes Facts string comparisons in CentOS 7

- CentOS Project has adopted a new rule for versioning numbers. The major number
  matches the RHEL major number, but the minor number is generated from the
  release date. For example, CentOS 7.0.1407.
- Adds Support for Scientific Linux.

Change-Id: I3220206aa01b9f5c838e524b3fec723c92435153
Closes-Bug: 1338777
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
10 years agoMake Modulefile summary and description consistent
Mathieu Gagné [Wed, 2 Jul 2014 17:51:13 +0000 (13:51 -0400)]
Make Modulefile summary and description consistent

Improve consistency of Modulefile across puppet modules for OpenStack.

Change-Id: Ia6e7918ce783c603720f8da97b54cb40edd25a59

11 years agoNormalize Gemfile & pin tests to rspec < 2.99
Clayton O'Neill [Fri, 20 Jun 2014 11:51:19 +0000 (07:51 -0400)]
Normalize Gemfile & pin tests to rspec < 2.99

Pin to rspec < 2.99 until rspec-puppet officially supports rspec 3.x.
This is to avoid warnings due to deprecated matchers in the
rspec-puppet gem.

This change is also intended to normalize the Gemfile for all stackforge
puppet modules.  This should facilitate pinning gem versions when
releasing new stable branches, since the same diff can be used for all
repos.

Change-Id: Ia1286824cebca09e20bf6d11a3435982b93442b9
Partial-Bug: #1326034

11 years agoHide secrets from puppet logs
Stefano Zilli [Tue, 10 Jun 2014 09:17:39 +0000 (11:17 +0200)]
Hide secrets from puppet logs

Currently secrets like rabbit_password or os_password are displayed in
puppet logs when changed. This commit changes ceilometer_config type
adding a new parameter that triggers obfuscation of the values in
puppet logs.

Change-Id: I9eb6504220c5337c154bf5ad86c7d22bea64df51
Closes-Bug: #1328448

11 years agoMerge "Fixes agent_notification_service_name"
Jenkins [Thu, 5 Jun 2014 15:42:45 +0000 (15:42 +0000)]
Merge "Fixes agent_notification_service_name"

11 years agoFixes agent_notification_service_name
Ivan Chavero [Mon, 26 May 2014 12:54:45 +0000 (06:54 -0600)]
Fixes agent_notification_service_name

This patch corrects the service name of the ceilometer notification
agent, which was 'ceilometer-agent-notification' in pre-release RPMs but
was later changed to 'ceilometer-notification'.

Change-Id: Ie2703a028ce154efa7fa1d0da58914230adfc7db

11 years agoDefault to utf8 for MySQL
Chris Ricker [Fri, 23 May 2014 19:14:48 +0000 (15:14 -0400)]
Default to utf8 for MySQL

Change default charset to utf8 and default collation order to
utf8_unicode_ci to align with upstream defaults.

Change-Id: I0fb57f14a0d30226c840a6e920f2b3807b90080a
Closes-Bug: #1322715

11 years agoFail when ssl parameters are missing and rabbit_use_ssl is set to true
Yanis Guenane [Fri, 16 May 2014 15:48:51 +0000 (11:48 -0400)]
Fail when ssl parameters are missing and rabbit_use_ssl is set to true

This commit causes the run to fail is rabbit_use_ssl parameter is set
to true but the ssl related parameters remains undef.

Change-Id: Idd40601fe4a632204fdde120b857d0e22b6a2aed

11 years agoImplement rspec function it_raises
Yanis Guenane [Thu, 15 May 2014 18:40:46 +0000 (14:40 -0400)]
Implement rspec function it_raises

On some puppet modules, a it_raises helper is provided. This commit
implements it for puppet-ceilometer.

Change-Id: Ie1c83e09952fed1f114fc07d9944f89e94c413f1

11 years agonotification agent: fix dependency cycle
Emilien Macchi [Wed, 7 May 2014 20:50:52 +0000 (22:50 +0200)]
notification agent: fix dependency cycle

Fix the loop on ceilometer-agent-notification package.

Change-Id: I8e8663fd51f58d419896aa531d49f8e5fc57cdcd

11 years agoMerge "Add RabbitMQ SSL support" 4.0.0
Jenkins [Tue, 6 May 2014 12:59:27 +0000 (12:59 +0000)]
Merge "Add RabbitMQ SSL support"

11 years agoensure_packages needs array in agent::notification
Benedikt Trefzer [Tue, 6 May 2014 11:36:10 +0000 (13:36 +0200)]
ensure_packages needs array in agent::notification

Change-Id: I7029a2e60228bc5014c9008d794493452c822826

11 years agoAdd RabbitMQ SSL support
John Eckersberg [Mon, 5 May 2014 20:20:49 +0000 (16:20 -0400)]
Add RabbitMQ SSL support

Change-Id: I6efe4819fb703ea815de259cb91b2ee50f51a0e3

11 years ago4.0.0 - 2014.1.0 - Icehouse Release
Chris Hoge [Thu, 1 May 2014 17:00:42 +0000 (10:00 -0700)]
4.0.0 - 2014.1.0 - Icehouse Release

Updated Modulefile and README.md for 4.0.0 release.

Change-Id: Ic5d5681c29d4e5c49033d466d5b277ff743303fa

11 years agoMerge "Introduce ceilometer:config to manage custom options"
Jenkins [Tue, 29 Apr 2014 13:22:42 +0000 (13:22 +0000)]
Merge "Introduce ceilometer:config to manage custom options"

11 years agoIntroduce ceilometer:config to manage custom options
Xingchao Yu [Thu, 3 Apr 2014 11:24:03 +0000 (19:24 +0800)]
Introduce ceilometer:config to manage custom options

This ceilometer::config is aim to use ceilometer_config resource
to manage custom configurations in ceilometer.conf.

This will make end user easy to add their own custom options
in Hiera data.

Fully implements blueprint ceilometer-custom-config

Change-Id: I82b38ca26d4d99471a74b2c116e4c4133262187c

11 years agoAdd table to mysql_grant call
Mark T. Voelker [Thu, 17 Apr 2014 07:16:00 +0000 (03:16 -0400)]
Add table to mysql_grant call

When using puppetlabs-mysql 2.2 with the ceilometer module, an
error occurs due to a call to mysql_grant not specifying a table.
This patch corrects the error by rectifying the mysql_grant call.

Change-Id: I0619446907c5fb51dcdb6e5717faeb61442c699b
Closes-Bug: #1308884