26
The Foreman FOSDEM 2011 Ohad Levy

The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

The Foreman

FOSDEM 2011Ohad Levy

Page 2: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Why is your infrastructure special?

Page 3: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Automate as many processes as possible, using best practice where available, and act

as the glue between the gaps

Page 4: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

The Foreman Realm● Provisioning● Configuration Management – Puppet● Inventory and Activity Reporting● One (simple) interface/console/API for your

infrastructure

Page 5: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Segmented Network

Foreman Architecture

Foreman

DB LDAP / ADINTERNAL

PuppetPuppetPuppet

SmartProxy

ISCDHCP

SmartProxy

MSDNSTFTP

SmartProxy

PupetCA

SmartProxy

DNSDHCPTFTP

..

Restful API HTTP(s)

LibvirtRHEV-M

EC2

Virtualization

SmartProxy

DNSDHCPTFTP

..

SmartProxy

ISCDHCP

SmartProxy

MSDNSTFTP

SmartProxy

PuppetCA

Reports / Facts / ENC

Web UsersAPI

Page 6: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Provisioning

Page 7: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

JeOSJust Enough OS

Page 8: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Template Engine

● Kickstart, Preseed, Jumpstart● Managed per group of hosts (role, environment

and OS)● Snippets, (g)PXE, PXE Menus, grub..● We don't really care what we render but we do

it safely

Page 9: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Smart Proxies● DHCP, DNS, TFTP, Puppet(CA)...● Restful interface to network services● Easily extended● Runs on Linux/Windows● Allows each service to run on a different host● One(Foreman) to Many(Proxies) relationship● Uses SSL for Encryption and Authentication● Could be used as a standalone service

Page 10: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Virtualization Integration

● One process to create virtual machines regardless if its in your private or public cloud

● We currently support libvirt● RHEV-M, EC2... is in the works

Page 11: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Configuration Management with Puppet

Page 12: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Inventory

● Automatically collects your Puppet based inventory (including your custom facts)

● Easy to browse and search though your inventory

● Facts can be used as a permission filter to your hosts

Page 13: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Page 14: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Node Classifier

● Simple UI to associate hosts with puppet classes

● Multiple Puppet Environment support● Allows you to group your hosts● Variable inheritance (split the variables from the

manifests)● Update many hosts at once

Page 15: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Page 16: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Page 17: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Reporting

● Dashboard for all of your puppet hosts● Detailed Log for what Puppet did● Simple Search though the logs (show me all

hosts/reports with yum related activities)● Audit Log● Summary Emails● Alerting (API, Email etc)

Page 18: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Page 19: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

More Puppet integrations

● PuppetCA management● Trigger Puppet runs● Puppetdoc integration● Can work with your existing storeconfigs● Support multiple Puppetmasters

Page 20: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Page 21: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Restful API

● Simple API to collect hosts (and their associated data)

● Can by used by scripts ● Can by used within Puppet as an alternative to

storeconfigs

● CRUD operations on most objects

Page 22: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

User Management

● Internal and External (LDAP/AD) user authentication

● RBAC (Role Based Access Control)● Per host group, domain, fact etc● Dynamic groups (AD like)

● Can be used to CRUD and restrict to "your" set of hosts – self service

Page 23: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Too many options?

● You're not required to use every feature● Foreman has 3 modes of operation

● Provisioning + Puppet● Puppet● Provisioning

Page 24: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Final words

● About 1.5 years old● 20+ Contributors● Largest installation =~ 4000 active hosts● Homepage – http://theforeman.org● Irc - #theforeman on freenode● Usergroup -

http://groups.google.com/group/foreman-users (&dev)

Page 25: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

Questions ?

Page 26: The Foremanprojects.theforeman.org/attachments/download_inline/326/...02/06/11 The Foreman - Ohad Levy - FOSDEM 2011 Automate as many processes as possible, using best practice where

02/06/11 The Foreman - Ohad Levy - FOSDEM 2011

More Demo?