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
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 7.32.1
Ruby:
Distribution: Debian/Ubuntu
Module version: 6.0.0
How to reproduce (e.g Puppet code you use)
class { 'icinga2': manage_repos => true, }
What are you seeing
When the module tries to install the apt keyring, puppet aborts because the user/group 'nagios' does not exist on the system.
What behaviour did you expect instead
It should install the apt keyring.
Output log
Info: Using environment 'test_icinga2'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Notice: Requesting catalog from
Notice: Catalog compiled by
Info: Caching catalog for
Info: Applying configuration version 'cd50cad411cf3d06febb26c9c7c91d8c206a9484'
Error: Could not find user nagios
Error: /Stage[main]/Icinga::Repos::Apt/Apt::Keyring[icinga.key]/File[/etc/apt/keyrings]/owner: change from 'root' to 'nagios' failed: Could not find user nagios
Error: Could not find group nagios
Any additional information you'd like to impart
I am not a puppet expert but I think the problem is the following:
The module sets the default owner/group for all file resources1. These defaults are apparently used later when configuring the apt keyring directory2. Perhaps it will be enough if this line is executed a little earlier3
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
class { 'icinga2': manage_repos => true, }
What are you seeing
When the module tries to install the apt keyring, puppet aborts because the user/group 'nagios' does not exist on the system.
What behaviour did you expect instead
It should install the apt keyring.
Output log
Any additional information you'd like to impart
I am not a puppet expert but I think the problem is the following:
The module sets the default owner/group for all file resources1. These defaults are apparently used later when configuring the apt keyring directory2. Perhaps it will be enough if this line is executed a little earlier3
Footnotes
https://github.com/voxpupuli/puppet-icinga2/blob/826aad1282a2c039342e274fbc26f9ca1d31d8f0/manifests/config.pp#L26 ↩
https://github.com/puppetlabs/puppetlabs-apt/blob/9b6aa36322710bb56b38e6b49b7d8a2d7faa22e8/manifests/keyring.pp#L43 ↩
https://github.com/voxpupuli/puppet-icinga2/blob/826aad1282a2c039342e274fbc26f9ca1d31d8f0/manifests/init.pp#L155-L157 ↩
The text was updated successfully, but these errors were encountered: