9 Commits

Author SHA1 Message Date
Emilien Macchi
1ef657da0e expirer: remove the crontab if enable_cron is False
Allow to let Puppet removing the crontab when
ceilometer::expirer::enable_cron is set to False.
It's useful when you want to upgrade from Ocata to Pike and you want the
crontab to be removed, since ceilometer-expirer is deprecated in Pike.

Change-Id: I1eb243be7bbc38ab5977bcf6a649e98eb6ff77f7
2017-05-18 16:16:40 -04:00
ZhongShengping
fc4a0fd510 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: I0d18ec6ffe6b54c85773a6dabb0ed7b6f59a12f4
2016-11-29 17:32:37 +08:00
Dmitry Ilyin
79aef841af Fix syntax error
'True' becomes a string in puppet3
and is a syntax error in puppet4.

Change-Id: I9b0be57f0889f22ccc5baf214eca3affc71ecb9e
2016-05-23 20:33:47 +03:00
Emilien Macchi
782eeda90b Drop time_to_live parameter
time_to_live was deprecated in liberty, let's drop it so we don't have
the warning anymore.

Change-Id: If36dc4ec2435aa8229b4efa6123fff9bdf668b37
2015-12-23 23:38:23 +01:00
iberezovskiy
2d669a5d6e Make 'alarm_history_time_to_live' parameter configurable
alarm_history_time_to_live is new ceilometer parameter:
http://specs.openstack.org/openstack/ceilometer-specs/specs/liberty/delete-alarmhistory.html

Make time_to_live parameter deprecated in favor of metering_time_to_live

Change-Id: Ifd16853779101202c4d6ea5a7237aeceeb0ade7c
2015-09-16 15:57:55 +03:00
Xav Paice
f612d92bfb 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
2015-06-29 12:49:05 +02:00
Sebastien Badia
565c78cc7f 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
2015-03-11 09:03:59 +01:00
Emilien Macchi
a83673c3ba 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
2014-12-09 13:46:54 -05:00
Emilien Macchi
0af224916f TTL mechanism support with expirer service
Aims to support a TTL mechanism for data entering Ceilometer
collector database.
TTL is very useful to configure when getting a lot of meters.

implement blueprint ttl-support
Change-Id: I9d98e8b833ad94fd79722dee7226e7f4f03aaa2e
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
2013-12-07 12:37:59 +01:00