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