d3a29c2f5a
1. We shouldn't configure default DB when install zabbix-server-mysql. 2. Rewrite manifests to apply in right order Change-Id: Ib5ceabd8c4292a0813f70c47a38a393b98075b8c Closes-Bug: 1359773
27 lines
787 B
Puppet
27 lines
787 B
Puppet
class zabbix::frontend {
|
|
|
|
include zabbix::params
|
|
|
|
package { $zabbix::params::frontend_pkg:
|
|
ensure => present,
|
|
before => [ File["$zabbix::params::frontend_config"], File["$zabbix::params::frontend_php_ini"] ],
|
|
}
|
|
|
|
file { $zabbix::params::frontend_config:
|
|
ensure => present,
|
|
content => template($zabbix::params::frontend_config_template),
|
|
}
|
|
|
|
file { $zabbix::params::frontend_php_ini:
|
|
ensure => present,
|
|
content => template($zabbix::params::frontend_php_ini_template),
|
|
}
|
|
|
|
service { $zabbix::params::frontend_service:
|
|
ensure => running,
|
|
require => Package[$zabbix::params::frontend_pkg],
|
|
subscribe => [ File["$zabbix::params::frontend_config"], File["$zabbix::params::frontend_php_ini"] ],
|
|
enable => true,
|
|
}
|
|
}
|