Tags in password store matching hosts

1 votes

We have different passwords and settings per environment. We decided to create a site per environment and add this passwords/settings to ~/etc/nagios/resource.cfg

For example on test
$USER44$=10.17.2.158
on prod
$USER44$=10.17.24.233
The script is then
check_xx.sh -H $HOSTNAME$ -p 44300 -d $USER44$

The objective was to use just one rule with te same parameter and not to rewrite every rule.
From our point of view it would be better to enhance the password store with tags reflecting the environment. Always of course with the idea in mind to use just one rule for all environments.

Would it be possible to enhance the password store with tags to replace resource.cfg?

Under consideration Setup Suggested by: Markus Upvoted: 10 Jul, '25 Comments: 2

Comments: 2
OldestNewestMost likesFewest likes