aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 6f3c90c70323465c2c6355c31fdf8fcfd51e3ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import "polipo.pp"
import "daemon.pp"

class tor {

  if !$tor_ensure_version { $tor_ensure_version = 'installed' }

  package { [ "tor", "tor-geoipdb", "torsocks" ]:
    ensure => $tor_ensure_version,
  }

  service { 'tor':
    ensure  => running,
    enable => true,
    hasrestart => true,
    hasstatus => true,
    require => Package['tor'],
  }

  if $use_munin {
    include tor::munin
  }
}