diff options
author | mh <mh@immerda.ch> | 2016-09-04 21:00:45 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-09-04 21:00:45 +0200 |
commit | d08f07eae13d02431b1c4142634f49e978b551de (patch) | |
tree | 9573ef0a099545e3189bc12dff5301de3ec41e96 /manifests/munin.pp | |
parent | 24f919c9ffcff07a0ff0a5157ed5f5661c784b12 (diff) |
make module also work on EL7
* user is different
* user must not be managed
* make access more safe, it doesn't make sense that the user running
the daemon owns the config, nor the config directory.
Diffstat (limited to 'manifests/munin.pp')
-rw-r--r-- | manifests/munin.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/munin.pp b/manifests/munin.pp index ef71f57..1b043f1 100644 --- a/manifests/munin.pp +++ b/manifests/munin.pp @@ -7,8 +7,9 @@ class tor::munin { cookie_auth_file => '/var/run/tor/control.authcookie', } + include ::tor::daemon::params Munin::Plugin::Deploy { - config => "user debian-tor\n env.cookiefile /var/run/tor/control.authcookie\n env.port 19051" + config => "user ${tor::daemon::params::user}\n env.cookiefile /var/run/tor/control.authcookie\n env.port 19051" } munin::plugin::deploy { 'tor_openfds': |