This file is indexed.

/usr/share/puppet/modules.available/glance/manifests/backend/file.pp is in puppet-module-glance 9.4.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# === class: glance::backend::file
#
# used to configure file backends for glance
#
# === parameters:
#
#  [*filesystem_store_datadir*]
#    Location where dist images are stored when
#    default_store == file.
#    Optional. Default: /var/lib/glance/images/
#
# [*multi_store*]
#   (optional) Boolean describing if multiple backends will be configured
#   Defaults to false
#
# [*glare_enabled*]
#   (optional) Whether enabled Glance Glare API.
#   Defaults to false
#
class glance::backend::file(
  $filesystem_store_datadir = '/var/lib/glance/images/',
  $multi_store              = false,
  $glare_enabled            = false,
) {

  include ::glance::deps

  glance_api_config {
    'glance_store/filesystem_store_datadir': value => $filesystem_store_datadir;
  }

  if $glare_enabled {
    glance_glare_config {
      'glance_store/filesystem_store_datadir': value => $filesystem_store_datadir;
    }
  }

  if !$multi_store {
    glance_api_config { 'glance_store/default_store': value => 'file'; }
    if $glare_enabled {
      glance_glare_config {
        'glance_store/default_store': value => 'file';
      }
    }
  }

  glance_cache_config {
    'glance_store/filesystem_store_datadir': value => $filesystem_store_datadir;
  }
}