summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-08-22 16:46:36 -0400
committerMicah Anderson <micah@riseup.net>2011-08-22 16:46:36 -0400
commitf9f6fc3be8b2e3e840dbf85d497160f14ba82ce8 (patch)
tree47fb06bf0d41a9b2e500f34a9e65af33352f677e
parentd25093378160536208d523ee132f8f80326ed0f3 (diff)
add preliminary support for debian
-rw-r--r--manifests/base.pp4
-rw-r--r--manifests/debian.pp6
-rw-r--r--manifests/init.pp1
3 files changed, 10 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index 85024ce..b94ed5e 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -1,5 +1,7 @@
class dovecot::base {
- package{'dovecot':
+
+ package { 'dovecot':
+ alias => 'dovecot',
ensure => installed,
}
diff --git a/manifests/debian.pp b/manifests/debian.pp
new file mode 100644
index 0000000..8946208
--- /dev/null
+++ b/manifests/debian.pp
@@ -0,0 +1,6 @@
+class dovecot::debian inherits dovecot::base {
+
+ Package['dovecot'] { name => [ 'dovecot-imapd', 'dovecot-pop3d' ] }
+
+}
+
diff --git a/manifests/init.pp b/manifests/init.pp
index a6f5fcc..b7d84e6 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -13,6 +13,7 @@ class dovecot(
){
case $operatingsystem {
centos: { include dovecot::centos }
+ debian: { include dovecot::debian }
default: { include dovecot::base }
}