aboutsummaryrefslogtreecommitdiff
path: root/manifests/daemon.pp
blob: 24401804a3712e66141f0041f5ca2bd7ec5e788b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# manage a snippet based tor installation
class tor::daemon (
  $ensure_version           = 'installed',
  $use_munin                = false,
  $data_dir                 = '/var/lib/tor',
  $config_file              = '/etc/tor/torrc',
  $use_bridges              = 0,
  $automap_hosts_on_resolve = 0,
  $log_rules                = [ 'notice file /var/log/tor/notices.log' ]
) {

  class{'tor':
    ensure_version => $ensure_version,
  }

  include tor::daemon::base

  if $use_munin {
    include tor::munin
  }
}