]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Moving dovecot.conf to a template
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Aug 2010 21:17:13 +0000 (18:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Aug 2010 21:17:13 +0000 (18:17 -0300)
manifests/dovecot.pp
templates/dovecot/dovecot.conf.erb [moved from files/dovecot/dovecot.conf with 99% similarity]

index 0ced8e15e85f5148d85b97899d1b42b5d9179261..20364fe83f965f8b37ed23fe7edb2a50725b939a 100644 (file)
@@ -6,12 +6,12 @@ class mail::dovecot {
   }
 
   file { "/etc/dovecot/dovecot.conf":
-    ensure => present,
-    owner  => root,
-    group  => vmail,
-    mode   => 0644,
-    source => "puppet://$server/modules/mail/dovecot/dovecot.conf",
-    notify => Service['dovecot'],
+    ensure  => present,
+    owner   => root,
+    group   => vmail,
+    mode    => 0644,
+    content => template('mail/dovecot/dovecot.conf.erb'),
+    notify  => Service['dovecot'],
   }
 
   file { "/etc/dovecot/dovecot-sql.conf":
similarity index 99%
rename from files/dovecot/dovecot.conf
rename to templates/dovecot/dovecot.conf.erb
index 19750bfabd2f470c887ee318626536ec228b55e9..0da5182a0713733e00da29ff08d198e98a84d0b6 100644 (file)
@@ -709,7 +709,7 @@ protocol managesieve {
 
 protocol lda {
   # Address to use when sending rejection mails.
-  # postmaster_address = postmaster@example.com
+  postmaster_address = postmaster@<%= fqdn %>
 
   # Hostname to use in various parts of sent mails, eg. in Message-Id.
   # Default is the system's real hostname.