X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvarnish%2Fmanifests%2Finit.pp;h=4d10c66192433908875bed9a7a894a4cc1576d6b;hb=f35cf27e2783bfee55b247d56f32e90750dd5d32;hp=7ce53d289cf8204f0854389fea89c7aab188a6bd;hpb=085f203e38a266c872335dfef21c86d4eb478ddb;p=mirror%2Fdsa-puppet.git diff --git a/modules/varnish/manifests/init.pp b/modules/varnish/manifests/init.pp index 7ce53d289..4d10c6619 100644 --- a/modules/varnish/manifests/init.pp +++ b/modules/varnish/manifests/init.pp @@ -8,20 +8,33 @@ class varnish { ensure => running, } + include apache2::dynamic + @ferm::rule { 'dsa-varnish': domain => '(ip ip6)', + prio => '100', description => 'Allow http access', rule => '&SERVICE(tcp, 80)' } file { '/etc/default/varnish': - source => 'puppet:///modules/varnish/files/varnish.default', - notify => Service['varnish'], + source => 'puppet:///modules/varnish/varnish.default', + require => Package['varnish'], + notify => Service['varnish'], + mode => '0444', } file { '/etc/varnish/default.vcl': - source => 'puppet:///modules/varnish/files/default.vcl', - notify => Service['varnish'], + source => 'puppet:///modules/varnish/default.vcl', + require => Package['varnish'], + notify => Service['varnish'], + mode => '0444', + } + + file { '/etc/logrotate.d/varnish': + source => 'puppet:///modules/varnish/varnish.logrotate', + require => Package['varnish'], + mode => '0444', } }