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.

31 satır
516B

  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. case os[:family]
  17. when 'debian'
  18. test_debian
  19. when 'redhat', 'fedora'
  20. test_redhat
  21. when 'suse'
  22. test_suse
  23. end
  24. end