Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added option for more verbose logging configuration (logconfig =all)

Signed-off-by: ericpaliotta <ericpaliotta217@gmail.com>
  • Loading branch information
ericpaliotta committed Jun 19, 2024
1 parent c332a3b commit 01e0e2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
default['ntp']['statsdir'] = '/var/log/ntpstats/'
default['ntp']['conf_owner'] = 'root'
default['ntp']['conf_group'] = 'root'
default['ntp']['logconfig_all'] = false

if platform?('debian') && node['platform_version'].to_i >= 12
default['ntp']['var_owner'] = 'ntpsec'
Expand Down
4 changes: 4 additions & 0 deletions templates/ntp.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ interface listen 127.0.0.1
<% end -%>
<% end -%>
<% if node['ntp']['logconfig_all'] -%>
logconfig =all
<% end -%>
<% if node['ntp']['monitor'] -%>
enable monitor
<% else -%>
Expand Down

0 comments on commit 01e0e2f

Please sign in to comment.