
Fix new lint errors detected when full of the voxpupili lint plugins are enabled. Change-Id: Ia996ad7dfba8e667e1d9cdcbdcf5c74f81972c48 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
41 lines
923 B
Puppet
41 lines
923 B
Puppet
#
|
|
# Copyright 2023 Thomas Goirand <zigo@debian.org>
|
|
#
|
|
# Author: Thomas Goirand <zigo@debian.org>
|
|
#
|
|
# == Class: ironic::wsgi::uwsgi
|
|
#
|
|
# Configure the UWSGI service for Ironic API.
|
|
#
|
|
# == 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 ironic::wsgi::uwsgi (
|
|
$processes = $facts['os_workers'],
|
|
$threads = 32,
|
|
$listen_queue_size = 100,
|
|
) {
|
|
include ironic::deps
|
|
|
|
if $facts['os']['name'] != 'Debian' {
|
|
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
|
|
}
|
|
|
|
ironic_api_uwsgi_config {
|
|
'uwsgi/processes': value => $processes;
|
|
'uwsgi/threads': value => $threads;
|
|
'uwsgi/listen': value => $listen_queue_size;
|
|
}
|
|
}
|