diff options
author | Micah Anderson <micah@riseup.net> | 2012-03-11 16:11:54 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-03-11 16:11:54 -0400 |
commit | dc2a79282c0427f83de8fb3a87ba1eecd45b528a (patch) | |
tree | 832ee9440a4bc10461b2e9ba6ef8384f1224dfdc /manifests | |
parent | c467f2c028c05dea254d61f8e797d6b3ba1680b2 (diff) | |
download | puppet-tor-dc2a79282c0427f83de8fb3a87ba1eecd45b528a.tar.gz puppet-tor-dc2a79282c0427f83de8fb3a87ba1eecd45b528a.tar.bz2 |
add variable $tor_ensure_version which allows you to specify a different installed version
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
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': |