Bootstrapping a chef client with roles

18-Feb, 2014

I am slowly playing around more and more with chef and the more I see of it the more I like. One of things that you can do is assign roles and recipes when a client is boostrapped. This means that its default configuration is achieved during bootstrapping. To do this run the following command:

knife bootstrap -r 'role[jndefault]'

Where the host is called “” and we are assigning the role “jndefault” to it.

comments powered by Disqus