SlideShare a Scribd company logo
MIXED ENVIRONMENTS
CONFIGURATION & LIFECYCLE:
1
KIREEV
DMITRY
2github.com/kireevco
DevOps, Tinkerer, Hacker
WE HAVE TO BE
SUPERHEROES
We have no choice…
3
WORLD
IDEAL
4
WORLD
(LESS) IDEAL
5
REALITY
BITTER
6
CONFIGURATION & LIFECYCLE: MIXED ENVIRONMENTS
LINUX VS WINDOWS: SO DIFFERENT
▸ ls vs dir
▸ bash vs cmd
▸ cat vs type
▸ $PATH vs %PATH%
▸ /boot vs C:Windows
▸ ext4 vs NTFS
▸ apt-get vs ???
7
CAN THEY LIVE
TOGETHER?
8
WE MUST LEARN TO LIVE
TOGETHER AS BROTHERS OR
PERISH TOGETHER AS FOOLS
Martin Luther King, Jr.
CONFIGURATION & LIFECYCLE: MIXED ENVIRONMENTS 9
- CONFIGURATION MANAGEMENT
- LIFECYCLE MANAGEMENT
YES.
We just need something that would make sense for both worlds:
10
CONFIGURATION
MANAGEMENT
11
CONFIGURATION MANAGEMENT
WHEN IT IS MORE OF SPAGHETTI
▸ Scripts are hard to re-use
▸ High code duplication
▸ High entry point for new staff
▸ Low documentation quality
▸ No clear standards
▸ No business behind provision.sh
12
CONFIGURATION MANAGEMENT
BENEFITS OF CONFIGURATION MANAGEMENT
▸ Improved Efficiency (no more duplication and golden image maintenance. Almost like in Hollywood)
▸ Visibility
▸ Confidence (if a change is made it is made to a right range of systems)
▸ Auditability (source control and reports allow you to track all changes down)
▸ Predictability (rolling out a change is similar to a software release)
▸ Configuration Drift Remediation (two or more entities are identical)
▸ Living Documentation (configurations serve as a «source of truth» and are up-to-date)
▸ Captured Effort (two or more entities are identical)
13
CONFIGURATION MANAGEMENT
CROSS-PLATFORM
▸ Puppet
▸ Chef
▸ Ansible
▸ Salt
▸ CFEngine
WINDOWS PROPRIETARY
▸ PowerShell DSC
▸ SCCM
▸ WDS
▸ Dell KACE
14
CONFIGURATION MANAGEMENT
PUPPET: MULTI-PLATFORM SUPPORT
▸ Linux
▸ RHEL, Debian, Ubuntu, Fedora, SUSE, Gentoo, Arch
▸ BSD
▸ FreeBSD, OpenBSD
▸ Other Unix
▸ MacOS X, Solaris, AIX, HP-UX
▸ Microsoft Windows
15
CONFIGURATION MANAGEMENT
PUPPET: WINDOWS & LINUX SUPPORT
▸ IIS
▸ Powershell
▸ Windows Registry
▸ NewRelic Agent
▸ Apt-Get
▸ Nginx
▸ Bash
▸ Augeas
▸ NewRelic Agent
▸ Chocolatey
16
CONFIGURATION MANAGEMENT
PUPPET: DEFINED STATE OF RESOURCES
▸ Define
▸ Test
▸ Enforce
▸ Report
17
CONFIGURATION MANAGEMENT
WINDOWS
LINUX
FILE RESOURCE
18
CONFIGURATION MANAGEMENT
IIS CONFIG EXAMPLE
▸ Install IIS form scratch
▸ Site directory
▸ Hosts file entry
▸ IIS App Pool
▸ IIS Site
▸ IIS Application
▸ IIS Virtual Directory
▸ Includes SSL configuration
19
CONFIGURATION MANAGEMENT
NGINX CONFIG EXAMPLE
▸ Install and configure Nginx
▸ Set up reverse proxy
▸ Configure root location
20
CONFIGURATION MANAGEMENT
SOURCE CONTROL
21
CONFIGURATION MANAGEMENT
WINDOWS PACKAGE MANAGER
22
THIS?
HOW DO WE USE
23
LIFE CYCLE
MANAGEMENT
24
LIFECYCLE MANAGEMENT
CROSS-PLATFORM
▸ Puppet razor
▸ Chef knife-bootstrap
▸ Foreman (GUI, foreman-cli, REST)
WINDOWS PROPRIETARY
▸ SCCM
▸ WDS
▸ Dell KACE
25
LIFE CYCLE MANAGEMENT
Provisioning Configuration Monitoring
Provision on bare-metal
& public or private
clouds all from one
place with one simple
process.
A complete configuration
management solution
including an ENC for
Puppet and Salt, built-in
support for parameterized
classes and hierarchical
parameter storage.
Collect Puppet, Chef and
Salt reports and facts.
Monitor host
configuration, report
status, distribution and
trends.
THE FOREMAN
26
LIFE CYCLE MANAGEMENT
THE FOREMAN
▸ Platform agnostic provisioning
▸ CLI
▸ RBAC and LDAP integration
▸ Plugins
▸ API
▸ Audits
▸ Host groups
▸ ERB Templates
▸ PXEBoot, TFTP, Kickstart
27
LIFECYCLE MANAGEMENT 28
LIFECYCLE MANAGEMENT
HOST INFO
29
LIFECYCLE MANAGEMENT
HOST CONFIGURATION
30
LIFECYCLE MANAGEMENT
HOST CONFIGURATION
31
TEMPLATES
FOREMAN
32
LIFECYCLE MANAGEMENT
UNATTEND.XML
33
Xml kickstart for Windows
LIFECYCLE MANAGEMENT
JOIN DOMAIN SNIPPET
34
LIFECYCLE MANAGEMENT
COMMUNITY TEMPLATES
35
WIMAGING
FOREMAN
36
LIFECYCLE MANAGEMENT
WIMAGING
▸ Linux style installation using http:// or ftp:// installation media
▸ No extra servers like WDS needed - all relevant settings can
be configured in Foreman directly
▸ Official Microsoft utilities are used for all relevant setup
stages making it easy to add (future) operating systems
▸ Driver installation during build time
▸ Support for localization settings (like time zone, locale, UI
language)
▸ Optional domain join including target OU
▸ Optional local user creation
▸ Support for Foreman's root password using Base64 encoding
▸ Correctly report finished host building
▸ Optional software installation and user tasks at the end of the
build (like installing puppet etc)
37
LIFECYCLE MANAGEMENT
WIMAGING: 10_INIT.CMD, CALLED FROM STARTNET.CMD
During WinPE boot
38
LIFECYCLE MANAGEMENT
WIMAGING FLOW
▸ Create host (user)
▸ Download bootfiles
▸ Boot to WinPE via wimboot
▸ Partition disk
▸ Apply image
▸ Add drivers
▸ User software (Puppet)
▸ Finish script
▸ Reboot
39
LIFECYCLE MANAGEMENT
WIMAGING SETUP
▸ Clone repo
▸ Setup Foreman & Templates
▸ Setup Medium
▸ Produce boot medium
▸ Produce install medium
▸ Sync medium to http/ftp
▸ Provision host
40
CONFIGURATION & LIFECYCLE: MIXED ENVIRONMENTS
WHAT DO WE GET
▸ Infrastructure as a code
▸ Platform-agnostic
▸ Reusable code & templates (Puppet, ERB) that make sense
▸ Single point of entry for DevOps, Developers, APIs
▸ As much Open Source as possible (presence +
contribution)
▸ Well supported (RedHat, PuppetLabs, Community)
41
QUESTIONS?
All trademarks, logos, characters are properties of their respective owners.
(Or maybe a quick demo)
42
MIXED ENVIRONMENT
OTHER THINGS THAT I SHOULD’VE MENTIONED
▸ Foreman supports Chef, Salt Ansible
▸ profile::nginx::www_site_com vs provision.sh
▸ Chocolatey supports private repositories
▸ Puppet can also operate in server-less mode
▸ IntelliJ IDEA or RubyMine support puppet DSL
▸ Logstash is awesome
43

