]> WPIA git - infra.git/blobdiff - environments/production/manifests/site.pp
add: exim config to send mails into the internet
[infra.git] / environments / production / manifests / site.pp
index ad68ec3aca3dcb9801d7b06b6bd8c5b2559a5ab9..4cd8d32793d26e3dd88a4014e47cfbb84c41db94 100644 (file)
@@ -119,5 +119,17 @@ node exim{
 
   package{ 'exim4-daemon-light':
     ensure => 'installed'
+  } ->
+  file{ '/etc/exim4/update-exim4.conf.conf':
+    ensure => 'file',
+    content => epp('exim/update-exim4.conf.conf'),
+    notify => Exec['/usr/sbin/update-exim4.conf']
+  }
+  exec{ '/usr/sbin/update-exim4.conf':
+    refreshonly => 'true',
+    notify => Service['exim4']
+  }
+  service{ 'exim4':
+    ensure => 'running'
   }
 }