File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 8484 }
8585
8686 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+ }
8892 }
8993 }
9094
Original file line number Diff line number Diff line change 11# @summary Program definition
22#
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
512# @see https://www.haproxy.com/documentation/haproxy-configuration-tutorials/programs/
613# @example
714# haproxy::program { 'hello':
3037 order => " 40-program-${name} " ,
3138 target => $_config_file,
3239 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 ,
3845 }),
3946 }
4047}
You can’t perform that action at this time.
0 commit comments