More Related Content

PDF
Apache Provisionr (incubating) - Bucharest JUG 10
PPTX
Using puppet, foreman and git to develop and operate a large scale internet s...
ODP
Foreman in your datacenter
PPTX
Foreman-and-Puppet-for-Openstack-Audo-Deployment
PDF
Connecting AWS and Katello/The Foreman
PDF
Openstack il2014 staypuft- your friendly foreman openstack installer
ODP
Managing your SaltStack Minions with Foreman
ODP
SaltStack Integration with Foreman (2016)
Apache Provisionr (incubating) - Bucharest JUG 10
Using puppet, foreman and git to develop and operate a large scale internet s...
Foreman in your datacenter
Foreman-and-Puppet-for-Openstack-Audo-Deployment
Connecting AWS and Katello/The Foreman
Openstack il2014 staypuft- your friendly foreman openstack installer
Managing your SaltStack Minions with Foreman
SaltStack Integration with Foreman (2016)

What's hot (20)

PDF
Deploying RDO OpenStack with a pair of plugins
ODP
Auto infra with_foreman_katello
PDF
Full Stack Automation with Katello & The Foreman
ODP
Linux host orchestration with Foreman, Puppet and Gitlab
PPTX
Deploying Foreman in Enterprise Environments
ODP
Foreman in Your Data Center :OSDC 2015
PDF
Foreman presentation
ODP
PXEless Discovery with Foreman
PDF
OpenNebula, the foreman and CentOS play nice, too
ODP
CfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
PDF
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
PDF
Extending Foreman the easy way with foreman_hooks
PDF
Cobbler - Fast and reliable multi-OS provisioning
PDF
PuppetCamp Sydney 2012 - Building a Multimaster Environment
PDF
OSDC 2015: Stephen Benjamin | Foreman in Your Data Center
PDF
Making your first contribution to Foreman
PDF
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
PPTX
High availability for puppet - 2016
PDF
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
PDF
Spot Trading - A case study in continuous delivery for mission critical finan...
Deploying RDO OpenStack with a pair of plugins
Auto infra with_foreman_katello
Full Stack Automation with Katello & The Foreman
Linux host orchestration with Foreman, Puppet and Gitlab
Deploying Foreman in Enterprise Environments
Foreman in Your Data Center :OSDC 2015
Foreman presentation
PXEless Discovery with Foreman
OpenNebula, the foreman and CentOS play nice, too
CfgMgmtCamp 2015 - Managing the Content Lifecycle with Katello
OSCamp 2019 | #3 Ansible: Foreman Discovery by Adam Ruzicka
Extending Foreman the easy way with foreman_hooks
Cobbler - Fast and reliable multi-OS provisioning
PuppetCamp Sydney 2012 - Building a Multimaster Environment
OSDC 2015: Stephen Benjamin | Foreman in Your Data Center
Making your first contribution to Foreman
SaltConf14 - Matthew Williams, Flowroute - Salt Virt for Linux contatiners an...
High availability for puppet - 2016
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
Spot Trading - A case study in continuous delivery for mission critical finan...
Ad

