talamoig / icinga

icinga2 puppet module
0 stars 2 forks source link

icinga-web version hard-coded in webgui/params.pp #2

Open pelacables opened 9 years ago

pelacables commented 9 years ago

Hi,

the schema location is hard-coded in webgui/params.pp :

'RedHat' =>
{
  'mysql' => '/usr/share/doc/icinga-web-1.12.0/schema/mysql.sql',
  'pgsql' => '/usr/share/doc/icinga-web-1.12.0/schema/pgsql.sql'
},

The current version is 1.13, so the exec fails. As a work around in my case (RH 6.5) I changed it to:

'RedHat' =>
{
  'mysql' => '/usr/share/doc/icinga-web-1.*.0/schema/mysql.sql',
  'pgsql' => '/usr/share/doc/icinga-web-1.*.0/schema/pgsql.sql'
},

But I'm sure there is a better way for managing the version.

Cheers, Arnau