Debian Codegraph @

manifests/install.pp

raw
1 # @summary
2 # Install haproxy
3 # @api private
4 define haproxy::install (
5 # lint:ignore:140chars
6 Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]] $package_ensure,
7 Optional[String] $package_name = undef, # A default is required for Puppet 2.7 compatibility. When 2.7 is no longer supported, this parameter default should be removed.
8 # lint:endignore
9 ) {
10 if $caller_module_name != $module_name {
11 fail("Use of private class ${name} by ${caller_module_name}")
12 }
13
14 if $package_name != undef {
15 package { $package_name:
16 ensure => $package_ensure,
17 alias => 'haproxy',
18 }
19 }
20 }