From c0a3a300a85093282718c4f684132e76d244fb1a Mon Sep 17 00:00:00 2001 From: Lari Huttunen Date: Mon, 4 Mar 2013 19:33:36 +0100 Subject: [PATCH] hastymail.init.pp: Ensure that the necessary packages are installed, which are needed by hasty mail. --- hastymail/manifests/init.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hastymail/manifests/init.pp b/hastymail/manifests/init.pp index c567dfe..1426fb5 100644 --- a/hastymail/manifests/init.pp +++ b/hastymail/manifests/init.pp @@ -1,6 +1,21 @@ class hastymail { + case $::operatingsystem { + "ubuntu","debian": { + package { ["php5", "php5-cli", "php5-common", + "php5-imap", "php5-ldap", "php5-mcrypt"]: + ensure => installed, + } + } + "centos","redhat","fedora": { + + } + default: { + fail("cyrus not supported on ${::operatingsystem}") + } + } + if !$hastymail_package { if $hastymail_package_latest { $hastymail_package = $hastymail_package_latest