summaryrefslogtreecommitdiff
path: root/manifests/base.pp
blob: 13d850772692db71c986f45a143f3a9f16a8f679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# basic management of resources for tor
class tor::base {
  package {'tor':
    ensure => $tor::version,
  }
  if $facts['osfamily'] == 'Debian' {
    package {'tor-geoipdb':
      ensure => $tor::version,
      before => Service['tor'],
    }
  }

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