Skip to content

Commit

Permalink
Add chronyd cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Jul 15, 2024
1 parent 4a64c6d commit 56ef242
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 @@ -58,6 +58,7 @@
default['redborder']['services']['k2http'] = true
default['redborder']['services']['redborder-exporter'] = true
default['redborder']['services']['clamav'] = true
default['redborder']['services']['chrony'] = true

default['redborder']['systemdservices']['chef-client'] = ['chef-client']
default['redborder']['systemdservices']['kafka'] = ['kafka']
Expand All @@ -75,3 +76,4 @@
default['redborder']['systemdservices']['radiusd'] = ['radiusd']
default['redborder']['systemdservices']['k2http'] = ['k2http']
default['redborder']['systemdservices']['redborder-exporter'] = ['rb-exporter']
default['redborder']['systemdservices']['chrony'] = ['chronyd']
1 change: 1 addition & 0 deletions resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
depends 'k2http'
depends 'rbcgroup'
depends 'rb-clamav'
depends 'rb-chrony'
9 changes: 9 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,15 @@
action(proxy_services['clamav'] ? :add : :remove)
end

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

# MOTD
manager = `grep 'cloud_address' /etc/redborder/rb_init_conf.yml | cut -d' ' -f2`

Expand Down

0 comments on commit 56ef242

Please sign in to comment.