File tree 2 files changed +19
-8
lines changed
2 files changed +19
-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
+ # @param group
7
+ # @param options
8
+ # @param instance
9
+ # haproxy instance
10
+ # @param config_file
11
+ # Path to haproxy config
5
12
# @see https://www.haproxy.com/documentation/haproxy-configuration-tutorials/programs/
6
13
# @example
7
14
# haproxy::program { 'hello':
30
37
order => " 40-program-${name} " ,
31
38
target => $_config_file,
32
39
content => epp(' haproxy/haproxy_program.epp' , {
33
- ' name' => $name ,
34
- ' command' => $command ,
35
- ' user' => $user ,
36
- ' group' => $group ,
37
- ' options' => $options ,
40
+ ' name' => $name ,
41
+ ' command' => $command ,
42
+ ' user' => $user ,
43
+ ' group' => $group ,
44
+ ' options' => $options ,
38
45
}),
39
46
}
40
47
}
You can’t perform that action at this time.
0 commit comments