Puppet Class: glance::backend::reserved::tasks
- Defined in:
- manifests/backend/reserved/tasks.pp
Overview
Copyright 2022 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.
Class: glance::backend::reserved::tasks
Used to configure the os_glance_task_store options
Parameters:
- filesystem_store_datadir
-
(optional) Directory where dist images are stored. Defaults to $facts.
- filesystem_store_chunk_size
-
(optional) Chunk size, in bytes. Defaults to $facts.
DEPRECATED PARAMETERS
- filesystem_store_file_perm
-
(optional) File access permissions for the image files. Defaults to undef.
- filesystem_thin_provisioning
-
(optional) Boolean describing if thin provisioning is enabled or not Defaults to undef.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'manifests/backend/reserved/tasks.pp', line 40
class glance::backend::reserved::tasks(
$filesystem_store_datadir = $facts['os_service_default'],
$filesystem_store_chunk_size = $facts['os_service_default'],
# DEPRECATED PARAMETERS
$filesystem_store_file_perm = undef,
$filesystem_thin_provisioning = undef,
) {
if $filesystem_store_file_perm != undef {
warning("The filesystem_store_file_perm parameter has been deprecated and \
will be removed in a future release")
}
if $filesystem_thin_provisioning != undef {
warning("The filesystem_thin_provisioning parameter has been deprecated and \
will be removed in a future release")
}
glance_api_config {
'os_glance_tasks_store/filesystem_store_datadir':
value => $filesystem_store_datadir;
'os_glance_tasks_store/filesystem_store_file_perm':
value => pick($filesystem_store_file_perm, $facts['os_service_default']);
'os_glance_tasks_store/filesystem_store_chunk_size':
value => $filesystem_store_chunk_size;
'os_glance_tasks_store/filesystem_thin_provisioning':
value => pick($filesystem_thin_provisioning, $facts['os_service_default']);
}
}
|