DevOps Classroom Series – 04/Nov/2021

Ohai contd

  • All the details collected from ohai are loaded into node object (hash)
  • So the access the platform the syntax which we would use would be node['platform']
  • Now make changes in the kitchen.yaml to accomodate centos7 and execute kitchen list
  • Now create the instance using kitchen create
  • Refer Here for the changes added with kitchen and recipe changes
  • We can converge a particular instance by using its name as shown below
  • Now login into centos instance and try ohai
  • Now using node[‘platform’] == centos we had made changes in the recipe to accomodate for the centos.
  • Refer Here for the changes and then we had converged the centos using kitchen
  • Now lets verify by accessing urls
  • It would be a good improvement if the seperate varaibles from execution
  • Applied the above concept and now the changes are made Refer Here for the changes
  • NOw apply kitchen converge

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%