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