Saltstack Official PHP 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.

35 lines
563B

  1. # frozen_string_literal: true
  2. control 'Php service' do
  3. title 'should be running and enabled'
  4. def test_debian
  5. describe service('php5.6-fpm') do
  6. it { should be_enabled }
  7. it { should be_running }
  8. end
  9. describe service('php7.3-fpm') do
  10. it { should be_enabled }
  11. it { should be_running }
  12. end
  13. end
  14. def test_redhat; end
  15. def test_suse; end
  16. def test_bsd; end
  17. case os[:family]
  18. when 'debian'
  19. test_debian
  20. when 'redhat', 'fedora'
  21. test_redhat
  22. when 'suse'
  23. test_suse
  24. when 'bsd'
  25. test_bsd
  26. end
  27. end