Closed jefflage closed 7 years ago
Update: I switched to FROM centos:latest]
and I am not able to use the package
resource to install nginx. However, it's failing now during service :action enable
with the following:
* service[nginx]: Service is not known to chkconfig.
================================================================================
Error executing action `enable` on resource 'service[nginx]'
================================================================================
Chef::Exceptions::Service
-------------------------
service[nginx]: Service is not known to chkconfig.
Resource Declaration:
---------------------
# In /chefinstall/local-mode-cache/cache/cookbooks/nginx/recipes/package.rb
47: service 'nginx' do
48: supports :status => true, :restart => true, :reload => true
49: action :enable
50: end
51:
Compiled Resource:
------------------
# Declared in /chefinstall/local-mode-cache/cache/cookbooks/nginx/recipes/package.rb:47:in `from_file'
service("nginx") do
action [:enable]
supports {:status=>true, :restart=>true, :reload=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "nginx"
pattern "nginx"
declared_type :service
cookbook_name "nginx"
recipe_name "package"
end
Platform:
---------
x86_64-linux
[2016-09-29T16:56:08+00:00] INFO: Running queued delayed notifications before re-raising exception
I can't account for some of those issues - but you can see from our CI settings what platforms are tested on the 3.0 rewrite branch.
Thanks for opening this issue. Just today we merged the changes from the chef_nginx fork of this cookbook back to master here. It’s a pretty huge change set and includes over a year of active development that resulted in several major releases. I think there’s a very high chance that this issue has been resolved with that work and at this point I’m going to close this issue out. I’d encourage you to checkout the master branch and please open this issue back up if you’re still having the problem there.
Here’s the changes that were just merged in: https://github.com/chef-cookbooks/nginx/pull/435
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I have the following issue when attempting to install nginx via
chef-solo
into a docker container based on Centos7:My Dockerfile looks like:
The metadata.rb from my cookbook looks like:
And I am invoking chef-solo:
docker-compose run node-chef chef-solo -c /chefinstall/solo.rb -o recipe[nginx]
It's worth noting that the cookbook works just fine in chefdk/vagrant and also in our OpenStack/Scalr VMsThe full log is here: