[chef] Manage role-node association with scm?


Chronological Thread 
  • From: Tommaso Visconti < >
  • To:
  • Subject: [chef] Manage role-node association with scm?
  • Date: Thu, 08 Aug 2013 15:33:28 +0200

Hi all,
I'm a newbie with Chef, just started the last week, hope this is a smart question :)

I really like the possibility to manage the infrastructure using GIT, but I'm not understanding how to save the relationships between nodes and their roles in the chef-repo. What I'm doing now to add a role to a node is:

knife node run_list add <mynode> "role[cool_role]"

but this doesn't leave any trace in the chef-repo files, so it's impossible to save the associations in the SCM.
Is it possible to use ruby/json files to manage the nodes' roles? Or the only ways are knife and the chef-server web interface?

I tried to solve the problem reading the docs, but they are really a lot and I didn't find anything useful for this :|

Thanks!



Archive powered by MHonArc 2.6.16.

§