Be smart. Think open source.

Similar documents
Lifecycle management with Foreman and Katello Basics and Spacewalk migration

Red Hat Satellite 6.4

Red Hat Satellite 6.2

AGENDA. 13:30-14:25 Gestion des patches, du provisionning et de la configuration de RHEL avec Satellite 6.1, par Michael Lessard, Red Hat

Red Hat Satellite 6.2

Red Hat Satellite 6.2

Red Hat Satellite 6.3

Red Hat Satellite 6.4

Advanced Continuous Delivery Strategies for Containerized Applications Using DC/OS

Satellite 6 User Guide. ID Client Delivery

Automating, Securing, and Managing Cox Automotive's (AutoTrader) Big Data Infrastructure

Integrating ovirt, Foreman And Katello To Empower Your Data-Center Utilization

Red Hat Satellite 6.4-Beta

Multi-Cloud and Application Centric Modeling, Deployment and Management with Cisco CloudCenter (CliQr)

Multi-Cloud and Application Centric Modeling, Deployment and Management with Cisco CloudCenter (CliQr)

Red Hat Satellite 6.2

From Bare Metal to Cloud. Andy ICCLab, ZHAW Piotr Kasprzak, GWDG

Building Scaleable Cloud Infrastructure using the Red Hat OpenStack Platform

DevOps Course Content

Red Hat Satellite 6.3

Building physical clouds

From Bare Metal to Cloud

CLOUD INFRASTRUCTURE ARCHITECTURE DESIGN

Think Small to Scale Big

A10 HARMONY CONTROLLER

MaaS Integration for Baremetal Provisioning in Cloudstack

Red Hat CloudForms 4.2

10 THINGS YOU DIDN'T KNOW ABOUT SATELLITE 6

Red Hat CloudForms 4.1 Managing Providers

Discover SUSE Manager

Red Hat OpenStack Platform 10 Product Guide

Build Cloud like Rackspace with OpenStack Ansible

Baremetal with Apache CloudStack

CORD How to build a POD and automate deployments. #OpenCORD

Design Patterns for Scalable LAMP Infrastructure. Jon Topper Mike Griffiths

Red Hat Satellite 6.3

Automated Deployment of Private Cloud (EasyCloud)

UP! TO DOCKER PAAS. Ming

DevOps Course Content

Automated Deployment of Private Cloud (EasyCloud)

RED HAT SATELLITE LIGHTNING TALKS. Sureshkumar Thirugnanasambandan Thomas McKay Rich Jerrido

Upcoming Services in OpenStack Rohit Agarwalla, Technical DEVNET-1102

Red Hat CloudForms 4.5

Red Hat Satellite 6.3

Red Hat CloudForms 4.6

BRINGING HOST LIFE CYCLE AND CONTENT MANAGEMENT INTO RED HAT ENTERPRISE VIRTUALIZATION. Yaniv Kaul Director, SW engineering June 2016

Red Hat Satellite 6.3

Overhauling Dev Arch with Ansible Tower and Docker

Red Hat Satellite 6.0

SUSE Manager and Salt

WHITE PAPER. RedHat OpenShift Container Platform. Benefits: Abstract. 1.1 Introduction

Introduction to Stacki. Greg Bruno, PhD VP Engineering, StackIQ

CREATING A CLOUD STRONGHOLD: Strategies and Methods to Manage and Secure Your Cloud

Red Hat CloudForms 4.2

Getting to Know Apache CloudStack

OpenNebula on VMware: Cloud Reference Architecture

Red Hat Satellite 6.4

Qualys Release Notes

P a g e 1. Teknologisk Institut. Online kursus k SysAdmin & DevOps Collection

DevOps Technologies. for Deployment

Red Hat CloudForms 4.5

CIT 470: Advanced Network and System Administration. Topics. Workstation Management. Workstations

#jenkinsconf. Managing jenkins with multiple components project. Jenkins User Conference Israel. Presenter Name Ohad Basan

ovirt Node November 1, 2011 Mike Burns Alan Pevec Perry Myers ovirt Node 1

Red Hat Virtualization 4.1 Product Guide

INTRODUCING CONTAINER-NATIVE VIRTUALIZATION

Release Pipelines in Microsoft Ecosystems

Red Hat CloudForms 4.6

OpenShift 3 Technical Architecture. Clayton Coleman, Dan McPherson Lead Engineers

Red Hat JBoss Middleware for OpenShift 3

How To Manually Install Driver Ubuntu Server On Virtualbox

Beyond 1001 Dedicated Data Service Instances

