From: Micah Anderson Date: Sun, 11 Mar 2012 20:11:54 +0000 (-0400) Subject: add variable $tor_ensure_version which allows you to specify a different installed... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=dc2a79282c0427f83de8fb3a87ba1eecd45b528a;p=puppet-tor.git add variable $tor_ensure_version which allows you to specify a different installed version --- 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':