class nodo::mail {
- # Class inclusion
- $root_mail_recipient = hiera('nodo::root_mail_recipient', 'nobody')
- include nodo::vserver
- include mail::system
+ class { [ 'nodo::vserver', 'mail::system' ]: }
}
define monkeysphere_host(
$port = hiera('nodo::monkeysphere_host::ssh_port', ''),
- $mail_recipient = hiera('nodo::root_mail_recipient', 'nobody')
+ $mail_recipient = hiera('mail::root_mail_recipient', 'nobody')
) {
include monkeysphere
# collect all resources from hosted tunnels
Tunnel_server_realize <<| tag == "${::fqdn}" |>>
- define setup($ensure = present, $user = $hostname, $host, $localport, $hostport, $sshport = '22', $keytype = 'rsa', $root_mail_recipient = hiera('nodo::root_mail_recipient', 'nobody')) {
+ define setup($ensure = present, $user = $hostname, $host, $localport, $hostport, $sshport = '22', $keytype = 'rsa', $root_mail_recipient = hiera('mail::root_mail_recipient', 'nobody')) {
$dir = "/var/backups/remote/${user}.${::domain}"
$tag = "backupninja-${::fqdn}"
$ssh_dir = "${dir}/.ssh"