]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Service definition for apt-cacher-ng
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Dec 2013 16:29:22 +0000 (14:29 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Dec 2013 16:29:22 +0000 (14:29 -0200)
manifests/role/proxy.pp

index bd0e825ac326af9faa306df326877dfb8963774c..c7d6ea79cbbd660f7158bb5799b5c3bb37c621f0 100644 (file)
@@ -17,7 +17,12 @@ class nodo::role::proxy inherits nodo::base::vserver {
     ensure => present,
   }
 
-  class { 'apt::proxy_client':
+  service { 'apt-cacher-ng':
+    ensure  => running,
     require => Package['apt-cacher-ng'],
   }
+
+  class { 'apt::proxy_client':
+    require => Service['apt-cacher-ng'],
+  }
 }