From 5b1377e5dff3f8be7efa70db93aaf20cd8bd48cd Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Mon, 15 Sep 2014 14:20:13 +0200 Subject: [PATCH] Enable module 'monitoring' as user 'apache' refs #6842 --- .vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp index 36c48f17b..b193c47e4 100644 --- a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp +++ b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp @@ -30,7 +30,11 @@ class icingaweb2_dev { } -> exec { 'enable-monitoring-module': command => 'icingacli module enable monitoring', - require => Package['icingacli'], + user => 'apache', + require => [ + Package['icingacli'], + Class['apache'] + ], } exec { 'usermod -aG icingacmd apache':