I am using hosted chef environment in windows.I need to update the attribute file during each chef client run. Currently ,I update it manually and upload the cookbook in chef server.Is there any way in which I can directly edit the attribute file in chef server without having to upload the entire cookbook.

Thanks for your help

  • why would you want to edit the attributes.rb file after every run? If you give a little more detail, we can probably help you accomplish the same thing in a much cleaner way. – Tejay Cardon Jan 16 '15 at 15:19

knife node edit host.example.com

allows you to modify the normal attribute hierarchy of that node. The same can be done (IIRC also in hosted Chef) in the web interface.

However, this is very bad practice - you later never know, who set which attributes.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.