summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-03-14 15:27:17 -0400
committerMicah Anderson <micah@riseup.net>2012-03-14 15:27:17 -0400
commit44f4ba052ae9c02bc8923767885466c035fbb6ec (patch)
tree2602408eecd979ea251af7cd49c23e7e703979f5 /manifests/init.pp
parent8786a1e07dc1665409278c0f012a0a11a786cdf6 (diff)
enable different version ensure for torssocks, it doesn't share the same version number as tor and tor-geoipdb, so if you set $tor_ensure_version, you will have an error with torsocks
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6f3c90c..ca5f2b8 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -4,11 +4,16 @@ import "daemon.pp"
class tor {
if !$tor_ensure_version { $tor_ensure_version = 'installed' }
-
+ if !$torsocks_ensure_version { $torsocks_ensure_version = 'installed'}
+
package { [ "tor", "tor-geoipdb", "torsocks" ]:
ensure => $tor_ensure_version,
}
+ package { "torsocks":
+ ensure => $torsocks_ensure_version,
+ }
+
service { 'tor':
ensure => running,
enable => true,