-
Notifications
You must be signed in to change notification settings - Fork 16
Move config device into manifest #14
base: master
Are you sure you want to change the base?
Move config device into manifest #14
Conversation
261a49d to
1af3b72
Compare
|
Rebased and fixed some aligment. |
|
If I read your changes correctly, then this will remove the user's ability to specify arbitrary options for a device because you are setting a fixed set of parameters through Augeas but not using the options parameter anymore. Based on this, I can't merge this as it might break the module for users who have specified the options parameter. I'm not sure why you moved the Augeas changes into the manifest? The commit I added just now should take care of the devices per folder issue. The other changes concern proper formatting of the XML file and the ability to manage an arbitrary number of addresses per device, if I read them correctly. If you add those on top of my newest commit, I'll be happy to merge them. In any case, thank you for the contributions! |
|
Thanks for reviewing my PR. $optionYes, this PR will remove user ability to specify I understand why you can't merge it and I agree with you. So my idea would be to add deprecation warning about using option parameter and bring it back, to provide backward compatibility. Moving augeas to puppet manifestIn my opinion, generating YAML file from template, parsing it using puppet and assigning to variable, it'a bit hacky way to do it, and also, it's not very clear, when reading code. That's why I wanted to move it directly to manifest. Other changesYou understand rest of the changes correctly, It's some crazy logic to proper format XML file and managing device addresses. I will put it on top of your commits soon. |
b6513dd to
486bcf1
Compare
|
OK, I rebased to master and updated my code. I generalized I also updated device, to be able to specify multiple addresses as array or single address as string. |
|
There appear to be some problems with this merge as indicated by the failing check. I've created a dev branch, could you re-create the pull request for that branch? Then I can merge it and take a look. There are still some changes in your PR that I'm not happy with, e.g. the deprecation of the options array. There's no valid reason to get rid of it, even if in the end it's simply handled by an each loop and the new ::element defined type. But it's a convenient way of passing options quickly to a device configuration. |
|
Hi, yeah, the problem with check is because I always use |
This class is universal resource to add elements to XML tree with proper aligment. Currently, it does not support many depths.
486bcf1 to
520007e
Compare
|
Hi, what's the status on this? |
|
I am not using this module anymore, I just wrote my simple implementation, which I can't make public for now. I just ticked "Allow edits from maintainers.", so feel free to adapt it for whatever you need or just close it. For curious: I'm using datacat and single template to generate entire config file, which seems to be a good way to go. |
Part of #11 and #12. It's also a clean up, to make fixing #8 easier.