aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 613eb292c1de234d44ccc6160607b3bd4d7b831d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class tor (
  $ensure_version = 'installed',
  $use_munin      = false,
){

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

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

  if $use_munin {
    include tor::munin
  }
}