File tree 2 files changed +23
-8
lines changed
2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 84
84
}
85
85
86
86
if !empty($programs ) {
87
- create_resources(haproxy::program, $programs )
87
+ $programs .each |String $program , Hash $attributes | {
88
+ Resource[' haproxy::program' ] { $program:
89
+ *=> $attributes ,
90
+ }
91
+ }
88
92
}
89
93
}
90
94
Original file line number Diff line number Diff line change 1
1
# @summary Program definition
2
2
#
3
- # A command to be executed by haproxy master process
4
- #
3
+ # @param command
4
+ # A command to be executed by haproxy master process
5
+ # @param user
6
+ # User account used for executing command
7
+ # @param group
8
+ # Assigned group
9
+ # @param options
10
+ # By default, the process manager stops and recreates child programs at haproxy reload.
11
+ # In order to disable this, set this parameter to `no option start-on-reload`
12
+ # @param instance
13
+ # haproxy instance
14
+ # @param config_file
15
+ # Path to haproxy config
5
16
# @see https://www.haproxy.com/documentation/haproxy-configuration-tutorials/programs/
6
17
# @example
7
18
# haproxy::program { 'hello':
30
41
order => " 40-program-${name} " ,
31
42
target => $_config_file,
32
43
content => epp(' haproxy/haproxy_program.epp' , {
33
- ' name' => $name ,
34
- ' command' => $command ,
35
- ' user' => $user ,
36
- ' group' => $group ,
37
- ' options' => $options ,
44
+ ' name' => $name ,
45
+ ' command' => $command ,
46
+ ' user' => $user ,
47
+ ' group' => $group ,
48
+ ' options' => $options ,
38
49
}),
39
50
}
40
51
}
You can’t perform that action at this time.
0 commit comments