# == 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;
  }
}
