Commit 0ab0dd85 authored by Matthew Haughton's avatar Matthew Haughton
Browse files

Remove unneeded exec

As the license key is set in the nrsysmond.cfg template there's no need to
use an extra command to set it - the file is already generated before the service
is notified.
parent 8b4b66a8
......@@ -94,17 +94,6 @@ define newrelic::server (
enable => $newrelic_service_enable,
hasrestart => true,
hasstatus => true,
require => Exec[$newrelic_license_key],
exec { $newrelic_license_key:
path => '/bin:/usr/bin',
command => "/usr/sbin/nrsysmond-config --set license_key=${newrelic_license_key}",
user => 'root',
group => 'root',
unless => "cat /etc/newrelic/nrsysmond.cfg | grep ${newrelic_license_key}",
require => Package[$newrelic_package_name],
notify => Service[$newrelic_service_name],
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