SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
Normation – CC-BY-SA
normation.com
CobblerCobbler
Fast and reliable multi-OS provisionningFast and reliable multi-OS provisionning
Matthieu CERDA – LOADays 2013
Normation – Tous droits réservés
normation.com
Who are you
Job System administrator
Phone: +33 6 30 53 40 00
Email : matthieu.cerda@normation.com
Web site : www.normation.com
@Kegeruneku
Normation – CC-BY-SA
normation.com 3
Problem
● Problem : Deploying new VMs is a painfully heavy and error-prone process.
● Solution: A tool able to automatize this the best way possible !
Normation – CC-BY-SA
normation.com 4
PXE
● “The Preboot eXecution Environment (PXE, also known as Pre-
Execution Environment; sometimes pronounced "pixie") is an
environment to boot computers using a network interface
independently of data storage devices (like hard disks) or installed
operating systems.” (Thanks Wikipedia)
●Created to respond to a simple problem: before it, even with
automated installations, the administrator needed to move towards
the machine, and boot it manually with a media.
● Administrators are lazy (well, I am), and thus needed something to
install a machine from the boot to the login prompt, with the least
human interference possible.
Normation – CC-BY-SA
normation.com 5
Problem (again)
●
PXE boot needs a tight and coherent integration of all these
services:
● DHCP
● TFTP
● HTTP
● (DNS, optionnal)
● Installing them and setting them requires specific experience,
skills and time.
● Time + skills = investment (either from people or from the wallet)
●
1st
problem: PXE is expensive
Normation – CC-BY-SA
normation.com 6
Problem (this is getting annoying !!!)
●
PXE boot needs a tight and coherent integration of all these
services:
● DHCP
● TFTP
● HTTP
● (DNS, optionnal)
● Keeping them in sync is horrifyingly painful, you KNOW
something will break one day or another (typos, forgot to copy a
file ...)
●
So, 2nd
trouble: PXE is hard to manage
Normation – CC-BY-SA
normation.com 7
Context
ID Card
● Name :
● Birthdate : 2007
● Language : Python
● Licence : GPL
● Author : Michael DeHaan ( You went to the Ansible
presentation this morning, did you ? )
● Dependencies : DHCP/TFTP/[DNS]
● Disponibility : Packages ( or sources )
● Tested and approved™ :
Normation – CC-BY-SA
normation.com 8
A little project history
Birth
2011: Site
switching
from Fedora
hosting to
Github
2012: Used
by
Canonical
for
OpenStack
tests
Normation – CC-BY-SA
normation.com 9
Global architecture
Distributions
Kernel Initrd Arguments Classes
Profiles
Repositories Network Proxy Classes
System
LDAP RHN/RHM Network Virtualization Puppet
REST API
Normation – CC-BY-SA
normation.com 10
Global architecture
CLI Koan
LibVirt
API
Cobbler
PXE
DNS TFTP DHCP
Physical
machines
Virtual
machines
HTTP
Web UI
Normation – CC-BY-SA
normation.com 11
Distro
●A basic representation of an OS
●Added through the CLI
Normation – CC-BY-SA
normation.com 12
Profile
●Abstraction layer between distros ans systems
●Can be used to define roles, for example: web_server, dns_server...
Normation – CC-BY-SA
normation.com 13
System
●The most important part, what the user will see !
●Will define physical or virtual entities, like a libvirt VM or a plain
computer. The MAC address serves as a binding between the low
level PXE and the system definition.
Normation – CC-BY-SA
normation.com 14
KOAN
● Works “out of the box”
● Adds LibVirt support to Cobbler
Normation – CC-BY-SA
normation.com 15
KOAN
● Demo !!!
Normation – CC-BY-SA
normation.com 16
Configuration
●
/etc/cobbler/settings
● YAML file, setting global variables and special cobblerd specific
parameters
● Can then be overriden by other abstraction layers
● /etc/cobbler/modules
● Defines which services will be managed (and how)
● Also defines how authentication will be done (for web UI for
example)
● /var/lib/cobbler/...
● Stores all the distro/profile/system/... configurations
Normation – CC-BY-SA
normation.com 17
Usefulness
●
“So, why is Cobbler so useful for you ?”
● Aptitude/yum install cobbler, as simple as that
● Just works, out of the box
● Easy integration with Virtualization software
● Seriously, managing PXE by hand is a pain in the neck...
● “Remember when we used to manage kickstart files by hand ?”
● “Yeah, so many hours I could have used to slack looking at cat
videos...”
Normation – CC-BY-SA
normation.com 18
Usefulness
●
“Can I deploy this in my company / home / toaster now ?”
● Yes ! It actually integrates well with existing machines/services.
● Just works, out of the box
● All you need is a machine, a distro CD / ISO and you're done.
● Can by used as an emergency crash recovery solution
● Used in a french company after a natural catastrophe (flood) to
restore quickly a new bunch of machines back to an
operationnal state. [reference needed]
Normation – CC-BY-SA
normation.com 19
Integration with existing services
●
Cobbler can integrate with services like:
● Local repository mirrors
● Local DNS / TFTP / ... services
● Configuration management: CFEngine / Puppet / Chef /
Ansible / ...
Normation – CC-BY-SA
normation.com 20
Protips
●
When you install Cobbler, remember some important points
● SELinux is tricky
● DISABLE STP ON YOUR BRIDGES !!!
● If something fails, check your firewall. If it still fails, check again.
● Always have a sandbox environment to play with.
● KVM is a great tool, especially with libvirt
● Keep It Simple and Safe
Normation – CC-BY-SA
normation.com 21
Extensibility
●
We develop Rudder, an IT automatization and conformity tool.
● Goal: Add a support for Cobbler
● Problem: Cobbler only supports Cobbler at this time !
● Solution: Add the necessary bindings ourselves ! (All hail Python
o/)
Let us take a slightly more complex case...
System
LDAP RHN/RHM Network Virtualization Puppet Rudder
Normation – CC-BY-SA
normation.com 22
Extensibility
Normation – CC-BY-SA
normation.com 23
Thank you for your attention !
( Questions time )

