puppet-glance/examples/glance_single_store.pp
Nate Potter ef344c3d40 Add glance multi/single store declaration examples
This patch adds examples to explain the new multiple store backend
declaration feature and how to use it. It covers both the case
where the user wants to declare multiple backends as well as just
one.

Change-Id: Ief8fea9d57422d05d36bf9b6946695249958aad9
Depends-on: I28a79ae36e673a3537ea16910d338666b65c80f7
2016-03-08 17:37:12 +00:00

19 lines
679 B
Puppet

# Example: Declaring a single backend store
#
# To declare only one glance::backend::* class, all you need to do is declare
# it without the multi_store parameter. This way, multi_store will default to false
# and the glance::backend::* class will automatically set itself as the default backend.
# After doing this, you must not declare glance::api with multi_store set to true,
# or it will attempt to override the default set by the backend class and result
# in an error.
class { '::glance::backend::swift':
swift_store_user => 'demo',
swift_store_key => 'secrete',
}
class { '::glance::api':
keystone_password => 'a_big_secret',
stores => ['swift'],
}