Puppet Class: nut::client
- Inherits:
- nut::params
- Defined in:
- manifests/client.pp
Overview
Installs the Network UPS Tools (NUT) client.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'manifests/client.pp', line 46
class nut::client (
Optional[Tuple[String, String]] $certident = undef,
Optional[Stdlib::Absolutepath] $certpath = undef,
Optional[Boolean] $certverify = undef,
Optional[Stdlib::Absolutepath] $cmdscript = undef,
Stdlib::Absolutepath $conf_dir = $::nut::params::conf_dir,
Optional[Integer[0]] $deadtime = undef,
Optional[Integer[0]] $finaldelay = undef,
Optional[Boolean] $forcessl = undef,
String $group = $::nut::params::group,
Optional[Integer[0]] $hostsync = undef,
Integer[1] $minsupplies = 1,
Optional[Integer[0]] $nocommwarntime = undef,
Boolean $use_upssched = false,
Optional[Stdlib::Absolutepath] $notifycmd = $use_upssched ? {
true => $::nut::params::upssched, # lint:ignore:parameter_order
default => undef,
},
Optional[Hash[Nut::Event, Tuple[Boolean, 3, 3]]] $notifyflag = undef,
Optional[Hash[Nut::Event, String]] $notifymsg = undef,
String $package_name = $::nut::params::client_package_name,
Optional[Integer[0]] $pollfreq = undef,
Optional[Integer[0]] $pollfreqalert = undef,
Optional[Integer[0]] $rbwarntime = undef,
String $service_name = $::nut::params::client_service_name,
String $shutdowncmd = $::nut::params::shutdown_command,
Stdlib::Absolutepath $state_dir = $::nut::params::state_dir,
String $user = $::nut::params::user,
) inherits nut::params {
contain nut::client::config
class { 'nut::common':
certident => $certident,
certpath => $certpath,
certverify => $certverify,
cmdscript => $cmdscript,
conf_dir => $conf_dir,
deadtime => $deadtime,
finaldelay => $finaldelay,
forcessl => $forcessl,
group => $group,
hostsync => $hostsync,
minsupplies => $minsupplies,
nocommwarntime => $nocommwarntime,
notifycmd => $notifycmd,
notifyflag => $notifyflag,
notifymsg => $notifymsg,
package_name => $package_name,
pollfreq => $pollfreq,
pollfreqalert => $pollfreqalert,
rbwarntime => $rbwarntime,
service_name => $service_name,
shutdowncmd => $shutdowncmd,
state_dir => $state_dir,
use_upssched => $use_upssched,
user => $user,
}
Class['nut::client::config'] ~> Class['nut::common::service']
}
|