summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2018-02-21 23:48:30 +0100
committermh <mh@immerda.ch>2018-02-21 23:48:30 +0100
commit24c5d04259971af0033c86fdf90c6f9c22974600 (patch)
tree994378e1408dd26ff316256ca0d1038c50f8a647
parent5347a783d2672a16c1c15f1efb0e99e15db9c1c8 (diff)
adjust to the common usage of version as param name
-rw-r--r--README.md6
-rw-r--r--manifests/arm.pp4
-rw-r--r--manifests/torsocks.pp4
3 files changed, 6 insertions, 8 deletions
diff --git a/README.md b/README.md
index 97213c4..dac7078 100644
--- a/README.md
+++ b/README.md
@@ -72,8 +72,7 @@ To install tor, simply include the 'tor' class in your manifests:
class { 'tor': }
-You can specify the `$ensure_version` class parameter to get a specific
-version installed.
+You can specify the `$version` class parameter to get a specific version installed.
However, if you want to make configuration changes to your tor daemon, you will
want to instead include the `tor::daemon` class in your manifests, which will
@@ -127,8 +126,7 @@ To install torsocks, simply include the `torsocks` class in your manifests:
class { 'tor::torsocks': }
-You can specify the `$ensure_version` class parameter to get a specific
-version installed.
+You can specify the `$version` class parameter to get a specific version installed.
# Configuring relays<a name="configuring-relays"></a>
diff --git a/manifests/arm.pp b/manifests/arm.pp
index 44ddcbb..dfea7c8 100644
--- a/manifests/arm.pp
+++ b/manifests/arm.pp
@@ -1,9 +1,9 @@
# manage tor-arm
class tor::arm (
- $ensure_version = 'installed'
+ $version = 'installed'
){
include ::tor
package{'tor-arm':
- ensure => $ensure_version,
+ ensure => $version,
}
}
diff --git a/manifests/torsocks.pp b/manifests/torsocks.pp
index 9f735d4..e1ba8a9 100644
--- a/manifests/torsocks.pp
+++ b/manifests/torsocks.pp
@@ -1,9 +1,9 @@
# manage torsocks
class tor::torsocks (
- $ensure_version = 'installed'
+ $version = 'installed'
){
include ::tor::daemon
package{'torsocks':
- ensure => $ensure_version,
+ ensure => $version,
}
}