1 class roles::snapshot_web {
3 include apache2::rewrite
11 apache2::site { '020-snapshot.debian.org':
12 site => 'snapshot.debian.org',
13 content => template('roles/snapshot/snapshot.debian.org.conf.erb')
18 varnish::config { 'default':
19 listen => ':6081,[2001:630:206:4000:1a1a:0:c13e:ca1b]:80',
20 backend => 'file,/var/lib/varnish/varnish_storage.bin,8G',
21 content => template('roles/snapshot/snapshot.debian.org.vcl.erb'),
24 file { '/etc/apache2/ports.conf':
27 Listen [2001:630:206:4000:1a1a:0:c13e:ca1a]:80
29 require => Package['apache2'],
30 notify => Service['apache2'],
34 fail ( "unknown host $::hostname for snapshot_web." )