Added logic to select the right DB schema file to load on Debian/Ubuntu.
This commit is contained in:
parent
ebab78476d
commit
9a71775038
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,11 @@ class icinga2::params {
|
||||||
#Icinga 2 server package
|
#Icinga 2 server package
|
||||||
$icinga2_server_package = 'icinga2'
|
$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' }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Fail if we're on any other OS:
|
#Fail if we're on any other OS:
|
||||||
|
|
Loading…
Reference in a new issue