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

29 lines
684B

  1. # frozen_string_literal: true
  2. control 'Nginx package' do
  3. title 'should be installed'
  4. describe package('nginx') do
  5. it { should be_installed }
  6. end
  7. end
  8. control 'Passenger packages' do
  9. title 'should be installed'
  10. # Override by OS Family
  11. passenger_mod_pkg = case platform[:family]
  12. when 'redhat', 'centos', 'fedora'
  13. 'nginx-mod-http-passenger'
  14. when 'debian', 'ubuntu'
  15. 'libnginx-mod-http-passenger'
  16. end
  17. describe package('passenger') do
  18. it { should be_installed }
  19. end
  20. describe package(passenger_mod_pkg) do
  21. it { should be_installed }
  22. end
  23. end