Your SlideShare is downloading. ×
0
Super Sunday | WebLogic Hackathon
Introduction to Puppet & Chef
Simon Haslam & Ronald van Luttikhuizen

December 1st | UKO...
Agenda
Configuration management
● Intro, How it was & How it can be

Real world case
Puppet
Chef
Intro to the Hands-on-Lab...
Configuration management | introduction
Application Deployment

• Automated installations and rollbacks
• Inject environme...
Configuration management | the traditional way
Artisan server crafting
Boring
Stressful
Error-prone
Time-consuming
Non-sca...
Configuration management | how it can be
Automated configuration
management
Describe a system once, apply as often
as you ...
Configuration management | how it can be
Infrastructure as code & DevOps
Eliminate tedious and repetitive work
Configurati...
WLS, OSB, SOA Suite

YUM + Packages / JVM /
Ulimits / Kernel / User /
Group / Directories

Operating System

40

WebLogic
...
Automation
Automating repetitive steps is nothing new
● OS tools (jumpstart, kickstart, shell scripts, etc., etc.)

But…
●...
Puppet

9 | 10
28
Puppet Example | Apache HTTP Server
Manifests
Resources
● Name
● Attributes and
values

Ordering and
dependencies

package...
More on Puppet | building blocks
if $operatingsystem == 'CentOS'

Manifests
Variables and (custom) facts
Node declarations...
More on Puppet | console

12 | 10
28
More on Puppet | products, price, etc.
Enterprise vs. Open Source
Puppet Forge
Market presence
Pricing (27-nov-2013)

13 |...
More on Puppet | runtime

Versus

14 | 10
28
If you want to know more about Puppet …

15 | 10
28
Chef

16 | 10
28
Chef architecture
Central
Chef Server

Multiple
Administrators

One
Repository

17 | 10
28
Chef| terminology
Node, Server, Workstation
Chef-client asks Chef-server about the policy for the node
Resources: a compon...
Example Recipe
paca
Template
specifies the
contents
required

Policy says
package
should be
installed
This service
should ...
I couldn’t find a screenshot of
enterprise one!

Open Source Chef Console

20 | 10
28
Configuration Drift
Not just used for initial installation
Chef’s policies means it knows desired state
Chef client runs p...
Chef in the wild
Enterprise vs. Open Source
Community & Popularity
Pricing (30-nov-2013)

22 | 10
28
More about Chef

23 | 10
28
Labs & Competition

24 | 10
28
Lab| intro
Teams of 3
Choose your poison
Setup & preparation
Hello World
Provision JDK 7
Provision WLS 12c

25 | 10
28
dashboard
provisioning

controller

JDK 7

WLS 12c

provisioning

Lab

Browser

WLS 12c
VM

provisioning

JDK 7

agent

JD...
Lab| eternal glory
Best Puppet team !!!
Best Chef team !!!
Best overall team !!!
Prize: Short interview with OTN @ 17.30

...
Thank you!
Ronald van Luttikhuizen
ronald.van.luttikhuizen@oboxproducts.com

Simon Haslam
smon.haslam@oboxproducts.com

28...
Upcoming SlideShare
Loading in...5
×

WebLogic Hackathon: Introduction to Puppet & Chef

3,778

Published on

