I'm using Puppet in my environment to automatically configure the Linux servers.
There are many puppet modules configured and it works like a charm.
There's a motivation to allow a specific user (nagios) to read some specific logs.
Nagios and NRPE are being installed by the relevant puppet module and that module also creates the nagios user.
Once the nagios user is created, I want puppet to add it to a group called
But then when I come to think of it, I don't know by which order puppet loads the modules, so if it will try to add the
nagios user to the
users group before the nagios module have been loaded and the nagios user has been created then there will be an error as the user doesn't exist yet.
My question, is how can I enforce the Nagios module to be loaded first for example?
Thanks in advance