Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-factor the backend implementation
This is an attempt to get deep_merge's working, which are currently throwing exceptons in my testing environment. See [this issue](#65). I copied the yaml_backend from hiera v1.2.1, which is the one used in puppet v3.4.2, and injected the decryption mechanics. I also needed to copy the `parse_answer` method from the `::Hiera::Backend` and modified it to use the decryption aware version of `parse_string`. It's still an unfortunately long implementation considering that the only real difference between the eyaml backend and the yaml backend is the change to `::Heira::Backend.parse_string` that allows it to process encrypted values. I feel like this backend could be trimmed down so that it inherits from the yaml backend, but the issues with doing that are tricky enough to solve that I'm not going to pursue it at this point.
- Loading branch information
Showing
4 changed files
with
93 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters