• Save
Chef meetup presentation
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Chef meetup presentation

  • 922 views
Uploaded on

Presentation from #sfruby meetup, November 16th, 2011.

Presentation from #sfruby meetup, November 16th, 2011.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
922
On Slideshare
922
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. CONFIGURATIONMANAGEMENT WITH CHEF Wednesday, November 16th, 2011 Charles Johnson
  • 2. WHO’S THIS GUY?• Systems Engineer• Operations Junkie• Currently managing hundreds of nodes across multiple data centers, cloud providers, and projects with Chef• Not a Rubyist• @mr_chip
  • 3. SYSTEMS IS A HARD PROBLEM.• Provisioning! • Tools!• Authentication! • Mail!• Monitoring! • SSH Keys!• Security! • Quality Assurance!• Networking! • Users! • Neckbeards!
  • 4. SYSTEMS IS A PROBLEM THAT DOESN’T STAY SOLVED.• OS vendors and applications are constantly patching. VM Templates / snapshots / AMI images / shell scripts are out of date as soon as they’re created.• Errors are duplicated by copying & pasting running virtual machines.• Horizontal scaling introduces heterogenous clusters.• Noversioning, unit testing, build automation, or release controls.
  • 5. SO MANY CHOICES
  • 6. SO MANY CHOICES Ubuntu Zenoss sftp resolv.conf Rackspacemysql Apache zmqchroot Sudo emacs monit i386 membase PECL Sendmailapt AMI DNS Jetty samba PEAR nfsCentOS Debiansyslog mongodb Ruby hbase SOLR fdisk IIS bluepill VMWare Windows iptables VPN runit rabitmq init PHP-FPM x86_64 Gems Postfix Python /dev/sda smb ldap screen selinux yum Munin god vi Tomcat splunk Terramarkupstart afp PHP git lvm nginx Redhat AppArmor eth0 Amazon memcached lighttpd Perl ufw /etc/hosts bash nagios zookeeper svn Openstack tmux riak Passenger
  • 7. THERE HAS TO BE A BETTER WAY.
  • 8. CONFIGURATION MANAGEMENT
  • 9. SPECIFICALLY, CHEF.• Manage your servers by writing code, not by running commands.• Integratetightly with your applications, databases, LDAP directories, and more.• Automatically Configure infrastructure-aware applications
  • 10. EVERYTHING IS CODE.• Instance Provisioning • code• User administration • code• Database installation • code• Application Installation • code• Services Configuration • code• Networking • code
  • 11. INFRASTRUCTURE AS CODE• Testable• Versioned• Repeatable• Scalable
  • 12. GETTING STARTED WITH CHEF• Chef is inherently client-server• Weak Server / Strong Client - Server provides repository and security, client interprets and executes policy• Hosted: Manage 5 nodes free - Opscode.com• Install your own Chef Server via gem or apt• Chef is Ruby. Drop Ruby blocks into your recipes and they’ll just work.
  • 13. INTERFACING WITH CHEF• knife - Chef command-line tool• shef - Like irb for Chef.• Cookbooks- Cookbooks.opscode.com• Repo - Github / SVN• WebUI - manage.opscode.com
  • 14. WHAT YOU’LL NEED• Hosted Chef Account - http://manage.opsource.com• Cloud Provider account - AWS / Rackspace• Github account or other repo• Configured Chef Workstation (gem install chef)• Some cookbooks - http://cookbooks.opscode.com
  • 15. CHEF CORE CONCEPTS• chef-server • attributes• chef repo • recipes• clients • cookbooks• nodes • providers• environments • definitions• roles
  • 16. DEMO TIMEProvision, Configure, and build a full Ubuntu server withfirewall, user accounts, LAMP stack, and Wordpress atAmazon in (about) 5 minutes.