-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathctlplugin.pp
More file actions
27 lines (24 loc) · 743 Bytes
/
Copy pathctlplugin.pp
File metadata and controls
27 lines (24 loc) · 743 Bytes
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
# Define: supervisord::ctlplugin
#
# This define creates a ctlplugin section in supervisord.conf
#
# Sadly, I have been unable to find any documentation or mention of this stanza type
# in any of supervisord docs or code, but I am using it in production and it works.
#
#
# Documentation on parameters available at:
# http://supervisord.org/configuration.html#program-x-section-settings
#
define supervisord::ctlplugin(
$ctl_factory,
$ensure = present,
) {
include supervisord
# parameter validation
validate_legacy(String, 'validate_string', $ctl_factory)
concat::fragment { "ctlplugin:${name}":
target => $supervisord::config_file,
content => template('supervisord/conf/ctlplugin.erb'),
order => 70,
}
}