summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-03-11 16:11:54 -0400
committerMicah Anderson <micah@riseup.net>2012-03-11 16:11:54 -0400
commitdc2a79282c0427f83de8fb3a87ba1eecd45b528a (patch)
tree832ee9440a4bc10461b2e9ba6ef8384f1224dfdc /manifests/init.pp
parentc467f2c028c05dea254d61f8e797d6b3ba1680b2 (diff)
add variable $tor_ensure_version which allows you to specify a different installed version
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 90782b1..9aee2a1 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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':