Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Dec 26, 2013

Right now, htpasswdfile on Redhat defaults to /etc/nagios/htpasswd.users. Instead, it should be /etc/nagios/passwd.

[root@puppet-dev httpd]# rpm -qf /etc/nagios/passwd 
nagios-3.5.1-1.el6.x86_64
[root@puppet-dev httpd]# rpm -q --filesbypkg nagios | grep passwd
nagios                    /etc/nagios/passwd

@alvagante
Copy link
Member

Fix welcomed.

On Redhat-like systems, the default location for the Nagios htpasswd
file is /etc/nagios/passwd, which was not being correctly set by
puppet-nagios.  Updated params.pp to use that new location.  Also
updated params.pp to use the osfamily fact for that test instead of
using operatingsystem.

Added appropriate tests.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant