-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add parameters option for hosts #243
base: master
Are you sure you want to change the base?
Conversation
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.
It would be nice if there was a test for this.
Also looks like #241 but with some addressed comments.
@@ -1,10 +1,12 @@ | |||
# == Define: dhcp::host | |||
# | |||
# @param [Hash] parameters set different parameters like e.g. filename for the host |
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.
The type is redundant and will be read from the parameter
# @param [Hash] parameters set different parameters like e.g. filename for the host | |
# @param parameters set different parameters like e.g. filename for the host |
<% @parameters.keys.sort.each do |param| -%> | ||
<%= param %> <%= @parameters[param] %>; |
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.
Untested, but I think this also works:
<% @parameters.keys.sort.each do |param| -%> | |
<%= param %> <%= @parameters[param] %>; | |
<% @parameters.sort.each do |param, value| -%> | |
<%= param %> <%= value %>; |
… accepting ekohl suggestion, ommited the if statement
… accepting ekohl suggestion, ommited the if statement
Dear @ghost, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Pull Request (PR) description
A parameters option should be added to the host resource. There are some use-cases in which this can be very helpful if you want to overwrite global parameters for a single host. (for instance the filename parameter) This implementation is very flexible.
Thank you in advance!