From 8fd3b940094acc380dac1d2d59a8522f02535eda Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Mon, 15 Sep 2014 13:35:14 +0200 Subject: [PATCH] icingaweb2_dev: add File[/etc/icingaweb/enabledModules] refs #6842 --- .../profiles/icingaweb2_dev/manifests/init.pp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp index ee9108844..36c48f17b 100644 --- a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp +++ b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp @@ -2,6 +2,7 @@ class icingaweb2_dev { include apache include php include icinga_packages + include icingaweb2 class { 'zend_framework': notify => Service['apache'], @@ -15,8 +16,21 @@ class icingaweb2_dev { package { 'icingacli': ensure => latest, require => Class['icinga_packages'], - } -> exec { 'enable-monitoring-module': + } + + file { '/etc/icingaweb/enabledModules': + ensure => directory, + owner => 'apache', + group => 'apache', + mode => 6750, + require => [ + Class['apache'], + File['icingaweb2cfgDir'] + ], + } + -> exec { 'enable-monitoring-module': command => 'icingacli module enable monitoring', + require => Package['icingacli'], } exec { 'usermod -aG icingacmd apache':