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 } }