-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
Making php::fpm a single installation entry point.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class php::fpm::package( | ||
$package_name = $php::fpm::params::package, | ||
$package_ensure = $php::fpm::params::ensure, | ||
$package_provider = $php::fpm::params::provider | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
schkovich
Author
Owner
|
||
$package_name, | ||
$package_ensure, | ||
$package_provider | ||
) { | ||
|
||
package { $package_name: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
class php::fpm::service( | ||
$service_name = $php::fpm::params::service_name, | ||
$ensure = $php::fpm::params::service_ensure, | ||
$enable = $php::fpm::params::service_enable, | ||
$has_status = $php::fpm::params::service_has_status | ||
) inherits php::fpm::params { | ||
$service_name, | ||
$ensure, | ||
$enable, | ||
$has_status, | ||
) { | ||
|
||
service { $service_name: | ||
ensure => $ensure, | ||
enable => $enable, | ||
restart => "service ${service_name} reload", | ||
hasstatus => $has_status, | ||
require => Package[$package] | ||
hasstatus => $has_status | ||
} | ||
|
||
} |
This breaks the module for me