Skip to content

Commit

Permalink
Merge pull request #39 from redBorder/feature/18019_add_chronyd_cookbook
Browse files Browse the repository at this point in the history
Add chronyd cookbook
  • Loading branch information
nilsver authored Aug 27, 2024
2 parents 4a64c6d + 49a3825 commit 1e3bb37
Show file tree
Hide file tree
Showing 3 changed files with 11 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'
8 changes: 8 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@
action(proxy_services['clamav'] ? :add : :remove)
end

rb_chrony_config 'Configure Chrony' do
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 1e3bb37

Please sign in to comment.