Set these attributes:
default['nginx']['install_method'] = 'repo_passenger'
default['nginx']['repo_source'] = 'passenger'
default['nginx']['package_name'] = 'nginx-extras'
default['nginx']['passenger']['install_method'] = 'package'
Expected Result:
Nginx and Passenger to be installed.
Actual Result:
[2018-02-18T01:10:34+00:00] ERROR: resource template[/etc/nginx/conf.d/passenger.conf] is configured to notify resource service[nginx] with action reload, but service[nginx] cannot be found in the resource collection.
Cookbook version
8.0.1
Chef-client version
13.6.4
Platform Details
Ubuntu 16.04
Scenario:
Install Nginx with Passenger
Steps to Reproduce:
Set these attributes: default['nginx']['install_method'] = 'repo_passenger' default['nginx']['repo_source'] = 'passenger' default['nginx']['package_name'] = 'nginx-extras' default['nginx']['passenger']['install_method'] = 'package'
Expected Result:
Nginx and Passenger to be installed.
Actual Result:
[2018-02-18T01:10:34+00:00] ERROR: resource template[/etc/nginx/conf.d/passenger.conf] is configured to notify resource service[nginx] with action reload, but service[nginx] cannot be found in the resource collection.
Action
I have submitted a pull request that fixes this.