-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fixes #30078 - add parameter to accept a hostgroup config hash #863
Conversation
Would you mind squashing the commits? Also use |
b114dba
to
c522a74
Compare
I want to know how can I use the parameter with multiple hashes. For e.g, I want to add the same parameters as described in the spec test. Can you help with it?
|
kafo is the engine behind exposing parameters. In particular https://github.com/theforeman/kafo#hash-arguments is relevant. However, I don't know how it would deal with a hash inside a hash. I think there's even a bug in that Another solution is to put it in custom-hiera.yaml. This is not really what we want (answers for exposed classes should be preferred), but if it's the only way, it has to be that way. Then you would use (from the top of my head): foreman::plugin::default_hostgroup::hostgroups:
key:
nested_key: value |
Thanks @ekohl for clarifying the use of the parameter. Use of |
At this moment we're in the Foreman 2.2 development cycle. If it's merged in the next few weeks, that'll be the version to contain it. |
@ekohl AFAIK, the changes are complete. Please let me know if you want me to make an update? |
@ekohl I have incorporated your suggestions followed by squash and rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall 👍, just a last small whitespace note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now the tests are still running, but other than that this can be merged.
Lint test failed, I pushed an update to resolve the issue. |
Thanks! |
No description provided.