Viewers also liked (20)

PDF
Dell Solutions Tour 2015 - Chromebook - Dell og Google viser vei, Ross Mahon ...
PDF
Fifty shades of compliance by Mark Bartrick, Forrester Research
PDF
How to work with a vendor during an audit & what not to do – is there such a ...
PDF
KACE Agent Architecture and Troubleshooting Overview
PPS
O Mundo Clama por Paz
PPTX
Welcome to Hootsuite Enterprise
PDF
State of Women and Girls 2012 Final Edition
PPTX
KARADUT ŞURUBU
PPTX
Proo vpsk rus
PPTX
Meetup Geneve Monitoring
PDF
IBM Audit Defence Strategies: Eric Chiu - Fisher IT Asset Consulting (ITAM Re...
PPTX
membrane models and biosynthesis
PPTX
CLAPI et API REST sous Centreon 2.8
PDF
IBM License management
PPT
Chapter 2
PPTX
Working Your Way Around Hootsuite Dashboard
PPTX
PPS
A Presentation about Puppet that I've made at the OSSPAC conference
PPSX
ICAK International Meeting 2018
PDF
Final_Violence Profile Report_6 21 12_PHD FINAL
Dell Solutions Tour 2015 - Chromebook - Dell og Google viser vei, Ross Mahon ...
Fifty shades of compliance by Mark Bartrick, Forrester Research
How to work with a vendor during an audit & what not to do – is there such a ...
KACE Agent Architecture and Troubleshooting Overview
O Mundo Clama por Paz
Welcome to Hootsuite Enterprise
State of Women and Girls 2012 Final Edition
KARADUT ŞURUBU
Proo vpsk rus
Meetup Geneve Monitoring
IBM Audit Defence Strategies: Eric Chiu - Fisher IT Asset Consulting (ITAM Re...
membrane models and biosynthesis
CLAPI et API REST sous Centreon 2.8
IBM License management
Chapter 2
Working Your Way Around Hootsuite Dashboard
A Presentation about Puppet that I've made at the OSSPAC conference
ICAK International Meeting 2018
Final_Violence Profile Report_6 21 12_PHD FINAL
Ad

Similar to Configuration and lifecycle in Mixed environments (20)

PDF
Webdevops - Neos Docker
PDF
Badge Hacking with Nerves Workshop - ElixirConf 2016 - Justin Schneck and Fra...
PDF
Android Binder IPC for Linux
PDF
Hybrid (Windows + Linux) Apps with Docker Swarm
PDF
CodeFest 2013. Mosesohn M. — Automating environments with Cobbler
PDF
Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
PDF
Linux Containers From Scratch
PDF
The state of the swarm
PPTX
WinFE: The (Almost) Perfect Triage Tool
PDF
Micro Datacenter & Data Warehouse
PPTX
Introduction to docker
PDF
Challenges for Deploying a High-Performance Computing Application to the Cloud
PDF
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
PDF
Install power linux through cdrom and network redhat and suse
PDF
Building
PDF
Network Automation: Ansible 101
PDF
BSides Iowa 2018: Windows COM: Red vs Blue
PPTX
Exp-3.pptx
PPTX
LinuxTraining_3.pptx
ODP
Introduction to Diskless Remote Boot in Linux
Webdevops - Neos Docker
Badge Hacking with Nerves Workshop - ElixirConf 2016 - Justin Schneck and Fra...
Android Binder IPC for Linux
Hybrid (Windows + Linux) Apps with Docker Swarm
CodeFest 2013. Mosesohn M. — Automating environments with Cobbler
Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Linux Containers From Scratch
The state of the swarm
WinFE: The (Almost) Perfect Triage Tool
Micro Datacenter & Data Warehouse
Introduction to docker
Challenges for Deploying a High-Performance Computing Application to the Cloud
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Install power linux through cdrom and network redhat and suse
Building
Network Automation: Ansible 101
BSides Iowa 2018: Windows COM: Red vs Blue
Exp-3.pptx
LinuxTraining_3.pptx
Introduction to Diskless Remote Boot in Linux

Recently uploaded (20)

PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Welding lecture in detail for understanding
PPTX
Geodesy 1.pptx...............................................
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Construction Project Organization Group 2.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Operating System & Kernel Study Guide-1 - converted.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
bas. eng. economics group 4 presentation 1.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Arduino robotics embedded978-1-4302-3184-4.pdf
Lesson 3_Tessellation.pptx finite Mathematics
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
OOP with Java - Java Introduction (Basics)
Welding lecture in detail for understanding
Geodesy 1.pptx...............................................
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Lecture Notes Electrical Wiring System Components
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
additive manufacturing of ss316l using mig welding
Construction Project Organization Group 2.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
UNIT-1 - COAL BASED THERMAL POWER PLANTS

Configuration and lifecycle in Mixed environments