Defined Type: glance::backend::multistore::file

Defined in:
manifests/backend/multistore/file.pp

Overview

Copyright 2019 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Define: glance::backend::multistore::file

Used to configure file backends for glance

Parameters:

filesystem_store_datadir

Location where dist images are stored when the backend type is file. Defaults to $::os_service_default.

filesystem_thin_provisioning

(optional) Boolean describing if thin provisioning is enabled or not Defaults to $::os_service_default

store_description

(optional) Provides constructive information about the store backend to end users. Defaults to $::os_service_default.

Parameters:

  • filesystem_store_datadir (Any) (defaults to: $::os_service_default)
  • filesystem_thin_provisioning (Any) (defaults to: $::os_service_default)
  • store_description (Any) (defaults to: $::os_service_default)


35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'manifests/backend/multistore/file.pp', line 35

define glance::backend::multistore::file(
  $filesystem_store_datadir     = $::os_service_default,
  $filesystem_thin_provisioning = $::os_service_default,
  $store_description            = $::os_service_default,
) {

  include glance::deps

  glance_api_config {
    "${name}/filesystem_store_datadir":     value => $filesystem_store_datadir;
    "${name}/filesystem_thin_provisioning": value => $filesystem_thin_provisioning;
    "${name}/store_description":            value => $store_description;
  }

  glance_cache_config {
    "${name}/filesystem_store_datadir": value => $filesystem_store_datadir;
  }
}