Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I inherited our company's Chef repository and I'm learning as I go. One issue that I've found a workaround for (but would like to understand or avoid if possible) is that attribute defaults specified in cookbooks are not available to nodes in my development environment. So to get these things that work fine in production to run in development, I have to make a change like so:

Works in production

default[:webservices][:debug] = "False"
default[:webservices][:template_debug] = "False"

Works in development

set[:webservices][:debug] = "False"
set[:webservices][:template_debug] = "False"

Going forward, I want to be able to specify a default and then override it for development, say to use development database settings, etc. with the same templates. Why isn't the default accessor working in development? I can provide more configuration details upon request.

share|improve this question
    
By "development environment" do you mean a Chef environment or a separate system you are using for development? –  Tim Potter Sep 19 '12 at 22:23
    
My bad. I mean a Chef environment called "development." –  sidewaysmilk Sep 19 '12 at 22:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.