You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.
Created by nicolasbigler on 2015-09-03 21:25:33 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2015-09-03 21:25:33 +00:00 (in Redmine)
The feature to purge unmanaged object files is not working correctly on the current master branch.
The issue is that the recurse, purge and force attributes are only set on the file object for /etc/icinga2/objects/. Because the subfolders are also file objects in puppet, the values set in the parent object file will not be inherited to the subfolders.
One approach to solve this issue would be to set the attributes on every subfolder object. But this will create more redundancy (the class icinga2::server::config already has a lot of redundancy).
A second approach would be to define two hashes. One with the default values containing the ensure, owner, group, mode, recurse, purge and force attribute and a second hash containing the paths for each object. Than the objects are created using create_resources.
I would gladly fix this issue, but would like to discuss it first on how to do it.
The text was updated successfully, but these errors were encountered:
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10089
Created by nicolasbigler on 2015-09-03 21:25:33 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2015-09-03 21:25:33 +00:00 (in Redmine)
The feature to purge unmanaged object files is not working correctly on the current master branch.
The issue is that the recurse, purge and force attributes are only set on the file object for /etc/icinga2/objects/. Because the subfolders are also file objects in puppet, the values set in the parent object file will not be inherited to the subfolders.
One approach to solve this issue would be to set the attributes on every subfolder object. But this will create more redundancy (the class icinga2::server::config already has a lot of redundancy).
A second approach would be to define two hashes. One with the default values containing the ensure, owner, group, mode, recurse, purge and force attribute and a second hash containing the paths for each object. Than the objects are created using create_resources.
I would gladly fix this issue, but would like to discuss it first on how to do it.
The text was updated successfully, but these errors were encountered: