Hello there,
I am currently moving our Icinga 2 (version 2.12.4), which runs on a virtual machine, to a new docker environment. We have the director.
So I set up the docker containers, saved the configuration of the current Icinga instance and made a dump of the database. Then I tried to get it running.
During testing I tried several things:
- move all config files to the right destinations on the volumes and copy the database (didn’t work)
- import the whole database
- import only the director database
What worked best, but didn’t work out in the end, was the import of the director database. I tried the config baskets plus JSONs for hosts and services, but this didn’t work out either. If I only import the database of the director, everything seems to be there, but the hosts and services are nowhere to be found in Icinga. Just the director has them. Rolling out doesn’t help.
So my questions are:
What is the best way to migrate an Icinga instance with director and the config data to docker?
When I import just the director database…what do I have to clean up, so that the new instance is able to run (thinking about the tokens and the master settings which point to the old instance, etc.) and how to get the config to Icinga later?
Any help is appreciated!
Sel