blob: 318a589067ed31e2341178f9714a005e7c34b79b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
class uwsgi::emperor (
String $path = '/etc/uwsgi/vassals',
# TODO this should always be set, so other modules can use $uwsgi::emperor::address
Optional[String] $listen = undef,
) {
# TODO user, and group
# arch package created group uwsgi (with hardcoded gid 53)
#
# TODO master?
include ::uwsgi::package
file { $path:
ensure => directory,
}
file { '/etc/uwsgi/emperor.ini':
content => epp("${module_name}/emperor.ini.epp"),
}
if $listen != undef {
systemd::dropin_file { 'emperor.uwsgi.socket':
content => @("EOF")
ListenStream=
ListenStream=${listen}
| EOF
}
}
service { 'emperor.uwsgi.socket':
ensure => running,
enable => true,
}
}
|