djoos-cookbooks / newrelic

Development repository for the newrelic cookbook
https://supermarket.chef.io/cookbooks/newrelic
MIT License
143 stars 245 forks source link

Error executing action `enable` on resource 'newrelic_agent_infrastructure[Install]' is failing on debian7 #381

Open isukapalli opened 5 years ago

isukapalli commented 5 years ago

Please add support for debian7 and it's failing when enabling the service. systemd is not available on debian7.

https://github.com/djoos-cookbooks/newrelic/blob/master/providers/agent_infrastructure.rb#L67

 # Declared in /var/cache/chef/backup/cookbooks/newrelic/providers/agent_infrastructure.rb:59:in `install_newrelic_infrastructure_service_linux'

      service("newrelic-infra") do
        provider Chef::Provider::Service::Systemd
        action [:enable, :start]
        supports {:restart=>nil, :reload=>nil, :status=>nil}
        retries 0
        retry_delay 2
        default_guard_interpreter :default
        service_name "newrelic-infra"
        pattern "newrelic-infra"
        declared_type :service
        cookbook_name "ft_newrelic"
      end