-
Notifications
You must be signed in to change notification settings - Fork 21
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
Interface configuration #88
base: master
Are you sure you want to change the base?
Conversation
The docs read that the format should be Example: $interfaces = {
'ignore' => 'ipv6',
'listen' => '127.0.0.1',
} |
@@ -40,6 +40,7 @@ | |||
$disable_monitor = true, | |||
$sysconfig_path = 'USE_DEFAULTS', | |||
$sysconfig_options = 'USE_DEFAULTS', | |||
$interface = 'UNSET', |
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.
instead of UNSET we could use {}
What do you think? We also need spec tests, but I'm happy to help with those. |
Yes I know, In hiera I have configured it the following way,
And I don't really understand your example. Should It look like this then?
Seems just more of an annoyance and less readable. Or am I missing something? |
Looping through array, since if we dont stuff breaks...
|
||
interface | ||
--------------- | ||
Adds 'interface' line - interface configuration, see man ntp_misc |
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.
Please not that this must be an array of strings and give an example.
@@ -32,7 +32,7 @@ filegen clockstats file clockstats type day enable | |||
# pool: <http://www.pool.ntp.org/join.html> | |||
|
|||
<% @servers.each do |server| -%> | |||
server <%= server %><% if @server_options != 'UNSET' %> <%= @server_options %><% end %> | |||
server <%= server %><% if @server_options != 'UNSET' %> <% @server_options.each do |option| -%><%= option %><% end -%><% end %> |
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.
This is separate from adding the interface parameter and should be in its own pull request.
I noticed you are using your master branch instead of creating a topic branch. Suggest creating a topic branch so this can be separate from the interface pull request (PR).
Hi!
I have added some code to be able to use the interface directive in the ntp.conf.
Does it look Ok to you?
Best regards,
Simon