File: glance_single_store.pp

package info (click to toggle)
puppet-module-glance 9.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,008 kB
  • ctags: 73
  • sloc: ruby: 5,522; python: 35; sh: 19; makefile: 17
file content (18 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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'],
}