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 379B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. control 'apache mod_security package' do
  3. title 'should be installed'
  4. package_name =
  5. case platform[:family]
  6. when 'debian'
  7. 'libapache2-mod-security2'
  8. when 'redhat', 'fedora'
  9. 'mod_security'
  10. when 'suse'
  11. 'apache2-mod_security2'
  12. end
  13. describe package(package_name) do
  14. it { should be_installed }
  15. end
  16. end