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 line
487B

  1. control 'Php service' do
  2. title 'should be running and enabled'
  3. def test_debian
  4. describe service('php5.6-fpm') do
  5. it { should be_enabled }
  6. it { should be_running }
  7. end
  8. describe service('php7.3-fpm') do
  9. it { should be_enabled }
  10. it { should be_running }
  11. end
  12. end
  13. def test_redhat
  14. end
  15. def test_suse
  16. 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. end
  25. end