Added a subsection for server service parameters.
This commit is contained in:
parent
616784a032
commit
995f4877a7
3 changed files with 11 additions and 2 deletions
|
@ -191,6 +191,9 @@ class icinga2::params {
|
|||
default: { fail("${operatingsystem} is not supported!") }
|
||||
}
|
||||
|
||||
##################
|
||||
# Icinga 2 server service settings
|
||||
|
||||
##############################
|
||||
# Icinga 2 client parameters
|
||||
##############################
|
||||
|
|
|
@ -51,7 +51,7 @@ class icinga2::server (
|
|||
#class left is applied before the class on the right and that it also refreshes the
|
||||
#class on the right.
|
||||
class {'icinga2::server::install':} ~>
|
||||
class {'icinga2::server::config':} #~>
|
||||
#class {'icinga2::server::service':}
|
||||
class {'icinga2::server::config':} ~>
|
||||
class {'icinga2::server::service':}
|
||||
|
||||
}
|
|
@ -14,5 +14,11 @@
|
|||
class icinga2::server::service inherits icinga2::server {
|
||||
|
||||
include icinga2::server
|
||||
|
||||
#Service resource for the Icinga 2 daemon:
|
||||
service {$icinga2::params::icinga2_server_service_name:
|
||||
ensure => running,
|
||||
subscribe => Class['icinga2::server::config'],
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue