685301e737
Currently we support usage of distro packages only, and this custom fact can be simply replaced by the default fact. Change-Id: Ib8f47ce0bbe34970f9324289210fdb74da6f2098
42 lines
921 B
Puppet
42 lines
921 B
Puppet
#
|
|
# Copyright 2021 Thomas Goirand <zigo@debian.org>
|
|
#
|
|
# Author: Thomas Goirand <zigo@debian.org>
|
|
#
|
|
# == Class: barbican::wsgi::uwsgi
|
|
#
|
|
# Configure the UWSGI service for Barbican.
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*processes*]
|
|
# (Optional) Number of processes.
|
|
# Defaults to $::os_workers.
|
|
#
|
|
# [*threads*]
|
|
# (Optional) Number of threads.
|
|
# Defaults to 32.
|
|
#
|
|
# [*listen_queue_size*]
|
|
# (Optional) Socket listen queue size.
|
|
# Defaults to 100
|
|
#
|
|
class barbican::wsgi::uwsgi (
|
|
$processes = $::os_workers,
|
|
$threads = 32,
|
|
$listen_queue_size = 100,
|
|
){
|
|
|
|
include barbican::deps
|
|
|
|
if $::operatingsystem != 'Debian'{
|
|
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
|
|
}
|
|
|
|
barbican_api_uwsgi_config {
|
|
'uwsgi/processes': value => $processes;
|
|
'uwsgi/threads': value => $threads;
|
|
'uwsgi/listen': value => $listen_queue_size;
|
|
}
|
|
}
|