diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-05 05:07:25 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-05 05:07:25 +0100 |
commit | cad8f107bf7e81ab143cc7a2cb9660761589eb3b (patch) | |
tree | c7ed9628010a96bbc3dfda297e64da237107a049 /modules/profiles | |
parent | Set refreshonly for wpa_supplicant. (diff) | |
download | webdav_server-cad8f107bf7e81ab143cc7a2cb9660761589eb3b.tar.gz webdav_server-cad8f107bf7e81ab143cc7a2cb9660761589eb3b.tar.xz |
Move remaining out of site.pp.
Diffstat (limited to 'modules/profiles')
-rw-r--r-- | modules/profiles/manifests/fcgiwrap.pp | 8 | ||||
-rw-r--r-- | modules/profiles/manifests/phpfpm.pp | 21 |
2 files changed, 29 insertions, 0 deletions
diff --git a/modules/profiles/manifests/fcgiwrap.pp b/modules/profiles/manifests/fcgiwrap.pp new file mode 100644 index 0000000..fa667d1 --- /dev/null +++ b/modules/profiles/manifests/fcgiwrap.pp @@ -0,0 +1,8 @@ +class profiles::fcgiwrap { + ensure_packages(['fcgiwrap']) + + service { 'fcgiwrap.socket': + ensure => running, + enable => true, + } +} 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 + } +} |