define php::fpm::pool( $source, $ensure = 'present', ) { $series = $::php::series if $series == '5' { $version = $::php::series5::version $folder = $::php::series5::folder } else { $version = $::php::series7::version $folder = $::php::series7::folder } file { "/etc/php/${version}/fpm/pool.d/${name}": ensure => $ensure, source => $source, require => Package['php-fpm'], notify => Service["php-${version}-fpm"], } }