if !defined('monitor') {
class { 'monitor':
type => 'host',
- use_nagios => hiera('host_use_nagios', True),
+ use_nagios => hiera('nodo::host::use_nagios', True),
}
}
$ntp_servers = [ 'a.ntp.br', 'b.ntp.br', 'c.ntp.br' ]
# Email delivery configuration
- case hiera('mail_delivery', 'exim') {
+ case hiera('nodo::mail_delivery', 'exim') {
'tunnel': {
- $mail_hostname = hiera('mail_hostname')
+ $mail_hostname = hiera('nodo::mail_hostname')
tunnel::mail { "$mail_hostname":
- sshport => hiera('mail_ssh_port'),
+ sshport => hiera('nodo::mail_ssh_port'),
}
}
'postfix': { }
}
class { 'apt':
- include_src => hiera('apt_include_src', false),
- use_next_release => hiera('apt_use_next_release', false),
+ include_src => hiera('nodo::apt_include_src', false),
+ use_next_release => hiera('nodo::apt_use_next_release', false),
}
include apt::unattended_upgrades
# Monitoring
class { 'monitor':
type => 'personal',
- use_nagios => hiera('personal_use_nagios', false),
+ use_nagios => hiera('nodo::personal::use_nagios', false),
}
# Misc user data
class monitor(
$type = 'vserver',
- $use_nagios = true,
- $use_fqdn = hiera('use_nagios_fqdn', false)
+ $use_nagios = hiera('nodo::monitor::use_nagios, True),
+ $use_fqdn = hiera('nodo::monitor::use_nagios_fqdn', false)
) {
if $use_nagios != false {
# Nagios configuration
class { 'monitor':
type => 'vserver',
- use_nagios => hiera('vserver_use_nagios', false),
+ use_nagios => hiera('nodo::vserver::use_nagios', false),
}
}
}