Added a subsection for server service parameters.

This commit is contained in:
Nick Chappell 2014-07-05 15:56:55 -07:00
parent 616784a032
commit 995f4877a7
3 changed files with 11 additions and 2 deletions

View file

@ -191,6 +191,9 @@ class icinga2::params {
default: { fail("${operatingsystem} is not supported!") }
}
##################
# Icinga 2 server service settings
##############################
# Icinga 2 client parameters
##############################

View file

@ -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':}
}

View file

@ -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'],
}
}