puppet-swift/spec
Yanis Guenane e6e8c9d836 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in swift_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 :

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

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

That means that all the current :

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

can be removed in favor of :

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

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

Change-Id: I9281d2cae81f9799327f7f6e04498d6bc723f233
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 12:00:34 +02:00
..
acceptance Reflect provider change in puppet-openstacklib 2015-08-19 12:00:34 +02:00
classes Rely on autorequire for config resource ordering 2015-08-13 09:54:06 +02:00
defines Add tag to package and service resources 2015-07-22 23:32:14 +02:00
unit Reflect provider change in puppet-openstacklib 2015-08-19 12:00:34 +02:00
shared_examples.rb spec: updates for rspec-puppet 2.x and rspec 3.x 2015-03-24 15:22:16 +01:00
spec.opts Initial commit. 2012-01-19 18:58:37 -08:00
spec_helper.rb Enlarging the scope of ssh module 2014-12-03 11:11:18 +01:00
spec_helper_acceptance.rb Fix git clone for locally running tests 2015-07-08 11:56:50 -07:00