summaryrefslogtreecommitdiff
path: root/manifests/phpfpm.pp
blob: 927a32fa496c3c5335687fba0024d3fef76eb45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class profiles::phpfpm (
  String $version = '7.4',
) {

  # The packageg php-fpm also exists, which simply pulls in php7.4-fpm

  ensure_packages(["php${version}-fpm"])

  service { "php${version}-fpm":
    ensure => running,
    enable => true,
  }

  systemd::dropin_file { 'runtime-dir.conf':
    unit    => "php${version}-fpm.service",
    content =>  @(EOF)
      [Service]
      RuntimeDirectory=php
      | EOF
  }
}