diff options
| author | Micah Anderson <micah@riseup.net> | 2012-03-14 15:27:17 -0400 | 
|---|---|---|
| committer | Micah Anderson <micah@riseup.net> | 2012-03-14 15:27:17 -0400 | 
| commit | 44f4ba052ae9c02bc8923767885466c035fbb6ec (patch) | |
| tree | 2602408eecd979ea251af7cd49c23e7e703979f5 /manifests | |
| parent | 8786a1e07dc1665409278c0f012a0a11a786cdf6 (diff) | |
| download | puppet-tor-44f4ba052ae9c02bc8923767885466c035fbb6ec.tar.gz puppet-tor-44f4ba052ae9c02bc8923767885466c035fbb6ec.tar.bz2 | |
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')
| -rw-r--r-- | manifests/init.pp | 7 | 
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, | 
