Commit Graph

21 Commits

Author SHA1 Message Date
Takashi Kajinami 6aad879c33 Drop compatibility with very old puppetlabs-inifile
The logic is no longer needed since puppetlabs-inifile 0.10.0[1] and
the current minimum version is 2.0.0.

[1] 2f22483c87

Change-Id: I16bf212137e4b88ca25d026faada88f870c32aea
2024-01-19 10:39:28 +09:00
Takashi Kajinami ddeb43dacc Add support for rootwrap.conf
Change-Id: I2a6f5c4c6a185c1bf71c4136dee425afdfc0ce56
2022-01-03 09:28:20 +09:00
Takashi Kajinami 390cfd1f33 Remove api_paste_ini resource
... because it is useless since ceilometer-api was removed.

Change-Id: Ida2a8a9bb2b23105db83b6553bfa8b5c783ffc58
2020-10-12 10:30:49 +00:00
Zuul 669d16f1f4 Merge "Deprecate parameter and resource for api-paste.ini" 2020-05-04 14:11:12 +00:00
Takashi Kajinami f8fd464e13 Deprecate parameter and resource for api-paste.ini
... api-paste.ini is no longer used since ceilometer-api was removed.

Change-Id: Ifd191986b5854c331c3933b77e1b8c150fb94886
2020-05-04 13:40:24 +09:00
Takashi Kajinami f1e98f1585 Use anchor to require necessary packages
... so that correct packages are required without re-defining them in
resource implementations.

Change-Id: Icaae881f5d074ad388eaddd26eb82261ea78937d
2020-05-04 01:43:51 +09:00
Jake Yip 6170a18bf5 Fix filename of api_paste.ini
The default filename is api_paste.ini, not api-paste.ini. Since we do
not have an option to set the file name using
[DEFAULT]/api_paste_config, we should fix the default to make sure it
works.

Change-Id: I054af2663a376b5ec2a0606437ff3fb90c00934a
2017-06-16 10:39:56 +10:00
Fabian Zimmermann 585d236e26 Don't print sensitive information to stdout during run.
Closes-Bug: #1596840

Change-Id: I864d25f60fdf03f1683f6bcda6e1886baa01eb6c
2016-06-28 13:09:27 +02:00
Matthew J Black fd4485d64e Added support for messaging urls
Ceilometer supports multiple notifications. The config
entry in ceilometer.conf allows for a multi-value for
notification/messaging_urls.

Change-Id: Ic1791c7021bf2dbb06269317b8495eebc8d6e7ed
Closes-Bug: 1564061
2016-05-17 14:17:08 -04:00
ZhongShengping 2e0affcd93 Add api_paste type/provider for Ceilometer
Add ceilometer_api_paste_ini type/provider for Ceilometer.
Also add the capability to configure api-paste.ini with config.pp.
Closes-bug: #1483371

Change-Id: I7a5ce9629b9069495e233a4576742aeb171a09c1
2016-03-08 22:25:49 +08:00
Emilien Macchi 44fb7ff3b3 compute agent: do not try to configure nova.conf
Back in history, we tried to configure something in nova.conf which is
now managed by puppet-nova. It causes the module conflicting with
puppet-nova and makes Puppet runs not idempotent and nova.conf with
wrong parameters.

nova_notifier plugin was removed in Kilo (ceilometer commit eed463659f2e6f7018b5db1fcae9931ae1d60a00).

Change-Id: I2b8d55613f0a962662d67b9fd82db17b758af80f
2015-09-24 18:38:15 +00:00
Yanis Guenane 05c5ec1605 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in ceilometer_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

ceilometer_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

ceilometer_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  ceilometer_config { 'DEFAULT/foo' : value => $myvar }
} else {
  ceilometer_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

ceilometer_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

ceilometer_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: Ia46f8ea1228caca85d6fe431922fa8229f4c4ade
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:37:41 +02:00
Yanis Guenane e729f2d911 Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: Ie99aec47f9bf334336e9cd87106c9f47d6e5abfa
2015-08-12 18:45:28 +02:00
Sebastien Badia ca726ae16d Remove deprecation notice for sectionless ceilometer_config
ceilometer_config used to accept section-less configuration name.

Change-Id: I11348ced3bccb1bb88ae493ae1e15017aa360096
2014-07-12 02:20:30 +02:00
Stefano Zilli b10f1af5b0 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
2014-06-10 15:24:30 +02:00
Stefano Zilli 44d9f8f991 Changes file_path to self.file_path
Changes file_path to self.file_path in ceilometer_config provider
in order to allow purging as specified in ini_file puppet module
readme.

Change-Id: I41f7c83e3a63b9af9e683933aa09bd45d5b18deb
Closes-Bug: 1280329
2014-02-14 16:28:21 +01:00
Dan Prince a3b324dba2 Inline a custom file_line provider to fix agent.
Fixes an issue in the ceilometer::agent::compute manifest
where nova.conf config values for the notification_driver
would get added to the wrong section (always to the end of
the file).

As part of the fix a custom file_line 'after' provider which
supports a new after option has been added.
This allows us to have some control over which section *new*
file lines go into. If there are any pre-existing matching
lines in the file the assumption is that they are already in
the correct section and can be edited in place.

NOTE: I've submitted a pull request to the upstream stdlib repo here
to add the new 'after' option:

  https://github.com/puppetlabs/puppetlabs-stdlib/pull/174

Once this (or something better) lands in stdlib we can update
puppet-ceilometer to use it.

Fixes LP Bug #1217867

Change-Id: Ic09f5232b322cde687d663d1ef38ef0fd12f32ff
2013-09-03 13:17:29 -04:00
Mathieu Gagné 82bb4e901b Capitalize boolean values in config files
This patch allows the usage of Puppet boolean values and still
configure values with OpenStack boolean style: True/False.

Change-Id: I413060bc2ec0a8d795a240cc144e503efae41e49
2013-05-21 19:49:24 -04:00
emilienm 3bb4b46fd7 Add ceilometer_setting for type/provider 2012-12-07 14:36:18 +01:00
emilienm 699aab14df Add ceilometer_setting for type/provider 2012-12-07 14:33:17 +01:00
emilienm 49110c1fd1 Add ceilometer_setting for type/provider 2012-12-07 14:29:40 +01:00