summaryrefslogtreecommitdiff
path: root/manifests/phpfpm.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-05 05:07:25 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-05 05:07:25 +0100
commit909f8689b6ee300fed10618768721027e26283fa (patch)
tree6276c3bf1dc128aeffd57285fee1e4ac808b2a89 /manifests/phpfpm.pp
parentActually include letsencrypt. (diff)
downloadprofiles-909f8689b6ee300fed10618768721027e26283fa.tar.gz
profiles-909f8689b6ee300fed10618768721027e26283fa.tar.xz
Move remaining out of site.pp.
Diffstat (limited to 'manifests/phpfpm.pp')
-rw-r--r--manifests/phpfpm.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/phpfpm.pp b/manifests/phpfpm.pp
new file mode 100644
index 0000000..2aaf0df
--- /dev/null
+++ b/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
+ }
+}