This presentation accompanies a hands-on-lab session in which Puppet will be used to automatically provision Oracle WebLogic Server. Puppet is a tool to automate configuration management. Together with Chef it's one of the more popular configuration management tools at the moment. Puppet allows you to describe the desired (to-be) state of your servers by declaring resources. These declarations can describe user accounts, security settings, packages, directories, files, executable statements, services, and so on. Manifests are the files in which resource declarations are listed. Puppet periodically applies manifests by translating manifests into specific commands (catalogs) and executes those on the managed servers. Puppet is capable of inspecting the machines so it only applies those changes that are necessary. If a machine is already in the desired state Puppet will apply no changes.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,778
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
97
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "WebLogic Hackathon: Introduction to Puppet & Chef"

  1. 1. Super Sunday | WebLogic Hackathon Introduction to Puppet & Chef Simon Haslam & Ronald van Luttikhuizen December 1st | UKOUG Tech 2013 1 | 10 28
  2. 2. Agenda Configuration management ● Intro, How it was & How it can be Real world case Puppet Chef Intro to the Hands-on-Labs 2 | 10 28
  3. 3. Configuration management | introduction Application Deployment • Automated installations and rollbacks • Inject environment variables, smoke-testing Application Building & Packaging • Automated builds, tests, and packaging from version control • Central archiving in (artifact) repository Server & Middleware Provisioning • Automated provisioning of middleware • High frequency of changes to images (e.g. patches) Machine Provisioning • Automated provisioning of OS-ready images • Low frequency of changes to images 3 | 10 28
  4. 4. Configuration management | the traditional way Artisan server crafting Boring Stressful Error-prone Time-consuming Non-scalable & expensive 4 | 10 28
  5. 5. Configuration management | how it can be Automated configuration management Describe a system once, apply as often as you want Automate the repetitive Focus on improvements and “real” problems as admin Predictable results (Near) real-time provisioning 5 | 10 28
  6. 6. Configuration management | how it can be Infrastructure as code & DevOps Eliminate tedious and repetitive work Configurations are defined in a machine- and OS-independent domain language so the manifests are portable and can be reused Keep servers in sync and know what is running on what server Configuration can be used as documentation: since configuration is applied by the documentation is always up-to-date Configuration can be version controlled and managed the same way you manage other code 6 | 10 28
  7. 7. WLS, OSB, SOA Suite YUM + Packages / JVM / Ulimits / Kernel / User / Group / Directories Operating System 40 WebLogic 13 WebLogic / BSU / NodeManager OSB 8 OSB / OPatch SOA Suite 10 SOA Suite / OPatch Domain creation Initial Domain setup 10 Create Domain 40 Logs / Security / JMS / WebApps / DataSources / Resource Adapters Database Server Operating system 40 Database software 30 Database creation 5 SOA Suite Repository 8 X Total actions Source: Roll Out a Complete Oracle Fusion Middleware Env in Less than 10min by Edwin Biemond 7 | 10 28
  8. 8. Automation Automating repetitive steps is nothing new ● OS tools (jumpstart, kickstart, shell scripts, etc., etc.) But… ● provisioning more environments than ever (cloudy) ● very complex multi-tier environments New breed tools to standardise such a process ● platform-agnostic ● centralised ● fashionable 8 | 10 28
  9. 9. Puppet 9 | 10 28
  10. 10. Puppet Example | Apache HTTP Server Manifests Resources ● Name ● Attributes and values Ordering and dependencies package { "httpd": name => "httpd.x86_64", ensure => "present", } file { "http.conf": path => "/etc/httpd/conf/httpd.conf", owner => root, group => root, mode => 0644, source => "puppet:///modules/apache/httpd.conf", require => Package["httpd"], } service { "httpd": ensure => running, enable => true, subscribe => File["http.conf"], } 10 | 10 28
  11. 11. More on Puppet | building blocks if $operatingsystem == 'CentOS' Manifests Variables and (custom) facts Node declarations Classes and Modules Defined resource types Templates Console node 'www1.example.com' { include common include apache } node 'db1.example.com' { include common include mysql } file { "http.conf": path => "/etc/httpd/conf/httpd.conf", owner => 'root', group => 'root', mode => '0644', content => template('config/httpd.erb'), } 11 | 10 28
  12. 12. More on Puppet | console 12 | 10 28
  13. 13. More on Puppet | products, price, etc. Enterprise vs. Open Source Puppet Forge Market presence Pricing (27-nov-2013) 13 | 10 28
  14. 14. More on Puppet | runtime Versus 14 | 10 28
  15. 15. If you want to know more about Puppet … 15 | 10 28
  16. 16. Chef 16 | 10 28
  17. 17. Chef architecture Central Chef Server Multiple Administrators One Repository 17 | 10 28
  18. 18. Chef| terminology Node, Server, Workstation Chef-client asks Chef-server about the policy for the node Resources: a component and the desired state Recipes: describe resources and desired state Cookbooks: sets of recipes grouped together, also includes templates and source files etc Run List: recipes from cookbooks you want to run Role: type of node 18 | 10 28
  19. 19. Example Recipe paca Template specifies the contents required Policy says package should be installed This service should be enabled on reboot, and must be running Source: Chef Fundamentals Webinar 1 #LEARNCHEF 19 | 10 28
  20. 20. I couldn’t find a screenshot of enterprise one! Open Source Chef Console 20 | 10 28
  21. 21. Configuration Drift Not just used for initial installation Chef’s policies means it knows desired state Chef client runs periodically on node & checks state against policy 21 | 10 28
  22. 22. Chef in the wild Enterprise vs. Open Source Community & Popularity Pricing (30-nov-2013) 22 | 10 28
  23. 23. More about Chef 23 | 10 28
  24. 24. Labs & Competition 24 | 10 28
  25. 25. Lab| intro Teams of 3 Choose your poison Setup & preparation Hello World Provision JDK 7 Provision WLS 12c 25 | 10 28
  26. 26. dashboard provisioning controller JDK 7 WLS 12c provisioning Lab Browser WLS 12c VM provisioning JDK 7 agent JDK 7 WLS 12c VM 26 | 10 28 provisioning agent provisioning provisioning VM
  27. 27. Lab| eternal glory Best Puppet team !!! Best Chef team !!! Best overall team !!! Prize: Short interview with OTN @ 17.30 27 | 10 28
  28. 28. Thank you! Ronald van Luttikhuizen ronald.van.luttikhuizen@oboxproducts.com Simon Haslam smon.haslam@oboxproducts.com 28 | 10 28
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×