]> gitweb.fluxo.info Git - puppet-tor.git/commitdiff
add variable $tor_ensure_version which allows you to specify a different installed...
authorMicah Anderson <micah@riseup.net>
Sun, 11 Mar 2012 20:11:54 +0000 (16:11 -0400)
committerMicah Anderson <micah@riseup.net>
Sun, 11 Mar 2012 20:11:54 +0000 (16:11 -0400)
manifests/init.pp

index 90782b17a72e3ae47a96b6d7230c98d4aeb25cec..9aee2a19d632bb796ca69b8e1ee0ab43fe69f366 100644 (file)
@@ -2,8 +2,11 @@ import "polipo.pp"
 import "daemon.pp"
 
 class tor {
+
+  if !$tor_ensure_version { $tor_ensure_version = 'installed' }
+
   package { [ "tor", "torsocks" ]:
-    ensure => installed,
+    ensure => $tor_ensure_version,
   }
 
   service { 'tor':