summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2017-02-11 13:54:27 +0000
committerintrigeri <intrigeri@boum.org>2017-02-11 13:54:27 +0000
commited5d89fc6fed4312554e96be3888eef7ac0769ba (patch)
treed62ee77644e2f937e2222b1beb75f6fa6eae5deb
parent24f779a6bfc7094a0072b4f5819a57b4901aeefe (diff)
Import prosody management code.
-rw-r--r--manifests/prosody.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/prosody.pp b/manifests/prosody.pp
new file mode 100644
index 0000000..62dc416
--- /dev/null
+++ b/manifests/prosody.pp
@@ -0,0 +1,16 @@
+# Manage a private Prosody XMPP server behind a Tor onion service
+class tails::prosody () {
+ tor::daemon::hidden_service { 'xmpp-hidden':
+ ports => [ '5222' ],
+ }
+
+ apt::preferences_snippet { 'prosody':
+ pin => 'release o=Debian Backports,n=jessie-backports',
+ priority => 990,
+ }
+
+ ensure_packages([
+ 'prosody', 'ssl-cert', 'ca-certificates'
+ ])
+
+}