Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

[dev.icinga.com #10089] Purge unmanaged object files not working correctly #333

Open
icinga-migration opened this issue Sep 3, 2015 · 0 comments
Labels

Comments

@icinga-migration
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant