You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a new server instance this module will sometimes try to create file resources before the package the creates the parent directories has been installed.
What behaviour did you expect instead
The module should ensure that the package is installed before trying to create the directory structure that relies on it.
Output log
Info: Applying configuration version 'REDACTED'
Error: Cannot create /etc/icingaweb2/modules; parent directory /etc/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/etc/icingaweb2/modules]/ensure: change from 'absent' to 'directory' failed: Cannot create /etc/icingaweb2/modules; parent directory /etc/icingaweb2 does not exist
Error: Cannot create /etc/icingaweb2/enabledModules; parent directory /etc/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/etc/icingaweb2/enabledModules]/ensure: change from 'absent' to 'directory' failed: Cannot create /etc/icingaweb2/enabledModules; parent directory /etc/icingaweb2 does not exist
Error: Cannot create /etc/icingaweb2/navigation; parent directory /etc/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/etc/icingaweb2/navigation]/ensure: change from 'absent' to 'directory' failed: Cannot create /etc/icingaweb2/navigation; parent directory /etc/icingaweb2 does not exist
Error: Cannot create /etc/icingaweb2/preferences; parent directory /etc/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/etc/icingaweb2/preferences]/ensure: change from 'absent' to 'directory' failed: Cannot create /etc/icingaweb2/preferences; parent directory /etc/icingaweb2 does not exist
Error: Cannot create /etc/icingaweb2/dashboards; parent directory /etc/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/etc/icingaweb2/dashboards]/ensure: change from 'absent' to 'directory' failed: Cannot create /etc/icingaweb2/dashboards; parent directory /etc/icingaweb2 does not exist
Error: Cannot create /var/lib/icingaweb2/certs; parent directory /var/lib/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/var/lib/icingaweb2/certs]/ensure: change from 'absent' to 'directory' failed: Cannot create /var/lib/icingaweb2/certs; parent directory /var/lib/icingaweb2 does not exist
Error: Cannot create /usr/share/icingaweb2/etc; parent directory /usr/share/icingaweb2 does not exist
Error: /Stage[main]/Icingaweb2::Install/File[/usr/share/icingaweb2/etc]/ensure: change from 'absent' to 'directory' failed: Cannot create /usr/share/icingaweb2/etc; parent directory /usr/share/icingaweb2 does not exist
Notice: /Stage[main]/Icingaweb2::Install/Exec[link old db schema directory for compatibility]/returns: ln: failed to create symbolic link '/usr/share/icingaweb2/etc/schema': No such file or directory
Error: 'ln -s /usr/share/icingaweb2/schema /usr/share/icingaweb2/etc/schema' returned 1 instead of one of [0]
Error: /Stage[main]/Icingaweb2::Install/Exec[link old db schema directory for compatibility]/returns: change from 'notrun' to ['0'] failed: 'ln -s /usr/share/icingaweb2/schema /usr/share/icingaweb2/etc/schema' returned 1 instead of one of [0] (corrective)
Notice: /Stage[main]/Icingaweb2::Install/Package[icingaweb2]/ensure: created
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
On a new server, use this module to install Icinga Web 2.
For reference, this is the class declaration in our profile:
What are you seeing
On a new server instance this module will sometimes try to create file resources before the package the creates the parent directories has been installed.
What behaviour did you expect instead
The module should ensure that the package is installed before trying to create the directory structure that relies on it.
Output log
Any additional information you'd like to impart
I've got a what I think is fix in our fork, and will send a PR.
The text was updated successfully, but these errors were encountered: