File: glance_multi_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 (25 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Example: Declaring multiple backend stores
#
# To declare multiple glance::backend::* classes, each declaration must include
# the parameter multi_store set to true. This prevents each individual backend from
# setting itself as the default store as soon as it is declared. Rather, the
# default store can be chosen by the user when declaring glance::api (if no
# default_store is set at that point, then the first store in the list 'stores'
# provided will be made the default).

class { '::glance::backend::file':
  multi_store => true,
}

class { '::glance::backend::swift':
  swift_store_user => 'demo',
  swift_store_key  => 'secrete',
  multi_store      => true,
}

class { '::glance::api':
  keystone_password => 'a_big_secret',
  stores            => ['file', 'swift'],
  default_store     => 'swift',
  multi_store       => true,
}