-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat: set owner and group for configs #647
Conversation
Not correctly. The resources are unmanaged owner/group and so puppet doesn't change the owner or group membership. That mean the icinga2 package installs the file icinga2.conf and puppet leave owner and group untouched. |
Ok thats weird then because I just tried to install it with the config from the example and it fails to start since the icinga2.conf has rw-r----- and is owned by root:root. Any idea why it is that way? |
You're using the official Icinga packages from packages.icinga.com? What version of Icinga? SELinux enabled or disabled? |
I set |
Strange. On my Centos7 Bento box (vagrant): $ puppet apply examples/init_repos.pp |
Do you manage other modules on this host. A code snippet at a profile class or other module like File { will have this effect. When managing owner, group and permissions are a idea, maybe. But the problem is, we support Windows. |
Please send me the output of 'rpm -qV icinga2' executed after the puppet run. |
The object class is design as a helper class. We don't wanna change that. |
Ooops didnt want to push it into this PR :) I create GraphiteWriter Objects with it and it was easier to just use the icinga2::object class |
To configure a second GraphiteWriter Object please use icinga2::config:.fragment and keep in mind the quoting like '".."' for strings or ""..."" for string with puppet variables. |
refs #648 |
Currently when you do an installation you get the following error because it falls back to root: