hastymail.init.pp: Ensure that the necessary packages are installed, which are needed by hasty mail.
This commit is contained in:
parent
66fde79617
commit
c0a3a300a8
1 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,21 @@
|
||||||
|
|
||||||
class hastymail {
|
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 {
|
||||||
if $hastymail_package_latest {
|
if $hastymail_package_latest {
|
||||||
$hastymail_package = $hastymail_package_latest
|
$hastymail_package = $hastymail_package_latest
|
||||||
|
|
Loading…
Add table
Reference in a new issue