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