diff options
author | intrigeri <intrigeri@boum.org> | 2012-11-09 21:54:58 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-11-11 17:47:24 +0100 |
commit | 49cb5faa62544c589a82b9d48a768eb1391c9a61 (patch) | |
tree | 1ebac38338ae392ea7cdd72b902aa54e1cbab383 /manifests/torsocks.pp | |
parent | 3a91fa40e19ab0645e159e76592fcbe60fc8ea41 (diff) |
Migrate to parameterized classes, drop global variables.
Diffstat (limited to 'manifests/torsocks.pp')
-rw-r--r-- | manifests/torsocks.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/torsocks.pp b/manifests/torsocks.pp index 7bb51ee..452b4f1 100644 --- a/manifests/torsocks.pp +++ b/manifests/torsocks.pp @@ -1,7 +1,8 @@ -class tor::torsocks { - if !$torsocks_ensure_version { $torsocks_ensure_version = 'installed' } +class tor::torsocks ( + $ensure_version = 'installed', +){ include ::tor package{'torsocks': - ensure => $torsocks_ensure_version, + ensure => $ensure_version, } } |