Added logic to select the right DB schema file to load on RHEL/CentOS.

This commit is contained in:
Nick Chappell 2014-06-30 21:44:43 -07:00
parent 51a408af92
commit c6689a061f

View file

@ -28,6 +28,12 @@ class icinga2::params {
$package_provider = 'yum'
#Icinga 2 server package
$icinga2_server_package = 'icinga2'
#Pick set the right path where we can find the DB schema
case $server_db_type {
'mysql': { $server_db_schema_path = '/usr/share/doc/icinga2-ido-mysql-2.0.0/schema/mysql.sql' }
'pgsql': { $server_db_schema_path = '/usr/share/doc/icinga2-ido-pgsql-2.0.0/schema/pgsql.sql' }
}
}
#Debian/Ubuntu systems: