You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a wrapper cookbook around newrelic cookbook.
def install_newrelic_infrastructure_service_windows
windows_package 'newrelic-infra' do
source "https://download.newrelic.com/infrastructure_agent/windows/newrelic-infra.#{new_resource.windows_version}.msi"
installer_type :msi
version new_resource.windows_version
action new_resource.action
checksum new_resource.windows_checksum
end
# lay down newrelic-infra agent config
template 'C:\Program Files\New Relic\newrelic-infra\newrelic-infra.yml' do
cookbook new_resource.template_cookbook
source new_resource.template_source
variables(
:resource => new_resource
)
sensitive true
notifies :restart, 'service[newrelic-infra]', :delayed
end
# setup newrelic-infra service
service 'newrelic-infra' do
action new_resource.service_actions
end
end
It would be helpful if the source attribute can be overwritten through new_resource instead of just the version number.
The text was updated successfully, but these errors were encountered:
I am writing a wrapper cookbook around newrelic cookbook.
It would be helpful if the
source
attribute can be overwritten throughnew_resource
instead of just the version number.The text was updated successfully, but these errors were encountered: