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.

package_spec.rb 361B

12345678910111213141516171819202122
  1. control 'Php package' do
  2. title 'should be installed'
  3. pkg_name =
  4. case os[:family]
  5. when 'debian'
  6. case os[:name]
  7. when 'ubuntu'
  8. 'php'
  9. when 'debian'
  10. 'php7.0'
  11. end
  12. when 'redhat', 'fedora'
  13. 'php'
  14. when 'suse'
  15. 'php5'
  16. end
  17. describe package(pkg_name) do
  18. it { should be_installed }
  19. end
  20. end