Srini K
Srini K

Reputation: 3365

How can I bootstrap run list with a role for a dynamically created chef node (not using knife)?

How can I bootstrap the run list of a node in chef server with one of the predefined roles, when the node is created dynamically (not using knife)?

Cloudify installs the node (an ubuntu image with chef client) and starts chef client, which registers with chef server. A new node and client is created in chef server, but the node's run list is empty. I want to populate the run list with mongo role so that MongoDB is installed on the node and configured. If I manually create the node in the chef server with mongo role in run list before running the cloudify process, then mongo is installed and everything is fine. However, this is not an option though because of autoscaling and other requirements. So how can we automate creating a node in chef server with role in run list?

Upvotes: 3

Views: 1958

Answers (1)

Ilya Sher
Ilya Sher

Reputation: 601

Role is a specific case of a runlist. See docs for example (search for role[)

Upvotes: 0

Related Questions