Skip to content

Commit d81d6bc

Browse files
authored
Add package_manage parameter to haproxy class
Added a parameter to manage HAProxy package installation.
1 parent 3363abd commit d81d6bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

manifests/init.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
# from all balancer members.
1010
#
1111
#
12+
# @param package_manage
13+
# Decide whether the module should manage the installation of
14+
# haproxy package. Defaults to true
15+
#
1216
# @param package_ensure
1317
# Ensure the package is present (installed), absent or a specific version.
1418
# Defaults to 'present'
@@ -121,6 +125,7 @@
121125
#
122126
class haproxy (
123127
Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]] $package_ensure = 'present',
128+
Boolean $package_manage = true,
124129
Optional[String] $package_name = $haproxy::params::package_name,
125130
Variant[Enum['running', 'stopped'], Boolean] $service_ensure = 'running',
126131
Boolean $service_manage = true,
@@ -171,6 +176,7 @@
171176
}
172177

173178
haproxy::instance { $title:
179+
package_manage => $package_manage,
174180
package_ensure => $_package_ensure,
175181
package_name => $package_name,
176182
service_ensure => $_service_ensure,

0 commit comments

Comments
 (0)