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