Skip to content

Commit

Permalink
Merge pull request #729 from markt-de/freebsd_rc
Browse files Browse the repository at this point in the history
adopt new service name on FreeBSD
  • Loading branch information
smortex authored Jan 3, 2025
2 parents 9c3cfb3 + 571f866 commit 31056db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
$fpm_inifile = "${config_root}/php-fpm.ini"
$fpm_package_suffix = undef
$fpm_pool_dir = "${config_root}/php-fpm.d"
$fpm_service_name = 'php-fpm'
$fpm_service_name = 'php_fpm'
$fpm_user = 'www'
$fpm_group = 'www'
$embedded_package_suffix = 'embed'
Expand Down
4 changes: 3 additions & 1 deletion spec/classes/php_fpm_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
when '20.04', '11'
it { is_expected.to contain_service('php7.4-fpm').with_ensure('running') }
end
when 'Suse', 'FreeBSD'
when 'FreeBSD'
it { is_expected.to contain_service('php_fpm').with_ensure('running') }
when 'Suse'
it { is_expected.to contain_service('php-fpm').with_ensure('running') }
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/php_fpm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
it { is_expected.not_to contain_package('php56-') }
it { is_expected.not_to contain_package('php5-fpm') }
it { is_expected.not_to contain_package('php-fpm') }
it { is_expected.to contain_service('php-fpm').with_ensure('running') }
it { is_expected.to contain_service('php_fpm').with_ensure('running') }
else
it { is_expected.to contain_package('php-fpm').with_ensure('present') }
it { is_expected.to contain_service('php-fpm').with_ensure('running') }
Expand Down

0 comments on commit 31056db

Please sign in to comment.