Saltstack Official Chrony Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. # frozen_string_literal: true
  2. # Overide by OS
  3. service_name =
  4. case os[:name]
  5. when 'debian', 'ubuntu'
  6. 'chrony'
  7. else
  8. 'chronyd'
  9. end
  10. control 'Chron service' do
  11. impact 0.5
  12. title 'should be running and enabled'
  13. describe service(service_name) do
  14. it { should be_enabled }
  15. it { should be_running }
  16. end
  17. end