-
-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unknown directive "passenger_root" in /etc/nginx/nginx.conf #427
Comments
In your class declaration, can you add e.g. class { 'nginx':
package_source => 'passenger',
package_name => 'nginx-extras',
...
} |
On adding package name as you have suggested, I get below error: Skipping because of failed dependencies So, it do not able to find the ngin-extras package. I added below in the manifest to add the dependent package
But now, it give below error: Error: Duplicate declaration: Package[nginx-extras] is already declared in file /etc/puppetlabs/puppet/modules/thirdpillar/manifests/server.pp:7; cannot redeclare at /etc/puppetlabs/puppet/modules/nginx/manifests/package/redhat.pp:69 on node learn.localdomain |
Sorry I should have checked your OS. This module only automatically installs passenger on Debian family operating systems, so the You will have to manually install passenger for your OS and set the |
Closing. If this is still an issue and you're using Debian or Ubuntu then please reopen and we can look further into the problem. Thanks! |
Below is my manifest which install nginx with precompiled passenger.
=> manifest for nginx
class thirdpillar::server(
$site_url = "www.melbourne.com",
$site_path = "/var/www/melbourne/public"
) inherits ruby::params {
class { 'nginx':
package_source => 'passenger',
http_cfg_append => {
'passenger_root' => "/usr/lib/ruby/gems/1.8/gems/passenger-3.0.21",
},
require => Class['passenger'],
}
=> manifest for passenger
class thirdpillar::build_passenger(
$passenger_version = '3.0.21',
){
node default {
class {'passenger':
passenger_version => $passenger_version,
passenger_provider => 'gem',
passenger_package => 'passenger',
gem_path => "/usr/lib/ruby/gems/1.8/gems",
gem_binary_path => "/usr/lib/ruby/gems/1.8/gems/bin",
passenger_root => "/usr/lib/ruby/gems/1.8/gems/passenger-3.0.21",
}
}
}
When I apply the manifest for nginx, It get installed but fail due to below error.
Error: Could not start Service[nginx]: Execution of '/sbin/service nginx start' returned 1:
Error: /Stage[main]/Nginx::Service/Service[nginx]/ensure: change from stopped to running failed: Could not start Service[nginx]: Execution of '/sbin/service nginx start' returned 1
when I try to execute the failed command manually to see what is the problem, I get below:
]# /sbin/service nginx start
Starting nginx: nginx: [emerg] unknown directive "passenger_root" in /etc/nginx/nginx.conf:35
[FAILED]
On viewing the nginx.conf, I find the passenger_root directive under http header
passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-3.0.21
Why nginx is not recognizing passenger_root directive....what Iam missing here..what I need to do ???
The text was updated successfully, but these errors were encountered: