aboutsummaryrefslogtreecommitdiff
path: root/manifests/fpm/pool.pp
blob: 75560db25e02c57a240c1d21bc2f8b217c14faee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"],
  }
}