Mercurial > repos > other > Puppet
view modules/my_fw/manifests/init.pp @ 350:85d2c0079af9
Make opcache core and add APCu for object caching
Nextcloud wants APCu for in-memory object caching.
Opcache has been "core" since v5.5 (althought we're still
importing Zend in one place, so maybe we're not doing it right!)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 27 Sep 2020 12:59:34 +0100 |
parents | e36b7f4f85f2 |
children | 66c406eec60d |
line wrap: on
line source
class my_fw ($ip_version) { Firewall <| |> { provider => $ip_version == "IPv6" ? { true => 'ip6tables', default => 'iptables'}, } class { ['my_fw::pre', 'my_fw::post']: } class { 'firewall': ensure => $ip_version == "IPv6" ? { true => 'stopped', default => 'running'}, ensure_v6 => $ip_version == "IPv6" ? { true => 'running', default => 'stopped'}, } }