aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/network/tor.pp
blob: 78b08a41c7eeb1fba4f507bb447e66f410213bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This class currently mostly manages the repository definition and key
# Use the "tor" or "onion" modules to manage package installation and service configuration
class nodo::utils::network::tor (
  $ensure = 'installed',
) {
  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'],
  }

  package { [
    'tor-arm',
  ]:
    ensure => $ensure,
  }
}