Change require to subscribe for zabbix service

Zabbix service now subscribed to changes in zabbix_server.conf.

Change-Id: Ie48379042121b8e2fc0de81414b6a6b9e0fa2491
Closes-Bug: #1373387
This commit is contained in:
Stanislaw Bogatkin 2014-09-24 17:43:10 +04:00
parent ae297a55b7
commit b73c59c04d

View File

@ -33,14 +33,14 @@ class zabbix::server {
service { $zabbix::params::server_service:
enable => true,
ensure => running,
require => File[$zabbix::params::server_config],
subscribe => File[$zabbix::params::server_config],
}
Anchor<| title == 'zabbix_db_end' |> -> Anchor<| title == 'zabbix_frontend_start' |>
if $zabbix::params::frontend {
class { 'zabbix::frontend':
require => Service[$zabbix::params::server_service],
class { 'zabbix::frontend':
require => Service[$zabbix::params::server_service],
}
anchor { 'zabbix_frontend_start': } -> Class['zabbix::frontend'] -> anchor { 'zabbix_frontend_end': }
}