San Antonio Chef Users Meetup, Jun 2014 - Chef Metal
Upcoming SlideShare
Loading in...5
×
 

San Antonio Chef Users Meetup, Jun 2014 - Chef Metal

on

  • 191 views

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

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

Statistics

Views

Total Views
191
Views on SlideShare
151
Embed Views
40

Actions

Likes
0
Downloads
2
Comments
0

4 Embeds 40

https://twitter.com 37
https://www.linkedin.com 1
http://www.slideee.com 1
http://localhost 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

San Antonio Chef Users Meetup, Jun 2014 - Chef Metal San Antonio Chef Users Meetup, Jun 2014 - Chef Metal Presentation Transcript

  • San Antonio Chef Users June 2014 SAChefUsers Hart Hoover / Josh O'Brien @SAChefUsers @hhoover @OBrienCommaJosh
  • Welcome!
  • Who are we? Hart Hoover
  • Who are we? Josh O'Brien
  • Announcements! Other interesting Meetups? Who's hiring? Recent Chef News
  • In the next 5 minutes meet someone new.
  • Chef Metal Introduced at ChefConf 2014
  • What does Chef Metal do? Provides a 'machine' resource Allows cluster management in Chef VERSION CONTROL
  • Driver Driven Development SSH: Bare Metal chef-metal-fog: Cloud Vagrant: Testing VMs LXC / Docker: Containers vSphere: VMWare
  • Driver Driven Development SSH: Bare Metal chef-metal-fog: Cloud Vagrant: Testing VMs LXC / Docker: Containers vSphere: VMWare
  • Basic Chef Metal machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end
  • 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
  • Batch Mode machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end
  • Batch Mode machine_batch do machine 'db' do recipe 'mysql' end machine 'web1' do recipe 'apache' end end
  • 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'
  • 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' }
  • 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]
  • DEMO
  • Thank you! Hart Hoover @hhoover SAChefUsers @SAChefUsers