San Antonio Chef Users Meetup, Jun 2014 - Chef Metal

576 views
442 views

Published on

Meetup Slides for San Antonio Chef Users Meetup, Jun 2014 - Topic: Chef Metal

Published in: Technology, Business, Travel
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
576
On SlideShare
0
From Embeds
0
Number of Embeds
55
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

San Antonio Chef Users Meetup, Jun 2014 - Chef Metal

  1. 1. San Antonio Chef Users June 2014 SAChefUsers Hart Hoover / Josh O'Brien @SAChefUsers @hhoover @OBrienCommaJosh
  2. 2. Welcome!
  3. 3. Who are we? Hart Hoover
  4. 4. Who are we? Josh O'Brien
  5. 5. Announcements! Other interesting Meetups? Who's hiring? Recent Chef News
  6. 6. In the next 5 minutes meet someone new.
  7. 7. Chef Metal Introduced at ChefConf 2014
  8. 8. What does Chef Metal do? Provides a 'machine' resource Allows cluster management in Chef VERSION CONTROL
  9. 9. Driver Driven Development SSH: Bare Metal chef-metal-fog: Cloud Vagrant: Testing VMs LXC / Docker: Containers vSphere: VMWare
  10. 10. Driver Driven Development SSH: Bare Metal chef-metal-fog: Cloud Vagrant: Testing VMs LXC / Docker: Containers vSphere: VMWare
  11. 11. Basic Chef Metal machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end
  12. 12. More Advanced Chef Metal machine 'db' do recipe 'apt' recipe 'mysql' recipe 'application_cookbook::db_master' tag 'dbmaster' notifies 'converge', 'machine[web]', 'delayed' end machine 'web' do recipe 'apt' recipe 'apache' recipe 'application_cookbook::webapp' tag 'webserver' attributes( rackspace: { cloud_credentials: { username: Chef::Config[:rackspace_api_username], api_key: Chef::Config[:rackspace_api_key] } } ) action 'nothing' end
  13. 13. Batch Mode machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end
  14. 14. Batch Mode machine_batch do machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end end
  15. 15. Cloud Recipe Walkthrough node.set['build-essential']['compile_time'] = true include_recipe 'build-essential' chef_gem 'chef-metal' do version '0.12.1' action 'install' end chef_gem 'chef-metal-fog' do version '0.6.1' action 'install' end require 'chef_metal' require 'chef_metal_fog' require 'cheffish' require 'fog'
  16. 16. Cloud Recipe Walkthrough with_driver 'fog:Rackspace:https://identity.api.rackspacecloud.com/v2.0', compute_options: { rackspace_api_key: Chef::Config[:rackspace_api_key], rackspace_username: Chef::Config[:rackspace_api_username], rackspace_region: Chef::Config[:rackspace_region] } fog_key_pair metal-key with_machine_options ssh_username: 'root', bootstrap_options: { key_name: metal-key, flavor_id: 'performance1-2', image_id: 'ffa476b1-9b14-46bd-99a8-862d1d94eb7a' }
  17. 17. Cloud Recipe Walkthrough # Read Chef Config from knife.rb with_chef_server Chef::Config[:chef_server_url], client_name: Chef::Config[:node_name], signing_key_filename: Chef::Config[:client_key]
  18. 18. DEMO
  19. 19. Thank you! Hart Hoover @hhoover SAChefUsers @SAChefUsers

×