Saltstack Official PHP Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

35 linhas
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