Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icinga2 custom config dir (not /etc/...) #543

Closed
mamiral opened this issue May 13, 2019 · 6 comments
Closed

Icinga2 custom config dir (not /etc/...) #543

mamiral opened this issue May 13, 2019 · 6 comments

Comments

@mamiral
Copy link

mamiral commented May 13, 2019

Hi,
i have my custom built icinga2 rpm (for reasons beyond my paygrade), which gets installed into /home/myuser/myusers-monitoring-system. All configs, certs and everything is under this directory (basically i'm setting CMAKE_INSTALL_SYSCONFDIR when building). Is there a way to tell the puppet-icinga2 module that sysconfdir is not /etc but in /home/myuser/...?

And thanks for this puppet module!

br
mm

@mamiral
Copy link
Author

mamiral commented May 13, 2019

Ok, nvm, i think I've found it in the globals.pp. Just need to figure out where to set the $conf_dir variable.

@lbetz
Copy link
Contributor

lbetz commented May 13, 2019

Correct, we split this. Not everyone should do that... and we won't support that.

@mamiral
Copy link
Author

mamiral commented May 13, 2019

Is there a way i can add into data/ directory? So, i could have my .yaml for our linux distro. Think this would be the best way. Can't find where it's selected which .yaml to use for global cofig.

tnx

@lbetz
Copy link
Contributor

lbetz commented May 13, 2019

Depends on your hierarchy. All key has to be like

icinga2::globals::conf_dir: /etc/icinga2

see data/*.yaml of the module itself.

@mamiral
Copy link
Author

mamiral commented May 14, 2019

Hi,
yes, I'm editing data/Linux-kernel.yaml according to my setup. Think it's the most easy way to do it.
Think we can close this one.

Thanks for the help and for the module also!

br
mm

@lbetz
Copy link
Contributor

lbetz commented May 14, 2019

Thx for using the module and for yout feedback.

@lbetz lbetz closed this as completed May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants