rearranged some stuff
authormh <mh@immerda.ch>
Wed, 30 Jan 2008 21:37:34 +0000 (21:37 +0000)
committermh <mh@immerda.ch>
Wed, 30 Jan 2008 21:37:34 +0000 (21:37 +0000)
manifests/init.pp

index 32afb50..606f82b 100644 (file)
@@ -13,5 +13,19 @@ class squid {
         }
     }
 
+    service{'squid':
+        enable => true,
+        ensure => running,
+        require => Package[squid],
+    }
+
 }
 
+squid::squid_config ( $source ) {
+    file {
+        "/etc/squid/squid.conf":
+        ensure => file, owner => root, group => root, mode => 644,
+        source => "puppet://$servername/${source}",
+        notify => Service[squid],
+    }
+}