|
19 | 19 | # The package name of haproxy. Defaults to undef, and no package is installed. |
20 | 20 | # NOTE: Class['haproxy'] has a different default. |
21 | 21 | # |
| 22 | +# @param install_options |
| 23 | +# Array of arguments passed to the installer |
| 24 | +# |
22 | 25 | # @param service_ensure |
23 | 26 | # Chooses whether the haproxy service should be running & enabled at boot, or |
24 | 27 | # stopped and disabled at boot. Defaults to 'running' |
|
161 | 164 | define haproxy::instance ( |
162 | 165 | Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]] $package_ensure = 'present', |
163 | 166 | Optional[String] $package_name = undef, |
| 167 | + Array[String[1]] $install_options = [], |
164 | 168 | Variant[Enum['running', 'stopped'], Boolean] $service_ensure = 'running', |
165 | 169 | Boolean $service_manage = true, |
166 | 170 | Boolean $chroot_dir_manage = true, |
|
223 | 227 | config_validate_cmd => $config_validate_cmd, |
224 | 228 | } |
225 | 229 | haproxy::install { $title: |
226 | | - package_name => $package_name, |
227 | | - package_ensure => $package_ensure, |
| 230 | + package_name => $package_name, |
| 231 | + package_ensure => $package_ensure, |
| 232 | + install_options => $install_options, |
228 | 233 | } |
229 | 234 | haproxy::service { $title: |
230 | 235 | instance_name => $instance_service_name, |
|
0 commit comments