Installation of IcingaWeb2 via the web cli instead of web frontend

Hello there,
I am wondering if it is possible to perform the last step of the IcingaWeb installation on the web cli instead of the web browser installation.
I am trying to fully automate the Icinga installation (icinga2, icingaweb2, postgresql, timescale, grafana) with a linux bash script.

Couldn’t find anything pointing to this in the documentation: Installation - Icinga Web 2


what you are looking for can be found in the advanced topic. Like this one for autmation: Advanced Topics - Icinga Web 2

Hi @stevie-sy,
thank you for this advice!
I followed the instructions. For some reason the link http://localhosth/icingaweb2/setup is still displaying the setup like shown in the first post.

The file structure of icingaweb2 is still the following although of executing the command from the instructions:

[root@mon-ma01 icingaweb2]# icingacli setup config directory --group icingaweb2
Successfully created configuration directory /etc/icingaweb2

├── modules
│ ├── setup
│ │ └── config.ini
│ └── translation
│ └── config.ini
└── setup.token

But according to your link it should be:

Setup is a own modul. So if this shouldn’t be active any moore. You have to disable it:
CLI command:
icingacli module enable <modulname>
or in the UI:
Configuration → Module

Yes, that is what this CLI command is doing described under point 8: creating the directory incl. files. So any problems/questions for this step?

1 Like

Hi @stevie-sy
Although of disabling the module setup, it is still available through http://…/icingaweb2/setup

Strangely trying to remove the module with this command leads to an error:

[root@ma01 ~]# icingacli module remove setup
ERROR: Icinga\Exception\IcingaException in /usr/share/php/Icinga/Cli/Command.php:143 with message: Not implemented yet

icingacli module enable/disable <modulname>
not remove!

1 Like

It was disabled also, but the setup page is still available?

hmm… than I’m out of ideas. In our installation the setup modul is disabled and the setup page is not available.