Closed deepak-kosaraju closed 7 years ago
Any update (or) help on this is greatly appreciated? How are others handling this situation of downloading agent by hitting new relic download URL every time when chef-client runs. At the same time is anyone able to override the https_download
variable to point to local repo instead of public and this is especially needed for environment which will not have direct access to internet.
I am going to submit PR to make https_download
URI as attribute, so we can override in wrapper cookbooks. As chef resource is idempotent I am closing this issue.
Currently this method inside the provider is running
remote_file
resource every time when chef-client is running, https://github.com/djoos-cookbooks/newrelic/blob/master/providers/agent_java.rb#L39-L74Why cannot we add
not_if
logic something similar to,I am trying to use
edit_resource
in Chef to editremote_file
resource in theagent_java.rb
provider hoping that during chef compile time its going to modify the resource withnot_if
condition, but I am getting following message..Chef:
v12.10
ERROR is: