diff options
Diffstat (limited to 'manifests/imap.pp')
-rw-r--r-- | manifests/imap.pp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/imap.pp b/manifests/imap.pp index 381add6..805951d 100644 --- a/manifests/imap.pp +++ b/manifests/imap.pp @@ -1,5 +1,10 @@ -class php::imap inherits php { - package { 'php5-imap': +class php::imap { + $pack = $::php::series ? { + '5' => 'php5-imap', + default => 'php-imap', + } + + package { "${pack"}: ensure => installed, } } |