Added logic to select the right DB schema file to load on RHEL/CentOS.
This commit is contained in:
parent
51a408af92
commit
c6689a061f
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue