puppet-glance/spec
Yanis Guenane 8db8143c89 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in glance_api_config has been centralized in
openstack_config.

The same changes apply for glance_registry_config and
glance_cache_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 :

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

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

That means that all the current :

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

can be removed in favor of :

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

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

Change-Id: I3bbdf63d1b9b5a2daba30fd4ba897db703f979ae
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 12:42:38 +02:00
..
acceptance Reflect provider change in puppet-openstacklib 2015-08-19 12:42:38 +02:00
classes solve duplicate declaration issue for python-openstackclient 2015-08-13 19:03:37 +02:00
unit Reflect provider change in puppet-openstacklib 2015-08-19 12:42:38 +02:00
shared_examples.rb spec: updates for rspec-puppet 2.x and rspec 3.x 2015-02-25 05:37:44 +01:00
spec.opts (#11692) Add unit tests 2012-01-03 11:27:43 -08:00
spec_helper.rb Use OpenstackClient for glance_image auth 2015-06-29 17:35:23 -07:00
spec_helper_acceptance.rb Fix git clone for locally running tests 2015-07-08 11:56:25 -07:00