puppet-swift/manifests/wsgi/uwsgi_proxy.pp
Takashi Kajinami 109cd356de Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I4c0a9357fcc4184df852024e1f6f36c0ed2e1440
2023-03-02 14:47:43 +09:00

36 lines
803 B
Puppet

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