Commit 98eb1415 authored by fsalum's avatar fsalum
Browse files

fixing the require for both rhel and debian family

parent 708f818c
......@@ -84,6 +84,7 @@ define newrelic::php (
package { $newrelic_php_package:
ensure => $newrelic_php_package_ensure,
require => Class['newrelic::params'],
}
service { $newrelic_php_service:
......
......@@ -44,9 +44,9 @@ define newrelic::server (
$newrelic_service_name = $newrelic::params::newrelic_service_name
package { $newrelic_package_name:
ensure => $newrelic_package_ensure,
notify => Service[$newrelic_service_name],
require => Apt::Source['newrelic'],
ensure => $newrelic_package_ensure,
notify => Service[$newrelic_service_name],
require => Class['newrelic::params'],
}
service { $newrelic_service_name:
......@@ -54,7 +54,7 @@ define newrelic::server (
enable => true,
hasrestart => true,
hasstatus => true,
require => [ Exec[$newrelic_license_key], Package[$newrelic_package_name] ],
require => Exec[$newrelic_license_key],
}
exec { $newrelic_license_key:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment