Skip to content

Commit

Permalink
Add chronyd
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Jul 15, 2024
1 parent 3a862b1 commit d466315
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
default['redborder']['services']['snortd'] = true
default['redborder']['services']['barnyard2'] = true
default['redborder']['services']['clamav'] = true
default['redborder']['services']['chrony'] = true
default['redborder']['services']['redborder-exporter'] = true

default['redborder']['systemdservices']['chef-client'] = ['chef-client']
Expand All @@ -72,3 +73,4 @@
default['redborder']['systemdservices']['snortd'] = ['snortd']
default['redborder']['systemdservices']['barnyard2'] = ['barnyard2']
default['redborder']['systemdservices']['redborder-exporter'] = ['rb-exporter']
default['redborder']['systemdservices']['chrony'] = ['chrony']
1 change: 1 addition & 0 deletions resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
depends 'cron'
depends 'rbcgroup'
depends 'rb-clamav'
depends 'rb-chrony'
depends 'rb-exporter'
9 changes: 9 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,15 @@
action(ips_services['clamav'] ? :add : :remove)
end

rb_chrony_config 'Configure Chrony' do
ntp_servers node['redborder']['ntp']['servers']
if ips_services['chrony']
action :add
else
action :remove
end
end

execute 'force_chef_client_wakeup' do
command '/usr/lib/redborder/bin/rb_wakeup_chef'
ignore_failure true
Expand Down

0 comments on commit d466315

Please sign in to comment.