summaryrefslogtreecommitdiff
path: root/puppet/modules/site_tor/manifests/init.pp
blob: 5e209ba81149cdbd3681074a71e8d47752080a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 }

}