Best Practice Deployment of F5 App Services in Private Clouds. Henry Tam, Senior Product Marketing Manager John Gruber, Sr. PM Solutions Architect

MySQL operations with Docker A quick guide for the uninitiated

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Table of Contents DevOps Administrators

Cisco Enterprise Cloud Suite Overview Cisco and/or its affiliates. All rights reserved.

VMware s (Open Source) Way of Container. Dr. Udo Seidel

Spacewalk. Installation Guide RHEL 5.9

Dell Lifecycle Controller Integration Version 2.2 For Microsoft System Center Configuration Manager User's Guide

The new Docker networking put into action to spin up a SLURM cluster

Docker Enterprise Edition on Cisco UCS C220 M5 Servers for Container Management

Marek Goldmann. Part of project:odd. Polish. BoxGrinder lead Leading the JBoss AS packaging into Fedora. Yep, Bob's team

INDIGO PAAS TUTORIAL. ! Marica Antonacci RIA INFN-Bari

Harbor Registry. VMware VMware Inc. All rights reserved.

Build with SUSE Studio, Deploy with SUSE Linux Enterprise Point of Service and Manage with SUSE Manager Case Study

Kuber-what?! Learn about Kubernetes

Dell Lifecycle Controller Integration Version 3.0 For Microsoft System Center Configuration Manager User's Guide

Operating and managing an Atomic container-based infrastructure

Integrating the RHCI Suite with IdM

Satellite 6 and Puppet. Michael Heldebrant Senior Cloud Infrastructure Solutions Architect Red Hat April 2015

DevOps Online Training

EVERYTHING AS CODE A Journey into IT Automation and Standardization. Raphaël Pinson

How to Simplify Configuration With System Roles and get your lunch hour back. Terry Bowling Technical Product Manager Red Hat Enterprise Linux

Simple custom Linux distributions with LinuxKit. Justin Cormack

I'm Andy Glover and this is the Java Technical Series of. the developerworks podcasts. My guest is Brian Jakovich. He is the

FreeIPA. Directory and authentication services the easy way. Christian Stankowic. Free and Open Source software Conference

Patching and Updating your VM SUSE Manager. Donald Vosburg, Sales Engineer, SUSE

Red Hat CloudForms 4.0

openqrm Enterprise Administrator Guide Enterprise System Adminstration and IaaS Datacenter Automation with openqrm 5.2

Transcription:

Foreman Basics

Be smart. Think open source.

Foreman - Basics Lifecycle management of physical and virtual machines made easy!

Agenda Introduction to Foreman Architecture Setup Provisioning Configuration Monitoring Advanced features

Introduction to Foreman What's it all about?

Facts Project started in 2009 Licensed under the GPLv3 Development pushed by Red Hat Very active & helpful community

Overview Tool for provisioning of VMs & bare metal Provides config management & monitoring integration Rails & JavaScript application Exposes a web interface, REST API & CLI

Ecosystem Foreman Smart Proxy (foreman-proxy) Katello Tons of plugins

Strong suite Very flexible Offers tons of features Active development & open community Modular setup, start small then expand

Strong suite Can serve as a source of truth (CMDB) Can be used as an ENC Proper ACL implementation Enterprise Support available (Red Hat Satellite 6)

Weak spots Somewhat steep learning curve Can be quite tricky to debug an issue API has room for improvement Offers sometimes too many possible ways to implement a task

Architecture Overview of the different components

Bird's-eye view

Foreman Heart of the whole stack Stores all resources & information Rails stack, use Passenger + nginx / Apache to run it Stores most data in a DB (SQLite, MySQL or PostgreSQL) Local or LDAP users for authentication

Smart Proxy Small autonomous HTTP application Exposes a REST API to provide different services Allows Foreman to control components in isolated networks Also called foreman-proxy

Smart Proxy DHCP DNS TFTP BMC / IPMI Puppet / Salt / Chef / Ansible Realm / FreeIPA

Smart Proxy - DHCP Takes care of reserving the required IPs Provides IP auto-assignment Supports ISC DHCP, MS DHCP & libvirt More providers can be installed or developed (e.g. InfoBlox)

Smart Proxy - DNS Update and remove DNS records automatically Takes care of A, AAAA & PTR records Supports Bind, MS DNS & libvirt More providers can be installed or developed (e.g. AWS53)

Smart Proxy - TFTP Provide images during PXE boot Automagically downloads kernel + initrd (installer) Prepares MAC specific config depending on the build state Fallback to default