Contenu connexe

Tendances

MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning PresentationMySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
Colin Charles
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
Sim Janghoon
 
BPF: Tracing and more
BPF: Tracing and moreBPF: Tracing and more
BPF: Tracing and more
Brendan Gregg
 

Tendances (20)

Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)
 
Performance Wins with BPF: Getting Started
Performance Wins with BPF: Getting StartedPerformance Wins with BPF: Getting Started
Performance Wins with BPF: Getting Started
 
Troubleshooting common oslo.messaging and RabbitMQ issues
Troubleshooting common oslo.messaging and RabbitMQ issuesTroubleshooting common oslo.messaging and RabbitMQ issues
Troubleshooting common oslo.messaging and RabbitMQ issues
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
High Availability With DRBD & Heartbeat
High Availability With DRBD & HeartbeatHigh Availability With DRBD & Heartbeat
High Availability With DRBD & Heartbeat
 
Container Performance Analysis
Container Performance AnalysisContainer Performance Analysis
Container Performance Analysis
 
MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning PresentationMySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
 
The rise of Layer 7, microservices, and the proxy war with Envoy, NGINX, and ...
The rise of Layer 7, microservices, and the proxy war with Envoy, NGINX, and ...The rise of Layer 7, microservices, and the proxy war with Envoy, NGINX, and ...
The rise of Layer 7, microservices, and the proxy war with Envoy, NGINX, and ...
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
 
BPF Internals (eBPF)
BPF Internals (eBPF)BPF Internals (eBPF)
BPF Internals (eBPF)
 
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group ReplicationPercona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
 
Network Drivers
Network DriversNetwork Drivers
Network Drivers
 
How to Speak Intel DPDK KNI for Web Services.
How to Speak Intel DPDK KNI for Web Services.How to Speak Intel DPDK KNI for Web Services.
How to Speak Intel DPDK KNI for Web Services.
 
The Full MySQL and MariaDB Parallel Replication Tutorial
The Full MySQL and MariaDB Parallel Replication TutorialThe Full MySQL and MariaDB Parallel Replication Tutorial
The Full MySQL and MariaDB Parallel Replication Tutorial
 
Advanced Namespaces and cgroups
Advanced Namespaces and cgroupsAdvanced Namespaces and cgroups
Advanced Namespaces and cgroups
 
Neighbor Discovery Deep Dive – IPv6-Networking-Referat
Neighbor Discovery Deep Dive – IPv6-Networking-ReferatNeighbor Discovery Deep Dive – IPv6-Networking-Referat
Neighbor Discovery Deep Dive – IPv6-Networking-Referat
 
BPF: Tracing and more
BPF: Tracing and moreBPF: Tracing and more
BPF: Tracing and more
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnl
 
GTPing, How To
GTPing, How ToGTPing, How To
GTPing, How To
 
MySQL Parallel Replication by Booking.com
MySQL Parallel Replication by Booking.comMySQL Parallel Replication by Booking.com
MySQL Parallel Replication by Booking.com
 

