aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: d91618887ece2549a53c46db693af5697afabe59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class tor {

  if !$tor_ensure_version { $tor_ensure_version = 'installed' }
  
  package { [ "tor", "tor-geoipdb" ]:
    ensure => $tor_ensure_version,
  }

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

  if $use_munin {
    include tor::munin
  }
}