Chef – 10– Knife Bootstrap a Node

 

#now we will bootstrap a node with knife

knife bootstrap 172.31.7.41 –ssh-user ubuntu –sudo –ssh-identity-file .chef/resource.pem –run-list ‘recipe[learn_chef_apache2]’ –node-name cnode1

#we successfully bootstraped a node then we checked with curl and we saw the same result “HELLO WORLD” 🙂

https://github.com/apocoder/devops/blob/master/chef/chapter_1/08_knifebootstraoanode.md

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s