mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
d09e65b7be
commit
c573123f3f
@ -14,21 +14,27 @@
|
|||||||
class icinga2 {
|
class icinga2 {
|
||||||
include icinga_packages
|
include icinga_packages
|
||||||
|
|
||||||
service { 'icinga2':
|
|
||||||
ensure => running,
|
|
||||||
enable => true,
|
|
||||||
require => Package['icinga2']
|
|
||||||
}
|
|
||||||
|
|
||||||
package { [
|
package { [
|
||||||
'icinga2', 'icinga2-doc', 'icinga2-debuginfo' ]:
|
'icinga2', 'icinga2-doc', 'icinga2-debuginfo'
|
||||||
|
]:
|
||||||
ensure => latest,
|
ensure => latest,
|
||||||
require => Class['icinga_packages'],
|
require => Class['icinga_packages'],
|
||||||
}
|
}
|
||||||
|
-> service { 'icinga2':
|
||||||
icinga2::feature { [ 'statusdata', 'command', 'compatlog' ]: }
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
user { 'icinga':
|
}
|
||||||
|
-> user { 'icinga':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
-> file { 'icinga2cfgDir':
|
||||||
|
path => '/etc/icinga2',
|
||||||
|
ensure => directory,
|
||||||
|
links => follow,
|
||||||
|
owner => 'icinga',
|
||||||
|
group => 'icinga',
|
||||||
|
mode => 6750,
|
||||||
|
}
|
||||||
|
|
||||||
|
icinga2::feature { [ 'statusdata', 'command', 'compatlog' ]: }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user