Puppet Class: zabbixagent::install
- Defined in:
- manifests/install.pp
Overview
Installs the zabbix agent
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/install.pp', line 2
class zabbixagent::install (
$ensure_setting = $::zabbixagent::ensure_setting,
$custom_require_linux = $::zabbixagent::custom_require_linux,
$custom_require_windows = $::zabbixagent::custom_require_windows) {
case $::kernel {
Linux : {
package { 'zabbix-agent':
ensure => $ensure_setting,
notify => Service['zabbix-agent'],
require => $custom_require_linux,
}
} # end Linux
Windows : {
package { 'zabbix-agent':
ensure => $ensure_setting,
provider => 'chocolatey',
notify => Service['zabbix-agent'],
require => $custom_require_windows,
}
} # end Windows
default : {
fail($::zabbixagent::params::fail_message)
}
}
}
|