diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-12-20 13:30:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-12-20 13:30:16 -0300 |
commit | 93ce17804c95770c1193e31ef0b9fecb2cbeb679 (patch) | |
tree | f66fae9eafe8b7d8b50a62134b669ce982acdcf4 | |
parent | f7c45029c35b19f031122e7e3f0f7f5112ad8340 (diff) | |
download | puppet-nodo-93ce17804c95770c1193e31ef0b9fecb2cbeb679.tar.gz puppet-nodo-93ce17804c95770c1193e31ef0b9fecb2cbeb679.tar.bz2 |
Feat: adds nodo::utils::network::tor
-rw-r--r-- | files/etc/apt/trusted.gpg.d/torproject.org.gpg | bin | 0 -> 37730 bytes | |||
-rw-r--r-- | manifests/utils/network/tor.pp | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/files/etc/apt/trusted.gpg.d/torproject.org.gpg b/files/etc/apt/trusted.gpg.d/torproject.org.gpg Binary files differnew file mode 100644 index 0000000..7614b20 --- /dev/null +++ b/files/etc/apt/trusted.gpg.d/torproject.org.gpg diff --git a/manifests/utils/network/tor.pp b/manifests/utils/network/tor.pp new file mode 100644 index 0000000..88c29ce --- /dev/null +++ b/manifests/utils/network/tor.pp @@ -0,0 +1,13 @@ +# This class currently only manages the repository definition and key +# Use the "tor" or "onion" modules to manage package installation and service configuration +class nodo::utils::network::tor { + 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', + } + + package { "deb.torproject.org-keyring": + ensure => present, + require => Nodo::Subsystem::Apt::Repo['torproject.org'], + } +} |