Commit 6a321660 authored by Felipe Salum's avatar Felipe Salum
Browse files

Merge pull request #19 from 3flex/patch-3

Remove unneeded exec
parents 8b4b66a8 0ab0dd85
......@@ -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