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

24 line
393B

  1. # frozen_string_literal: true
  2. # Overide by Platform
  3. package_name =
  4. case platform[:family]
  5. # `linux` here is sufficient for `arch`
  6. when 'suse', 'linux'
  7. 'openssh'
  8. else
  9. 'openssh-server'
  10. end
  11. control 'openssh package' do
  12. title 'should be installed'
  13. only_if do
  14. platform.family != 'bsd'
  15. end
  16. describe package(package_name) do
  17. it { should be_installed }
  18. end
  19. end