From cad8f107bf7e81ab143cc7a2cb9660761589eb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 5 Jan 2022 05:07:25 +0100 Subject: Move remaining out of site.pp. --- modules/profiles/manifests/phpfpm.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/profiles/manifests/phpfpm.pp (limited to 'modules/profiles/manifests/phpfpm.pp') diff --git a/modules/profiles/manifests/phpfpm.pp b/modules/profiles/manifests/phpfpm.pp new file mode 100644 index 0000000..2aaf0df --- /dev/null +++ b/modules/profiles/manifests/phpfpm.pp @@ -0,0 +1,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 + } +} -- cgit v1.2.3