Similaire à Cobbler - Fast and reliable multi-OS provisioning

ONIE / Cumulus Networks Webinar
ONIE / Cumulus Networks WebinarONIE / Cumulus Networks Webinar
ONIE / Cumulus Networks Webinar
Cumulus Networks
 
Systemd evolution revolution_regression
Systemd evolution revolution_regressionSystemd evolution revolution_regression
Systemd evolution revolution_regression
Susant Sahani
 
the NML project
the NML projectthe NML project
the NML project
Lei Yang
 

Similaire à Cobbler - Fast and reliable multi-OS provisioning (20)

Platform Engineering for the Modern Oracle World
Platform Engineering for the Modern Oracle WorldPlatform Engineering for the Modern Oracle World
Platform Engineering for the Modern Oracle World
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Docker 0.11 at MaxCDN meetup in Los AngelesDocker 0.11 at MaxCDN meetup in Los Angeles
Docker 0.11 at MaxCDN meetup in Los Angeles
 
Detailed Introduction To Docker
Detailed Introduction To DockerDetailed Introduction To Docker
Detailed Introduction To Docker
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Real-World Docker: 10 Things We've Learned
Real-World Docker: 10 Things We've Learned  Real-World Docker: 10 Things We've Learned
Real-World Docker: 10 Things We've Learned
 
Introduction to PaaS and Heroku
Introduction to PaaS and HerokuIntroduction to PaaS and Heroku
Introduction to PaaS and Heroku
 
ONIE / Cumulus Networks Webinar
ONIE / Cumulus Networks WebinarONIE / Cumulus Networks Webinar
ONIE / Cumulus Networks Webinar
 
PaaSTA: Running applications at Yelp
PaaSTA: Running applications at YelpPaaSTA: Running applications at Yelp
PaaSTA: Running applications at Yelp
 
Best Practices for Deploying Enterprise Applications on UNIX
Best Practices for Deploying Enterprise Applications on UNIXBest Practices for Deploying Enterprise Applications on UNIX
Best Practices for Deploying Enterprise Applications on UNIX
 
Free GitOps Workshop
Free GitOps WorkshopFree GitOps Workshop
Free GitOps Workshop
 
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
 
Dockerizing Aurea - Docker Con EU 2017
Dockerizing Aurea - Docker Con EU 2017Dockerizing Aurea - Docker Con EU 2017
Dockerizing Aurea - Docker Con EU 2017
 
Docking, loading, running domino on docker v12
Docking, loading, running domino on docker v12Docking, loading, running domino on docker v12
Docking, loading, running domino on docker v12
 
Docker presentasjon java bin
Docker presentasjon java binDocker presentasjon java bin
Docker presentasjon java bin
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
ONIE LinuxCon 2015
ONIE LinuxCon 2015ONIE LinuxCon 2015
ONIE LinuxCon 2015
 
Systemd evolution revolution_regression
Systemd evolution revolution_regressionSystemd evolution revolution_regression
Systemd evolution revolution_regression
 
the NML project
the NML projectthe NML project
the NML project
 
Montreal Kubernetes Meetup: Developer-first workflows (for microservices) on ...
Montreal Kubernetes Meetup: Developer-first workflows (for microservices) on ...Montreal Kubernetes Meetup: Developer-first workflows (for microservices) on ...
Montreal Kubernetes Meetup: Developer-first workflows (for microservices) on ...
 
Manage your switches like servers
Manage your switches like serversManage your switches like servers
Manage your switches like servers
 

Plus de RUDDER

Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 : gestion des configurations et mise en conformité chez un service ...Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
RUDDER
 
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
RUDDER
 
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
RUDDER
 
