blob: b8e1917e2d8ccaaba80728dbcf0b75903093cd92 (
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
}
}
|