server: added service, config fule mirror-dstdomain.acl.d/10-custom
[puppet_squid_deb_proxy.git] / manifests / server.pp
index 7dbd705..0e0083f 100644 (file)
@@ -2,4 +2,16 @@ class squid_deb_proxy::server {
   package { 'squid-deb-proxy':
     ensure => installed,
   }
   package { 'squid-deb-proxy':
     ensure => installed,
   }
+
+  service { 'squid-deb-proxy':
+    ensure  => running,
+    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/10-custom',
+      'puppet:///modules/squid_deb_proxy/mirror-dstdomain.acl.d/10-custom' ],
+    notify  => Service[ 'squid-deb-proxy' ],
+    require => Package[ 'squid-deb-proxy' ],
+  }
 }
 }