hastymail.init.pp: Ensure that the necessary packages are installed, which are needed by hasty mail.

This commit is contained in:
Lari Huttunen 2013-03-04 19:33:36 +01:00
parent 66fde79617
commit c0a3a300a8

View file

@ -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