Commit Graph

10 Commits

Author SHA1 Message Date
Takashi Kajinami b14a6251fd Retire puppet-monasca - Step 2: Remove Project Content
Depends-on: https://review.opendev.org/805098
Change-Id: I6d9314bef6781599a39038a5a405f84c8db9807a
2021-08-19 16:47:45 +00:00
Yanis Guenane b29b0f1da5 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in monasca_config has been centralized in
openstack_config.

This also applies for agent_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 :

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

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

That means that all the current :

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

can be removed in favor of :

monasca_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 :

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

Change-Id: I7b1ced3f5e2d3e9b685a4ae4122f83bea73bc877
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 12:16:57 +02:00
Ryan Bak e095ef29dc Better generation of nagios check file
Change-Id: I884297e4eec73ccf896704b272587344a629e04d
2015-05-08 08:25:15 -06:00
Ryan Bak 619d734f90 Fixed generate_nagios to not override dimensions
Change-Id: I99a13580827f6587f5b6d0ecd47b94a964d2e0a4
2015-03-26 16:22:39 -06:00
Ryan Bak 69bd5b38ed Fix for conflicting resource names in nagios check
Change-Id: I8c091c100d995227e9312e48a167175a24cd1e38
2015-03-24 15:07:22 -06:00
Ryan Bak 60cbf97a37 Further nagios plugin fix
Change-Id: I2c0ccee9a83ba42df8f250ea3d7dc816103f902d
2015-03-23 13:22:12 -06:00
Ryan Bak 2575e467b0 Group dimensions and arguments for nagios plugin
This allows users to specify arguments for checks that are region
or node type specific, as well as include dimensions for those groupings

Change-Id: Icacfe5663a7607ef0f83dcd489e645a97ca8c988
2015-03-23 12:12:26 -06:00
Ryan Bak 80eebabd43 Fixes for nagios check function
Now handles undefined nagios_instances

Change-Id: I574d455188c287ca1cf67589cdc84c00d57b3882
2015-03-19 11:13:18 -06:00
Ryan Bak dbc7af4cc5 Adds easier defining of checks for nagios plugin
Change-Id: Iae7cd82998e16ab0e5d380e367ad9f98251e025a
2015-03-02 11:00:35 -07:00
Ryan Bak 415e03ab59 Added files to generate api and agent configs
Change-Id: Idda19395ce72863331c1f81118699457f24b1bdb
2014-10-07 10:53:58 -06:00