DevOps Classroom Series – 04/Nov/2021

Ohai contd

  • All the details collected from ohai are loaded into node object (hash) Preview
  • 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 Preview
  • Now create the instance using kitchen create Preview
  • Refer Here for the changes added with kitchen and recipe changes Preview
  • We can converge a particular instance by using its name as shown below Preview
  • Now login into centos instance and try ohai Preview
  • 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 Preview
  • Now lets verify by accessing urls Preview Preview
  • 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 Reply

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

About learningthoughtsadmin