RUDDER - Continuous Configuration (configuration management + continuous aud...
 RUDDER - Continuous Configuration (configuration management + continuous aud... RUDDER - Continuous Configuration (configuration management + continuous aud...
RUDDER - Continuous Configuration (configuration management + continuous aud...
RUDDER
 

Plus de RUDDER (20)

What if configuration management didn't need to be lvl60 in dev?
What if configuration management didn't need to be lvl60 in dev?What if configuration management didn't need to be lvl60 in dev?
What if configuration management didn't need to be lvl60 in dev?
 
Servers compliance: audit, remediation, proof
Servers compliance: audit, remediation, proofServers compliance: audit, remediation, proof
Servers compliance: audit, remediation, proof
 
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
OSIS 2019 - Qu’apporte l’observabilité à la gestion de configuration ?
 
OW2Con - Configurations, do you prove yours?
OW2Con - Configurations, do you prove yours?OW2Con - Configurations, do you prove yours?
OW2Con - Configurations, do you prove yours?
 
The new plugin ecosystem in RUDDER 5.0
The new plugin ecosystem in RUDDER 5.0The new plugin ecosystem in RUDDER 5.0
The new plugin ecosystem in RUDDER 5.0
 
What uses for observing operations of Configuration Management?
What uses for observing operations of Configuration Management?What uses for observing operations of Configuration Management?
What uses for observing operations of Configuration Management?
 
UX challenges of a UI-centric config management tool
UX challenges of a UI-centric config management toolUX challenges of a UI-centric config management tool
UX challenges of a UI-centric config management tool
 
What happened in RUDDER in 2018 and what’s next?
What happened in RUDDER in 2018 and what’s next?What happened in RUDDER in 2018 and what’s next?
What happened in RUDDER in 2018 and what’s next?
 
What is RUDDER and when should I use it?
What is RUDDER and when should I use it?What is RUDDER and when should I use it?
What is RUDDER and when should I use it?
 
Fosdem - Configurations do you prove yours?
Fosdem - Configurations  do you prove yours?Fosdem - Configurations  do you prove yours?
Fosdem - Configurations do you prove yours?
 
L'audit en continu : clé de la conformité démontrable (#POSS 2018)
L'audit en continu : clé de la conformité démontrable (#POSS 2018)L'audit en continu : clé de la conformité démontrable (#POSS 2018)
L'audit en continu : clé de la conformité démontrable (#POSS 2018)
 
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
Fiabilité et conformité continues en production avec Rudder (#BBOOST 2018)
 
Stay up - voyage d'un éditeur de logiciels libres
Stay up - voyage d'un éditeur de logiciels libresStay up - voyage d'un éditeur de logiciels libres
Stay up - voyage d'un éditeur de logiciels libres
 
How we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50kHow we scaled Rudder to 10k, and the road to 50k
How we scaled Rudder to 10k, and the road to 50k
 
What's new and what's next in Rudder
What's new and what's next in RudderWhat's new and what's next in Rudder
What's new and what's next in Rudder
 
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 : gestion des configurations et mise en conformité chez un service ...Poss 2017 : gestion des configurations et mise en conformité chez un service ...
Poss 2017 : gestion des configurations et mise en conformité chez un service ...
 
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
Poss 2017 - la continuité, arme secrète de la gestion du si - cas concret de ...
 
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
POSS 2017 : Comment automatiser son infrastructure quand... on a pas le temps...
 
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
DevOps D-Day 2017 - Gestion des configurations et mise en conformité chez un ...
 
RUDDER - Continuous Configuration (configuration management + continuous aud...
 RUDDER - Continuous Configuration (configuration management + continuous aud... RUDDER - Continuous Configuration (configuration management + continuous aud...
RUDDER - Continuous Configuration (configuration management + continuous aud...
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Cobbler - Fast and reliable multi-OS provisioning

  • 1. Normation – CC-BY-SA normation.com CobblerCobbler Fast and reliable multi-OS provisionningFast and reliable multi-OS provisionning Matthieu CERDA – LOADays 2013
  • 2. Normation – Tous droits réservés normation.com Who are you Job System administrator Phone: +33 6 30 53 40 00 Email : matthieu.cerda@normation.com Web site : www.normation.com @Kegeruneku
  • 3. Normation – CC-BY-SA normation.com 3 Problem ● Problem : Deploying new VMs is a painfully heavy and error-prone process. ● Solution: A tool able to automatize this the best way possible !
  • 4. Normation – CC-BY-SA normation.com 4 PXE ● “The Preboot eXecution Environment (PXE, also known as Pre- Execution Environment; sometimes pronounced "pixie") is an environment to boot computers using a network interface independently of data storage devices (like hard disks) or installed operating systems.” (Thanks Wikipedia) ●Created to respond to a simple problem: before it, even with automated installations, the administrator needed to move towards the machine, and boot it manually with a media. ● Administrators are lazy (well, I am), and thus needed something to install a machine from the boot to the login prompt, with the least human interference possible.
  • 5. Normation – CC-BY-SA normation.com 5 Problem (again) ● PXE boot needs a tight and coherent integration of all these services: ● DHCP ● TFTP ● HTTP ● (DNS, optionnal) ● Installing them and setting them requires specific experience, skills and time. ● Time + skills = investment (either from people or from the wallet) ● 1st problem: PXE is expensive
  • 6. Normation – CC-BY-SA normation.com 6 Problem (this is getting annoying !!!) ● PXE boot needs a tight and coherent integration of all these services: ● DHCP ● TFTP ● HTTP ● (DNS, optionnal) ● Keeping them in sync is horrifyingly painful, you KNOW something will break one day or another (typos, forgot to copy a file ...) ● So, 2nd trouble: PXE is hard to manage
  • 7. Normation – CC-BY-SA normation.com 7 Context ID Card ● Name : ● Birthdate : 2007 ● Language : Python ● Licence : GPL ● Author : Michael DeHaan ( You went to the Ansible presentation this morning, did you ? ) ● Dependencies : DHCP/TFTP/[DNS] ● Disponibility : Packages ( or sources ) ● Tested and approved™ :
  • 8. Normation – CC-BY-SA normation.com 8 A little project history Birth 2011: Site switching from Fedora hosting to Github 2012: Used by Canonical for OpenStack tests
  • 9. Normation – CC-BY-SA normation.com 9 Global architecture Distributions Kernel Initrd Arguments Classes Profiles Repositories Network Proxy Classes System LDAP RHN/RHM Network Virtualization Puppet REST API
  • 10. Normation – CC-BY-SA normation.com 10 Global architecture CLI Koan LibVirt API Cobbler PXE DNS TFTP DHCP Physical machines Virtual machines HTTP Web UI
  • 11. Normation – CC-BY-SA normation.com 11 Distro ●A basic representation of an OS ●Added through the CLI
  • 12. Normation – CC-BY-SA normation.com 12 Profile ●Abstraction layer between distros ans systems ●Can be used to define roles, for example: web_server, dns_server...
  • 13. Normation – CC-BY-SA normation.com 13 System ●The most important part, what the user will see ! ●Will define physical or virtual entities, like a libvirt VM or a plain computer. The MAC address serves as a binding between the low level PXE and the system definition.
  • 14. Normation – CC-BY-SA normation.com 14 KOAN ● Works “out of the box” ● Adds LibVirt support to Cobbler
  • 15. Normation – CC-BY-SA normation.com 15 KOAN ● Demo !!!
  • 16. Normation – CC-BY-SA normation.com 16 Configuration ● /etc/cobbler/settings ● YAML file, setting global variables and special cobblerd specific parameters ● Can then be overriden by other abstraction layers ● /etc/cobbler/modules ● Defines which services will be managed (and how) ● Also defines how authentication will be done (for web UI for example) ● /var/lib/cobbler/... ● Stores all the distro/profile/system/... configurations
  • 17. Normation – CC-BY-SA normation.com 17 Usefulness ● “So, why is Cobbler so useful for you ?” ● Aptitude/yum install cobbler, as simple as that ● Just works, out of the box ● Easy integration with Virtualization software ● Seriously, managing PXE by hand is a pain in the neck... ● “Remember when we used to manage kickstart files by hand ?” ● “Yeah, so many hours I could have used to slack looking at cat videos...”
  • 18. Normation – CC-BY-SA normation.com 18 Usefulness ● “Can I deploy this in my company / home / toaster now ?” ● Yes ! It actually integrates well with existing machines/services. ● Just works, out of the box ● All you need is a machine, a distro CD / ISO and you're done. ● Can by used as an emergency crash recovery solution ● Used in a french company after a natural catastrophe (flood) to restore quickly a new bunch of machines back to an operationnal state. [reference needed]
  • 19. Normation – CC-BY-SA normation.com 19 Integration with existing services ● Cobbler can integrate with services like: ● Local repository mirrors ● Local DNS / TFTP / ... services ● Configuration management: CFEngine / Puppet / Chef / Ansible / ...
  • 20. Normation – CC-BY-SA normation.com 20 Protips ● When you install Cobbler, remember some important points ● SELinux is tricky ● DISABLE STP ON YOUR BRIDGES !!! ● If something fails, check your firewall. If it still fails, check again. ● Always have a sandbox environment to play with. ● KVM is a great tool, especially with libvirt ● Keep It Simple and Safe
  • 21. Normation – CC-BY-SA normation.com 21 Extensibility ● We develop Rudder, an IT automatization and conformity tool. ● Goal: Add a support for Cobbler ● Problem: Cobbler only supports Cobbler at this time ! ● Solution: Add the necessary bindings ourselves ! (All hail Python o/) Let us take a slightly more complex case... System LDAP RHN/RHM Network Virtualization Puppet Rudder
  • 23. Normation – CC-BY-SA normation.com 23 Thank you for your attention ! ( Questions time )