projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rotate some -all logfiles
[mirror/dsa-puppet.git]
/
modules
/
varnish
/
manifests
/
init.pp
diff --git
a/modules/varnish/manifests/init.pp
b/modules/varnish/manifests/init.pp
index
b134c8e
..
004711e
100644
(file)
--- a/
modules/varnish/manifests/init.pp
+++ b/
modules/varnish/manifests/init.pp
@@
-1,27
+1,34
@@
class varnish {
package { 'varnish':
class varnish {
package { 'varnish':
- ensure => installed
+ ensure => installed
,
}
service { 'varnish':
ensure => running,
}
}
service { 'varnish':
ensure => running,
}
+ include apache2::dynamic
+
@ferm::rule { 'dsa-varnish':
domain => '(ip ip6)',
@ferm::rule { 'dsa-varnish':
domain => '(ip ip6)',
+ prio => '100',
description => 'Allow http access',
description => 'Allow http access',
-
rule => '&TCP_SERVICE(
80)'
+
rule => '&SERVICE(tcp,
80)'
}
file { '/etc/default/varnish':
}
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':
}
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',
}
}
}
}