mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
616a95550c
commit
72d74c1132
@ -1,8 +1,8 @@
|
||||
class icingaweb2_dev {
|
||||
include apache
|
||||
include php
|
||||
include icinga_packages
|
||||
include icingaweb2
|
||||
include icingacli
|
||||
|
||||
class { 'zend_framework':
|
||||
notify => Service['apache'],
|
||||
@ -13,10 +13,7 @@ class icingaweb2_dev {
|
||||
notify => Service['apache'],
|
||||
}
|
||||
|
||||
package { 'icingacli':
|
||||
ensure => latest,
|
||||
require => Class['icinga_packages'],
|
||||
}
|
||||
Exec { path => '/usr/local/bin:/usr/bin:/bin' }
|
||||
|
||||
file { '/etc/icingaweb/enabledModules':
|
||||
ensure => directory,
|
||||
@ -31,23 +28,18 @@ class icingaweb2_dev {
|
||||
-> exec { 'enable-monitoring-module':
|
||||
command => 'icingacli module enable monitoring',
|
||||
user => 'apache',
|
||||
require => [
|
||||
Package['icingacli'],
|
||||
Class['apache']
|
||||
],
|
||||
require => Class[[ 'icingacli', 'apache' ]],
|
||||
}
|
||||
|
||||
exec { 'usermod -aG icingacmd apache':
|
||||
command => '/usr/sbin/usermod -aG icingacmd apache',
|
||||
require => [
|
||||
Package['icingacli'],
|
||||
Class['icingacli'],
|
||||
User['apache']
|
||||
],
|
||||
notify => Service['apache'],
|
||||
}
|
||||
|
||||
Exec { path => '/bin:/usr/bin' }
|
||||
|
||||
mysql::database::populate { 'icingaweb':
|
||||
username => 'icingaweb',
|
||||
password => 'icingaweb',
|
||||
|
Loading…
x
Reference in New Issue
Block a user