From 1f547aa1ec2422f6d44b2b3c476cf3815f11c03d Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Fri, 12 Sep 2014 19:03:17 +0200 Subject: [PATCH] Profile `icingaweb2_dev': add user `apache' to group `icingacmd' refs #6842 --- .../profiles/icingaweb2_dev/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp index 1fcacd933..ee9108844 100644 --- a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp +++ b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp @@ -19,6 +19,15 @@ class icingaweb2_dev { command => 'icingacli module enable monitoring', } + exec { 'usermod -aG icingacmd apache': + command => '/usr/sbin/usermod -aG icingacmd apache', + require => [ + Package['icingacli'], + User['apache'] + ], + notify => Service['apache'], + } + Exec { path => '/bin:/usr/bin' } mysql::database::populate { 'icingaweb':