summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2015-10-12 23:29:30 +0200
committermh <mh@immerda.ch>2015-10-12 23:29:30 +0200
commitd85a5924b713143426a59ece9df82bba7534e11b (patch)
treee4d46af107edbd7aca597ff89987c318dcd53fda
parentbbda7cef0b0d6d68c9d2c393592cbfbef9f3534e (diff)
ensure we run things with the right user/group
-rw-r--r--manifests/service/gpgkey.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/service/gpgkey.pp b/manifests/service/gpgkey.pp
index 0c271f4..bea2c57 100644
--- a/manifests/service/gpgkey.pp
+++ b/manifests/service/gpgkey.pp
@@ -8,7 +8,10 @@ define nagios::service::gpgkey(
require ::nagios::plugins::gpg
$gpg_home = $nagios::plugins::gpg::gpg_home
- exec{"manage_key_${name}": }
+ exec{"manage_key_${name}":
+ user => nagios,
+ group => nagios,
+ }
nagios::service{
"check_gpg_${name}":
ensure => $ensure;