puppet-heat/manifests/wsgi/uwsgi_api_cfn.pp

42 lines
945 B
Puppet

#
# Copyright 2021 Thomas Goirand <zigo@debian.org>
#
# Author: Thomas Goirand <zigo@debian.org>
#
# == Class: heat::wsgi::uwsgi_api_cfn
#
# Configure the UWSGI service for Heat API CFN.
#
# == Parameters
#
# [*processes*]
# (Optional) Number of processes.
# Defaults to $facts['os_workers'].
#
# [*threads*]
# (Optional) Number of threads.
# Defaults to 32.
#
# [*listen_queue_size*]
# (Optional) Socket listen queue size.
# Defaults to 100
#
class heat::wsgi::uwsgi_api_cfn (
$processes = $facts['os_workers'],
$threads = 32,
$listen_queue_size = 100,
){
include heat::deps
if $facts['os']['name'] != 'Debian'{
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
}
heat_api_cfn_uwsgi_config {
'uwsgi/processes': value => $processes;
'uwsgi/threads': value => $threads;
'uwsgi/listen': value => $listen_queue_size;
}
}