diff --git a/manifests/params.pp b/manifests/params.pp index ee9333b..f9e2810 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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: