Beruflich Dokumente
Kultur Dokumente
Vess Natchev
vess@us.ibm.com
Power Cloud Team Leader
IBM Systems Lab Services
9.0
Why Use Chef ?
• Supported client available on AIX (https://www.chef.io/blog/2014/12/08/announcing-
chef-client-for-ibm-aix/)
– Available since December 8, 2014
• AIX cookbook with multiple resources available from IBM on official Chef
supermarket – https://supermarket.chef.io/cookbooks/aix
node[‘ipaddress’]
node[‘macaddress’]
node[‘os’]
node[‘os_version’]
node[‘platerform_version’]
node[‘virtualization’][‘lpar_name’]
node[‘virtualization][‘lpar_no’]
node[‘filesystem’][‘/dev/hd4’][‘kb_size’]
node[‘filesystem’][‘/dev/hd4’][‘kb_used]
node[‘filesystem’][‘/dev/hd4’][‘precent_used’]
node[‘filesystem’][‘/dev/hd4’][‘mount’]
node[‘filesystem’][‘/dev/hd4’][‘fs_type’]
# mkdir –p ~/chef/cookbooks/aix/providers
# mkdir –p ~/chef/cookbooks/aix/recipes
# mkdir –p ~/chef/cookbooks/aix/resources
2 resources ok !
Already ok ! Do nothing !
0 resources !
Removed !
1 resource ! Added!
• Check it works:
Recipe
Execution
• Image that has AIX, cloud-init, chef-client install and configured has
been captured
AIX Configuration
• Once a standard PowerVC deploy has been performed, the test recipe defined for
the role executes on the new VM