[bug] ship newer client discover script
[puppet_squid_deb_proxy.git] / manifests / server.pp
1 class squid_deb_proxy::server {
2   package { 'squid-deb-proxy':
3     ensure => installed,
4   }
5
6   service { 'squid-deb-proxy':
7     ensure    => running,
8     hasstatus => false,
9     require   => Package[ 'squid-deb-proxy' ],
10   }
11
12   file {'/etc/squid-deb-proxy/mirror-dstdomain.acl.d/20-custom':
13     source  => [ 'puppet:///modules/site_squid_deb_proxy/mirror-dstdomain.acl.d/20-custom',
14       'puppet:///modules/squid_deb_proxy/mirror-dstdomain.acl.d/20-custom' ],
15     notify  => Service[ 'squid-deb-proxy' ],
16     require => Package[ 'squid-deb-proxy' ],
17     mode    => '0644',
18     owner   => 'root',
19     group   => 'root',
20   }
21
22   file {'/etc/squid-deb-proxy/allowed-networks-src.acl.d/20-custom':
23     source  => [ 'puppet:///modules/site_squid_deb_proxy/allowed-networks-src.acl.d/20-custom',
24       'puppet:///modules/squid_deb_proxy/allowed-networks-src.acl.d/20-custom' ],
25     notify  => Service[ 'squid-deb-proxy' ],
26     require => Package[ 'squid-deb-proxy' ],
27     mode    => '0644',
28     owner   => 'root',
29     group   => 'root',
30   }
31
32   file { '/etc/squid-deb-proxy/squid-deb-proxy.conf':
33     source  => [ "puppet:///modules/site_squid_deb_proxy/${::operatingsystem}/squid-deb-proxy.conf",
34       "puppet:///modules/squid_deb_proxy/${::operatingsystem}/squid-deb-proxy.conf" ],
35     notify  => Service[ 'squid-deb-proxy' ],
36     require => Package[ 'squid-deb-proxy' ],
37     mode    => '0644',
38     owner   => 'root',
39     group   => 'root',
40   }
41 }