diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-12-21 16:03:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-12-21 16:03:21 -0300 |
commit | 7ba73570ea7c3a0936a617a1e92b8939984619e2 (patch) | |
tree | 8e998c860c66e2901d06a19b37e5306bd875af90 /manifests/utils | |
parent | 93ce17804c95770c1193e31ef0b9fecb2cbeb679 (diff) | |
download | puppet-nodo-7ba73570ea7c3a0936a617a1e92b8939984619e2.tar.gz puppet-nodo-7ba73570ea7c3a0936a617a1e92b8939984619e2.tar.bz2 |
Fix: merge nodo::utils::tor into nodo::utils::network::tor
Diffstat (limited to 'manifests/utils')
-rw-r--r-- | manifests/utils/network/tor.pp | 12 | ||||
-rw-r--r-- | manifests/utils/tor.pp | 9 |
2 files changed, 10 insertions, 11 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, + } } diff --git a/manifests/utils/tor.pp b/manifests/utils/tor.pp deleted file mode 100644 index e229009..0000000 --- a/manifests/utils/tor.pp +++ /dev/null @@ -1,9 +0,0 @@ -class nodo::utils::tor ( - $ensure = 'installed', -) { - package { [ - 'tor-arm', - ]: - ensure => $ensure, - } -} |