Reputation: 1113
I am trying to organize my attributes files by directory with in the attributes directory. I would look like this:
attributes
-Production
-file1.rb
-file2.rb
-Stage
-file1.rb
-file2.rb
-Development
-file1.rb
-file2.rb
When putting the different attribute files in the directories, Chef doesnt pick them up. Is there a way to make Chef look in all directories?
Upvotes: 0
Views: 93
Reputation: 54211
This is not a thing, and even using multiple files might not do what you expect. Remember that all attribute files are always loaded. Segmenting them into multiple files is just for readability at best, and I don't recommend it. In fact if you're using Chef 13, we got rid of the directory entirely and you can just use mycookbooks/attributes.rb
.
Upvotes: 1