summaryrefslogtreecommitdiff
path: root/puppet/modules/site_tor
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2017-05-02 16:24:15 -0400
committerMicah Anderson <micah@riseup.net>2017-05-06 12:52:00 -0400
commit449d6169b8d0c7f31279b445f5dd103b244d7382 (patch)
treee86fd7506cd7073f4cecd089778eaac5a652d5fa /puppet/modules/site_tor
parent68e9a28da2db4cb494bc19a1aeaa0663cb286414 (diff)
Install tor from backports (fixes #8783).
The newer version is needed for the single-hop functionality.
Diffstat (limited to 'puppet/modules/site_tor')
-rw-r--r--puppet/modules/site_tor/manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_tor/manifests/init.pp b/puppet/modules/site_tor/manifests/init.pp
index 356053c1..5e209ba8 100644
--- a/puppet/modules/site_tor/manifests/init.pp
+++ b/puppet/modules/site_tor/manifests/init.pp
@@ -1,6 +1,14 @@
# generic configuration needed for tor
class site_tor {
+ # Ensure the tor version is the latest from backports
+ # see https://0xacab.org/leap/platform/issues/8783
+ apt::preferences_snippet { 'tor':
+ package => 'tor',
+ release => "${::lsbdistcodename}-backports",
+ priority => 999,
+ before => Class['tor::daemon'] }
+
class { 'tor::daemon': ensure_version => latest }
}