diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-02 13:01:00 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-02 13:01:00 -0200 |
commit | 5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798 (patch) | |
tree | 6e89619ec894e6649d31cfd6743211e5e2498d17 /manifests/imap.pp | |
parent | 94fb97c148af076ea4c0e3ec710847b335761f30 (diff) | |
download | puppet-php-5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798.tar.gz puppet-php-5f3ed06fc85c3c9cb8d80c03d157bcc29bf75798.tar.bz2 |
Support both PHP 5 and 7, defaults to 5
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, } } |