chef / chef-server

Chef Infra Server is a hub for configuration data; storing cookbooks, node policies and metadata of managed nodes.
https://www.chef.io/chef/
Apache License 2.0
291 stars 210 forks source link

lb_internal['enable'] in /etc/opscode/chef-server.rb doesn't take effect #593

Open jessehu opened 9 years ago

jessehu commented 9 years ago

Found in chef-server-core-12.2.0-1.el6.x86_64.

= Root cause =

The following code replace lb_internal with lb-internal, but lb_internal is used in the private-chef cookbook.

https://github.com/chef/chef-server/blob/master/omnibus/files/private-chef-cookbooks/private-chef/libraries/private_chef.rb#L227

rkey = if key =~ /^oc_/ || key == "redis_lb"
                 key # leave oc_* keys as is
               else
                 key.gsub('_', '-')
               end
jessehu commented 9 years ago

This workaround fixed the issue for me.

sed -i 's/key == "redis_lb"/& || key == "lb_internal"/' /opt/opscode/embedded/cookbooks/private-chef/libraries/private_chef.rb