From ce867ad77483eea6e03263ad3bff4a974ea9ebeb Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 28 May 2018 10:19:18 +0200 Subject: [PATCH] a very basic generic varnish module --- modules/varnish/manifests/base.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/varnish/manifests/base.pp diff --git a/modules/varnish/manifests/base.pp b/modules/varnish/manifests/base.pp new file mode 100644 index 000000000..ebee201b7 --- /dev/null +++ b/modules/varnish/manifests/base.pp @@ -0,0 +1,16 @@ +class varnish::base { + package { 'varnish': + ensure => installed, + } + service { 'varnish': + ensure => running, + } + + file { '/var/lib/varnish/.nobackup': + ensure => present, + content => "", + require => Package['varnish'], + mode => '0444', + } +} + -- 2.20.1