Terminology Host Installation media Partition tables Provisioning templates

Terminology Environment Compute resources Compute profiles

Hands-on :: Basics 01 Discover the basics of Foreman

Foreman Setup Get Foreman up and running in minutes

Requirements Supported distributions: RHEL 7, CentOS 7 & Scientific Linux 7 Fedora 24 Debian 8 Ubuntu 14.04 & 16.04

Requirements Standard VM is sufficient for the start Additional repositories depending on the distribution Internet access Firewall ports

Installation paths foreman-installer (recommended by the project) Install from package Install from source Alternatives (Ansible playbook, etc.)

foreman-installer Makes use of different Puppet modules to deploy a complete Foreman stack: Foreman Smart proxy Passenger TFTP, DNS & DHCP

foreman-installer Customizable with CLI parameters Answers file Scenarios

Provisioning Making deployments as easy as pie

Introduction Provisioning includes all the tasks required to setup a new machine Saving time isn't the main goal Enforce consistency across all deployments is key

Workflow 1. Boot the installer 2. Start the installation 3. Get further instructions from Foreman

Boot the installer PXE Boot (TFTP provided by Foreman) ISO image ipxe image

Start the installation Tell the installer where further instructions are located Red Hat Kickstart ks=http://foreman.example.com/unattended/provision Debian Preseed url=http://foreman.example.com/unattended/provision Defined as kernel parameters when loading the installer

Installer instructions Foreman provides templating functionality ERB templates are rendered per host Contain variables, loops, snippets, etc. See provisioning templates & partition tables

Templates Foreman provides community templates Vanilla templates are locked by default Can be deleted but some are mandatory (e.g. PXELinux global default )

Templates Partition tables are used to define the filesystem layout Different provisioning template types are available: Provisioning Finish etc.

Requirements For a complete provisioning workflow we need some resources: Architecture Installation media (mirror) OS Templates

Example x86_64 http://mirror.centos.org/centos/$version/os/$arch CentOS 7 Default FS Layout, Kickstart & Finish script

Hands-on :: Basics 02 Automating OS deployments is hard you've said?

Configuration Bring order into your organization

Structure Foreman provides different resources to organize hosts: Hostgroup Domains Environments Organizations & Locations

Structure Parameter inheritance looks like this: Environment -> Domains -> Hostgroup -> Host

Config Management Define how a system should look like in an abstract way.

Integration Foreman provides ENC functionality Supports mainly Puppet but extendable with plugins

Ansible Ansible plugin is still the new face in town Ansible provides dynamic Foreman inventory script Roles can be assigned to hosts and hostgroups Play roles through the GUI Import and delete roles through the GUI

Hands-on :: Basics 03 Looking into the Ansible integration

Monitoring Collect and aggregate everything

Facts Foreman saves facts for each host Collect facts regularly and store them in Foreman Leverage them again in your Config Management Tool

Reports Collect and track config changes Mainly supported for Puppet / Salt

More data Audit log keeps track of all changes, very handy Trends give an overview of your infrastructure

Advanced features Adding even more fancy stuff

Plugins Cloud providers (Azure, Digitalocean, etc.) Docker VMWare & libvirt Katello OpenSCAP

Foreman Automation Foreman provides REST API Can be easily used to automate additional tasks Hammer is a CLI tool Somewhat limited because internal IDs have to be looked up first Other tools (foreman-yml, etc.)

Field report What have you learned? Architecture Setup Provisioning Configuration Monitoring Advanced features

Quo vadis? Foreman Automation External services (password stores, CMDB, etc.) Development Workflow (CI & CT)

Feedback The good, the bad and the ugly

Thank you! Be smart. Think open source.

Feel Free to Contact Us www.adfinis-sygroup.ch Tech Blog GitHub info@adfinis-sygroup.ch Twitter

Attribution / License The Foreman logo by The Foreman project License CC BY-SA 3.0 https://github.com/theforeman/foremangraphics Foreman Architecture by The Foreman project License CC BY-SA 3.0 https://theforeman.org/static/images/foreman_architecture.png Foreman Provisioning by The Foreman project License CC BY-SA 3.0 https://theforeman.org/static/images/provisioning.png

Attribution / License Foreman Configuration by The Foreman project License CC BY-SA 3.0 https://theforeman.org/static/images/configuration.png Foreman Monitoring by The Foreman project License CC BY-SA 3.0 https://theforeman.org/static/images/monitoring.png XKCD - The General Problem by xkcd https://xkcd.com/974/ License CC-BY-NC https://xkcd.com/license.html