Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation (or solution) needed: Creating configuration for 1.3 using configuration management #230

Open
maggu opened this issue Nov 30, 2023 · 2 comments

Comments

@maggu
Copy link

maggu commented Nov 30, 2023

With 1.2 and previous versions it was easy enough to create configuration for this module from external data sources. I could just transform them into INI files, for example using icingaweb2::inisection in the excellent Puppet module for Icinga Web 2.

With 1.3 it's quite clear how to add configuration through the GUI. However, I don't quite understand how I'm supposed to do it if I instead want to feed the module configuration machinally in some way. Perhaps icingacli needs to be extended to accomplish this, using export and import options like for the Director module?

The documentation mentions that "Modules may also provide sources for SNI.". That sounds as if it might solve at least part of the problem, but I'm uncertain how to proceed with it and no specifics beyond this are included as far as I can see.

Could the documentation perhaps clarify these aspects a little better for 1.3?

@maggu
Copy link
Author

maggu commented Dec 1, 2023

Ah. Just realized that SNI maps are still in INI files. Only jobs are moved to DB. But still, need to handle those as well.

@yhabteab
Copy link
Member

yhabteab commented Dec 1, 2023

Hi, thanks for reporting!

Unfortunately, there is no easy way to do this at the moment, given that jobs and schedules are stored separately and the schedule config is a bit more complex and quite error-prone to do it manually. Therefore, I would suggest that you continue to create the jobs INI file as before and then perform the jobs migrate command. icingacli x509 migrate jobs --author=<name>

Please note that the migrate command does not update existing jobs, but only issues SQL INSERT commands and will fail if a given job name is used twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants