summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-02-01 15:32:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-02-01 15:32:28 -0300
commitc12e70f55c0c441cb0211a8f0cc88981d2b5a724 (patch)
treea0524c5d4fec7eba524b8bae9a0bb16451b14aa7
parent4b332c70cfe6fba2513ba26aad37ab61092a7fac (diff)
downloadpuppet-onion-c12e70f55c0c441cb0211a8f0cc88981d2b5a724.tar.gz
puppet-onion-c12e70f55c0c441cb0211a8f0cc88981d2b5a724.tar.bz2
Feat: adds onion::liberachat and onion::oftc
-rw-r--r--manifests/liberachat.pp9
-rw-r--r--manifests/oftc.pp10
2 files changed, 19 insertions, 0 deletions
diff --git a/manifests/liberachat.pp b/manifests/liberachat.pp
new file mode 100644
index 0000000..6034b73
--- /dev/null
+++ b/manifests/liberachat.pp
@@ -0,0 +1,9 @@
+class onion::liberachat inherits onion::socks {
+ # Libera.Chat via Tor
+ # See https://libera.chat/guides/connect#accessing-liberachat-via-tor
+ tor::daemon::map_address { 'liberachat':
+ #address => '10.40.40.40',
+ address => 'palladium.libera.chat',
+ newaddress => 'libera75jm6of4wxpxt4aynol3xjmbtxgfyjpu34ss4d7r7q2v5zrpyd.onion',
+ }
+}
diff --git a/manifests/oftc.pp b/manifests/oftc.pp
new file mode 100644
index 0000000..8e87fa4
--- /dev/null
+++ b/manifests/oftc.pp
@@ -0,0 +1,10 @@
+class onion::oftc inherits onion::socks {
+ # OFTC via Tor
+ # See https://libera.chat/guides/connect#accessing-liberachat-via-tor
+ # https://www.oftc.net/Tor/
+ tor::daemon::map_address { 'oftc':
+ #address => '10.50.50.50',
+ address => 'irc.oftc.net',
+ newaddress => 'oftcnet6xg6roj6d7id4y4cu6dchysacqj2ldgea73qzdagufflqxrid.onion',
+ }
+}