Skip to content

Commit

Permalink
Fixing logfile parameter.
Browse files Browse the repository at this point in the history
Removing equal sign as delimiter in ntp.conf for the logfile parameter.
Adding documentation of logfile parameter in README.
  • Loading branch information
jamesdobson committed Dec 31, 2014
1 parent 15bd628 commit 3a4342e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ Which of the keys is the request key.

Array of trusted keys.

#### `logfile`

Absolute path of the alternate log file. If unspecified, ntp uses syslog by default.

####`package_ensure`

Sets the ntp package to be installed. Can be set to 'present', 'latest', or a specific version.
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/ntp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

it 'should contain logfile setting' do
should contain_file('/etc/ntp.conf').with({
'content' => /^logfile = \/var\/log\/foobar\.log\n/,
'content' => /^logfile \/var\/log\/foobar\.log\n/,
})
end
end
Expand All @@ -233,7 +233,7 @@

it 'should not contain a logfile line' do
should_not contain_file('/etc/ntp.conf').with({
'content' => /logfile =/,
'content' => /logfile /,
})
end
end
Expand Down
2 changes: 1 addition & 1 deletion templates/ntp.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ driftfile <%= @driftfile %>

<% unless @logfile.nil? -%>
# Logfile
logfile = <%= @logfile %>
logfile <%= @logfile %>
<% end -%>

<% if @keys_enable -%>
Expand Down

0 comments on commit 3a4342e

Please sign in to comment.