aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/mail.pp13
-rw-r--r--manifests/nodo.pp6
2 files changed, 17 insertions, 2 deletions
diff --git a/manifests/mail.pp b/manifests/mail.pp
index 2f4b0ed..be544c0 100644
--- a/manifests/mail.pp
+++ b/manifests/mail.pp
@@ -1,8 +1,19 @@
-class nodo::mail inherits nodo::vserver {
+class nodo::mail {
# Class for mail nodes
+ $mail_host = true
$postfix_relayhost = "$domain"
$postfix_smtp_listen = "$ip"
$postfix_mydestination = "\$myorigin"
+ include nodo::vserver
include postfix::mta
+ include database
+
+ package { 'postfix-mysql':
+ ensure => installed,
+ }
+
+ package { [ 'squirrelmail', 'squirrelmail-secure-login', ' squirrelmail-locales' ]:
+ ensure => installed,
+ }
}
diff --git a/manifests/nodo.pp b/manifests/nodo.pp
index b0f2c82..8b2b5e5 100644
--- a/manifests/nodo.pp
+++ b/manifests/nodo.pp
@@ -2,7 +2,6 @@ class nodo {
include lsb
include puppetd
include backup
- include exim
include sudo
include users::admin
include motd
@@ -29,6 +28,11 @@ class nodo {
$monkeysphere_publish_key = false
include monkeysphere
+ # Email delivery configuration
+ if $mail_host != true {
+ include exim
+ }
+
# Apt configuration
$backports_enabled = true
$apt_update_method = 'cron'