diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-25 14:04:31 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-25 14:04:31 -0200 |
commit | 1185aa8141a444d9e3c1b6aa9a38ea21a2ce3ea0 (patch) | |
tree | a8ff2511eb5a612c20c2d2d214a001afe7f99045 /manifests | |
parent | 8395818ae9779f695b306f2c20e1a0daf274d34b (diff) | |
download | puppet-nodo-1185aa8141a444d9e3c1b6aa9a38ea21a2ce3ea0.tar.gz puppet-nodo-1185aa8141a444d9e3c1b6aa9a38ea21a2ce3ea0.tar.bz2 |
Switching postfix module to parametrized classes
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/mail.pp | 5 | ||||
-rw-r--r-- | manifests/subsystems/monkeysphere.pp | 2 | ||||
-rw-r--r-- | manifests/subsystems/tunnel.pp | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/manifests/mail.pp b/manifests/mail.pp index dd9f670..9a124c9 100644 --- a/manifests/mail.pp +++ b/manifests/mail.pp @@ -1,6 +1,3 @@ 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' ]: } } diff --git a/manifests/subsystems/monkeysphere.pp b/manifests/subsystems/monkeysphere.pp index 76530ca..b4b21e0 100644 --- a/manifests/subsystems/monkeysphere.pp +++ b/manifests/subsystems/monkeysphere.pp @@ -1,6 +1,6 @@ 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 diff --git a/manifests/subsystems/tunnel.pp b/manifests/subsystems/tunnel.pp index e7e0fe4..47384df 100644 --- a/manifests/subsystems/tunnel.pp +++ b/manifests/subsystems/tunnel.pp @@ -21,7 +21,7 @@ class tunnel { # 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" |