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.
|
- # frozen_string_literal: true
-
- control 'Php service' do
- title 'should be running and enabled'
-
- def test_debian
- describe service('php5.6-fpm') do
- it { should be_enabled }
- it { should be_running }
- end
-
- describe service('php7.3-fpm') do
- it { should be_enabled }
- it { should be_running }
- end
- end
-
- def test_redhat; end
-
- def test_suse; end
-
- def test_bsd; end
-
- case os[:family]
- when 'debian'
- test_debian
- when 'redhat', 'fedora'
- test_redhat
- when 'suse'
- test_suse
- when 'bsd'
- test_bsd
- end
- end
|