aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/network/tor.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/utils/network/tor.pp')
-rw-r--r--manifests/utils/network/tor.pp12
1 files changed, 10 insertions, 2 deletions
diff --git a/manifests/utils/network/tor.pp b/manifests/utils/network/tor.pp
index 88c29ce..78b08a4 100644
--- a/manifests/utils/network/tor.pp
+++ b/manifests/utils/network/tor.pp
@@ -1,6 +1,8 @@
-# This class currently only manages the repository definition and key
+# This class currently mostly manages the repository definition and key
# Use the "tor" or "onion" modules to manage package installation and service configuration
-class nodo::utils::network::tor {
+class nodo::utils::network::tor (
+ $ensure = 'installed',
+) {
nodo::subsystem::apt::repo { 'torproject.org':
definition => "deb [signed-by=/etc/apt/trusted.gpg.d/torproject.org.gpg] https://deb.torproject.org/torproject.org ${::lsbdistcodename} main",
key_source => 'puppet:///modules/nodo/etc/apt/trusted.gpg.d/torproject.org.gpg',
@@ -10,4 +12,10 @@ class nodo::utils::network::tor {
ensure => present,
require => Nodo::Subsystem::Apt::Repo['torproject.org'],
}
+
+ package { [
+ 'tor-arm',
+ ]:
+ ensure => $ensure,
+ }
}