blob: e0016fcb4797f53d48f2d240ba07df80d8be6160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# manage onionbalance keys
#
# key_content will be treated as path
# to a file containing the key content
# if the value starts with a /
#
define tor::onionbalance::key(
$key_content,
$group,
){
if $key_content =~ /^\// {
$content = file($key_content)
} else {
$content = $key_content
}
Package<| tag == 'onionbalance' |> -> file{
"/etc/onionbalance/${name}.key":
content => $content,
owner => root,
group => $group,
mode => '0640',
notify => Service['onionbalance'];
}
}
|