Project

General

Profile

Feature #12451

Update icingaweb2 DB initialization code wrt. upstream changes

Added by intrigeri over 2 years ago. Updated 7 months ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Infrastructure
Target version:
-
Start date:
04/16/2017
Due date:
% Done:

0%

Feature Branch:
Type of work:
Sysadmin
Blueprint:
Starter:
Affected tool:

Description

I've upgraded the Puppet module and manifests/initialize.pp seems to now do stuff we used to do ourselves with puppet-tails:files/monitoring/icingaweb2/scripts/install_icingaweb2_database. Likely we can drop some of our custom code :)


Related issues

Related to Tails - Feature #16173: Upgrade the icingaweb2 Puppet module In Progress 11/29/2018

History

#1 Updated by intrigeri 10 months ago

  • Related to Feature #16173: Upgrade the icingaweb2 Puppet module added

#2 Updated by intrigeri 7 months ago

  • Assignee deleted (bertagaz)

(There's no reason why bertagaz has to do this work, so assigning to him was somewhat unfair: the improvement suggested here was not possible when he delivered our monitoring infra. Still, it would be nice to have :)

#3 Updated by intrigeri 7 months ago

There are a few possible ways to handle this:

  • mysql::db's sql parameter, once #15513 is done for ecours; but it needs to first concatenate the schema file with a template-generated custom one
  • use upstream's icingaweb2::initialize, as suggested initially here
  • Only create an empty database and let Icingaweb2 do the rest (https://bugs.debian.org/831532): we don't seem to manage our admin users with Puppet anyway, so if all our custom code is doing is creating a default "icingaadmin" user that we won't use, maybe it's not worth the hassle.

Also available in: Atom PDF