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

packages_spec.rb 380B

1234567891011121314151617181920
  1. # frozen_string_literal: true
  2. control 'apache package' do
  3. title 'should be installed'
  4. package_name =
  5. case platform[:family]
  6. when 'debian', 'suse'
  7. 'apache2'
  8. when 'redhat', 'fedora'
  9. 'httpd'
  10. # `linux` here is sufficient for `arch`
  11. when 'linux'
  12. 'apache'
  13. end
  14. describe package(package_name) do
  15. it { should be_installed }
  16. end
  17. end