diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index a79a524..c877805 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -30,6 +30,8 @@ class exim( $hide_mailname = '', $mailname_in_oh = 'true', $localdelivery = 'mail_spool', + $root_mail_recipient = 'root', + $aliases = 'template', ) { package { "exim4": ensure => present, @@ -41,11 +43,18 @@ class exim( } file { "/etc/aliases": - source => [ "puppet:///modules/site_mail/${::domain}/aliases", - "puppet:///modules/site_mail/${::hostname}/aliases", - "puppet:///modules/site_mail/aliases", - "puppet:///modules/mail/aliases", - "puppet:///modules/exim/aliases" ], + source => $aliases ? { + 'source' => [ "puppet:///modules/site_mail/${::domain}/aliases", + "puppet:///modules/site_mail/${::hostname}/aliases", + "puppet:///modules/site_mail/aliases", + "puppet:///modules/mail/aliases", + "puppet:///modules/exim/aliases" ], + default => undef, + }, + content => $aliases ? { + 'template' => template('exim/aliases.erb'), + default => undef, + }, owner => "root", group => "root", mode => 0644, |