27
Server installation and configuration with Chef

Server Installation and Configuration with Chef

  • Upload
    rsim

  • View
    8.584

  • Download
    2

Embed Size (px)

DESCRIPTION

Presentation at Oracle OpenWorld 2009 unconference

Citation preview

Page 1: Server Installation and Configuration with Chef

Server installation and configuration

with Chef

Page 2: Server Installation and Configuration with Chef

Raimonds Simanovskis

TietoEnator Alise

@rsim github.com/rsim

Page 3: Server Installation and Configuration with Chef

Problem

•Manual system administration

•Non-repeatable

•No version control

•Takes too long

Page 4: Server Installation and Configuration with Chef

What is Chef?Chef is

a state based,declarative configuration

management engine.You define recipes of how you want your system to look and

then chef makes it so.

Page 5: Server Installation and Configuration with Chef

Chef

•Client-server architecture

•Embraces modern web technologies

•Best ideas from cfengine and Puppet

•Targeted to Linux, Solaris, Mac OS X

•Written in Ruby, recipes in Ruby

Page 6: Server Installation and Configuration with Chef

Architecture

Chef Server

Chef Indexer

Client

Chef Client

Ohai

Page 7: Server Installation and Configuration with Chef

Ohai { "kernel": { "machine": "x86_64", "name": "Linux", "os": "GNU\/Linux", "version": "#1 SMP Wed Aug 20 21:08:51 UTC 2008", "release": "2.6.24-19-xen" }, "uptime_seconds": 12043422, "platform_version": "8.04", "platform": "ubuntu", "virtualization": { "role": "guest", "emulator": "xen" }, "os": "linux", "idletime": "115 days 23 hours 34 minutes 06 seconds", "idletime_seconds": 10020846, "lsb": { "id": "Ubuntu", "description": "\"Ubuntu 8.04.1\"", "codename": "hardy", "release": "8.04" }, "os_version": "2.6.24-19-xen" }

Page 8: Server Installation and Configuration with Chef

Chef components

•Nodes

•Cookbooks

•Recipes

•Definitions

•Attributes

•Libraries

•Files

•Templates

Page 9: Server Installation and Configuration with Chef

Resourcescron execute directory

file group user

link package remote_directory

remote_file route script

service template http_request

Page 10: Server Installation and Configuration with Chef
Page 11: Server Installation and Configuration with Chef
Page 12: Server Installation and Configuration with Chef
Page 13: Server Installation and Configuration with Chef
Page 14: Server Installation and Configuration with Chef
Page 15: Server Installation and Configuration with Chef
Page 16: Server Installation and Configuration with Chef
Page 17: Server Installation and Configuration with Chef
Page 18: Server Installation and Configuration with Chef
Page 19: Server Installation and Configuration with Chef
Page 20: Server Installation and Configuration with Chef
Page 21: Server Installation and Configuration with Chef
Page 22: Server Installation and Configuration with Chef
Page 23: Server Installation and Configuration with Chef
Page 24: Server Installation and Configuration with Chef
Page 25: Server Installation and Configuration with Chef

Demo

Page 26: Server Installation and Configuration with Chef

Linkshttp://wiki.opscode.com/display/chef/Home

http://www.slideshare.net/Orlando_Ruby_Users_Group/cooking-with-chef

Page 27: Server Installation and Configuration with Chef

Thanks!

http://blog.rayapps.comhttp://github.com/rsim