1 2 3 4 5 6 7 8 9 10
class php::imap { $pack = $::php::series ? { '5' => 'php5-imap', default => 'php-imap', } package { "${pack}": ensure => installed, } }