Files
puppet-glance/manifests/wsgi.pp
Takashi Kajinami 43735fb127 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Iebdb33dd18a8f8d18840ff3e5f4608f021a78bfa
2023-03-02 10:54:36 +09:00

29 lines
723 B
Puppet

# == Class: glance::wsgi
#
# Configure wsgi options
#
# === Parameters
#
# [*task_pool_threads*]
# (Optional) The number of thredas (per worker process) in the pool for
# processing asynchronous tasks.
# Defaults to $facts['os_service_default']
#
# [*python_interpreter*]
# (Optional) Path to the python interpreter to use when spawning external
# processes.
# Defaults to $facts['os_service_default']
#
class glance::wsgi (
$task_pool_threads = $facts['os_service_default'],
$python_interpreter = $facts['os_service_default'],
) {
include glance::deps
glance_api_config {
'wsgi/task_pool_threads': value => $task_pool_threads;
'wsgi/python_interpreter': value => $python_interpreter;
}
}