puppet-gnocchi/lib/puppet
Yanis Guenane eb5fe69efb Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in gnocchi_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 :

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

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

That means that all the current :

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

can be removed in favor of :

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

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

Change-Id: Ie8dce6e9d4c1027bd1f7d8653a4fa6fe28b696d9
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 11:00:21 +02:00
..
provider Reflect provider change in puppet-openstacklib 2015-08-19 11:00:21 +02:00
type Reflect provider change in puppet-openstacklib 2015-08-19 11:00:21 +02:00