SlideShare uma empresa Scribd logo
1 de 44
Baixar para ler offline
Satellite 6
Automation with Puppet
Michael Lessard, RHCA
Senior Solutions Architect, Red Hat
mlessard@redhat.com
michaellessard
April 2014
Contributors :
Jerome Doucerain (Bell)
Simon Piette (Savoir-faire Linux)
2 Satellite 6 – Automation with Puppet
Agenda
● Configuration management with Satellite 5.x
● Satellite 6 new features
● Introduction to Puppet
● Demonstration
● Puppet and Satellite 6
● Why Puppet ?
● Considerations if you want to move to Satellite 6
3
Satellite 6 – Automation with Puppet
Satellite 5.x
Configuration management
4 Satellite 6 – Automation with Puppet
Satellite 5.x – Configuration management features
● Manage all of your machines configurations from one
central location
● Create configuration channels for a machines or a
group of machines
● Create new files or upload existing config files
● Manage revision, compare versions
● Deploy configuration changes as part of config
management or associate with kickstart process
5 Satellite 6 – Automation with Puppet
6 Satellite 6 – Automation with Puppet
7 Satellite 6 – Automation with Puppet
8 Satellite 6 – Automation with Puppet
Row 1 Row 2 Row 3 Row 4
0
2
4
6
8
10
12
Column 1
Column 2
Column 3
9 Satellite 6 – Automation with Puppet
10 Satellite 6 – Automation with Puppet
Satellite 5.x – Configuration management cl
[r/]# rhncfg-manager create-channel rhel6-prod
Creating config channel rhel6-prod
[r/]# rhncfg-manager add --channel rhel6-prod /etc/hosts
Using server name satellitedemo.mlc.dom
Pushing to channel rhel6-prod
[r/]# rhncfg-manager diff --channel=rhel6-prod /etc/hosts
- 192.168.100.4 vm2.mlc.dom
+ 192.168.100.56 friday.mlc.dom
[r/]# rhncfg-client get /etc/hosts
Deploying /etc/hosts
11 Satellite 6 – Automation with Puppet
Satellite 6 – Foundation
Content Management
12 Satellite 6 – Automation with Puppet
13 Satellite 6 – Automation with Puppet
14 Satellite 6 – Automation with Puppet
Red Hat Satellite 5 & 6 Core Capabilities
✔ Provision 10s – 1000s
systems
✔ Configuration Management
✔ Automated Software
Distribution
✔ Lifecycle Management
✔ Administrator Dashboard
✔ Provision 10s – 10,000+ systems
✔ Recipe-Style Configuration
Management
✔ Automated Software Distribution
✔ Refined Lifecycle Management
✔ Customizable Dashboards
✔ Simplified Content Management
✔ Drift Management
✔ Federated Services &
Management
✔ Deploy on VMware, RHEV, EC2,
and OpenStack
Red Hat Satellite 5 Red Hat Satellite 6
15
Satellite 6 – Automation with Puppet
Introduction to Puppet
16 Satellite 6 – Automation with Puppet
What is Puppet ?
● Think of it as infrastructure code
● Describe stats, no step
● Paint a picture of your ideal and most clean system
Puppet does the rest
● Puppet focuses on managing constructs like users,
services and packages
● Puppet can detect the current state of the system
(Facter)
● Won’t make changes unless necessary
17 Satellite 6 – Automation with Puppet
Puppet Architecture
18 Satellite 6 – Automation with Puppet
PUPPET DSL
Example – managing ntp services with puppet
class ntp {
package { "ntp":
ensure => installed,
}
file { "ntp.conf":
path => '/etc/ntp.conf',
ensure => file,
require => Package[ "ntp" ],
source => "puppet:///modules/ntp/ntp.conf",
}
service { 'ntp':
name => 'ntpd',
ensure => running,
enable => true,
subscribe => File[ "ntp.conf" ],
}
}
PACKAGEPACKAGE
CONFIGURATIONCONFIGURATION
SERVICESERVICE
19 Satellite 6 – Automation with Puppet
Example – managing sshd service
class sshd {
augeas { "sshd_config":
context => "/files/etc/ssh/sshd_config",
changes => [
"set PermitRootLogin yes",
"set UsePAM no",
],
notify => Service[ "sshd" ]
}
service { "sshd":
ensure => running,
enable => true,
hasrestart => true,
}
}
20 Satellite 6 – Automation with Puppet
How does Puppet know about your system ?
● Using the Ruby library Facter
● Facter supports a large numbers of predefined facts
● Customs facts can be defined
# facter
architecture => x86_64
bios_vendor => Seabios
bios_version => 0.5.1
blockdevices => vda,vdb
interfaces => eth0,lo
ipaddress => 172.16.27.44
ipaddress_eth0 => 172.16.27.44
is_virtual => true
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.32-431.el6.x86_64
kernelversion => 2.6.32
etc, ...
21
Satellite 6 – Automation with Puppet
Installation
22 Satellite 6 – Automation with Puppet
Installation Puppet server (RHEL 6)
[r/]# rhn-channel -a -c rhel-x86_64-server-optional-6
[r/]# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
[r/]# yum install puppet-server puppet
[r/]# puppet --version
3.4.3
[r/]# chkconfig puppetmaster on ; service puppetmaster start
[r/]# chkconfig puppet on ; service puppet start
DON’T FORGET DNS RESOLUTION AND TIME SYNCHRONISATION
23 Satellite 6 – Automation with Puppet
Installation Puppet client (RHEL 6)
[r/]# rhn-channel -a -c rhel-x86_64-server-optional-6
[r/]# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
[r/]# yum install puppet
[r/]# vim/etc/puppet/puppet.conf (add the following at the bottom)
server = puppet.example.com
runinterval = 120
report = true
[r/]# chkconfig puppet on ; service puppet start
On the puppetmaster server, sign the certs (possible to auto-sign)
[r/]# puppet cert sign puppet-client.example.com
DON’T FORGET DNS RESOLUTION AND TIME SYNCHRONISATION
24
Satellite 6 – Automation with Puppet
Demonstration
25 Satellite 6 – Automation with Puppet
First example 1/2 - deploy some files
On the puppetmaster server :
[r/]# cd /etc/puppet/modules
[r/]# mkdir -p specdirs/{files,manifests}
[r/]# vim /etc/puppet/modules/specfirs/manifest
class specdirs {
file { ['/test/','/test/etc','/test/etc/rc/','/test/etc/rc/shared']:
ensure => "directory",
owner => "root",
group => "root",
mode => "750",
}
}
26 Satellite 6 – Automation with Puppet
First example 2/2
[r/]# vim /etc/puppet/manifests/site.pp
#-----------------------------------------------------
# site.pp
#-----------------------------------------------------
include specdirs
[r/]# puppet apply /etc/puppet/manifests/site.pp
Notice: Compiled catalog for puppetmaster.mlc.dom in environment production in 0.05
seconds
Notice: /Stage[main]/Specdirs/File[/test/]/ensure: created
Notice: /Stage[main]/Specdirs/File[/test/etc]/ensure: created
Notice: /Stage[main]/Specdirs/File[/test/etc/rc/]/ensure: created
Notice: /Stage[main]/Specdirs/File[/test/etc/rc/shared]/ensure: created
Notice: Finished catalog run in 0.09 seconds
On the puppet client :
Test the communication with the server
[r/]# puppet agent --test --waitforcert 60
27
Satellite 6 – Automation with Puppet
Puppet dashboard
Installation
28 Satellite 6 – Automation with Puppet
Install Puppet – Dashboard 1/3
On the Puppetmaster server
[r/]# yum install mysql mysql-server puppet-dashboard
[r/]# vi /etc/my.cnf (add the following)
max_allowed_packet = 32M
[r/]# chkconfig mysqld on ; service mysqld start
[r/]# vi /usr/share/puppet-dashboard/config/settings.yml (change the following)
(run rake time:zones:local to find your timezone)
time_zone: 'Eastern Time (US & Canada)'
29 Satellite 6 – Automation with Puppet
Install Puppet – Dashboard 2/3
[r/]# mysql
mysql> CREATE DATABASE dashboard CHARACTER SET utf8;
mysql> CREATE USER 'dashboard'@'localhost' IDENTIFIED BY 'my_password';
mysql> GRANT ALL PRIVILEGES ON dashboard.* TO 'dashboard'@'localhost';
mysql> quit
[r/]# cd ~puppet-dashboard && rake RAILS_ENV=production db:migrat
30 Satellite 6 – Automation with Puppet
Install Puppet – Dashboard 3/3
[r/]# chkconfig puppet-dasboard on ; service puppet-dashboard start
[r/]# vi /etc/puppet/puppet.conf
[master]
reports = store, http
reporturl = http://puppet.example.com:3000/reports/upload
[r/]# touch /usr/share/puppet-dashboard/log/production.log
[r/]# chmod 666 /usr/share/puppet-dashboard/log/production.log
[r/]# chkconfig puppet-dashboard-workers on ; service puppet-dashboard-workers
start
http://puppetmaster.mlc.dom:3000
31 Satellite 6 – Automation with Puppet
32
Satellite 6 – Automation with Puppet
PUPPET AND SATELLITE 6
33 Satellite 6 – Automation with Puppet
What Puppet does than Satellite doesn’t
● Start/restart services
● Restart a service after a configuration change
● Create users, remove users
● Aware of your systems state
● Enforce something
● Manages BSD/*nix and Windows (2003, 2008, 7)
● Resources relationship
● Edit a configuration file
34 Satellite 6 – Automation with Puppet
Why Puppet ?
Puppet vs Chef vs
Ansible vs Salt
Source :
http://www.infoworld.com/d/data-
center/review-puppet-vs-chef-vs-
ansible-vs-salt-231308?page=0,0
35 Satellite 6 – Automation with Puppet
Puppet / Satellite 6 considerations
● Keep Puppet modules as modular as possible and
single tasked
● Using role and profile classes is recommended.
● This will allow users to map the modules or role and
profile classes to Satellite host groups.
● User should consider building module artifacts as
archives as if using Puppet Forge. This will allow
import of modules into Satellite 6 and for it to display
details of the module.
● Define Modulefiles for modules so dependencies are
explicitly declared
36 Satellite 6 – Automation with Puppet
Puppet / Satellite 6 considerations
● Manifests inside of modules are supported, but
manifests containing classes outside of modules will
not be supported
● The use of node definitions within manifests is not
supported
node vm1.example.com {
file { '/tmp/test.txt' :
content => "Bye bye !!n",
}
}
● Hiera function call will be supported. (Foreman, alt:
smart variables)
37 Satellite 6 – Automation with Puppet
Puppet Forge
● A community driven web service
● A repository of modules
[r/]# puppet module list
[r/]# puppet module search apache
[r/]# puppet module install puppetlabs-apache
[r/]# puppet module upgrade puppetlabs-apach –version -.0.3
http://docs.puppetlabs.com/guides/module_guides/bgtm.html
38 Satellite 6 – Automation with Puppet
39
Satellite 6 – Automation with Puppet
References
40 Satellite 6 – Automation with Puppet
References
● Convert Satellite 5 Configuration channels into Puppet
Modules : Puppetize (http://youtu.be/x-mR8EfxJZw)
● A tool that takes arbitrary local file input and outputs
puppet DSL : Lambchop
(https://github.com/thoraxe/lambchop)
● http://docs.puppetlabs.com/geppetto/latest/index.html
Integrated development for puppet : Geppetto
Eclipse module
41
Satellite 6 – Automation with Puppet
Questions ?
42 Satellite 6 – Automation with Puppet
Puppet debugging notes
● Port 8140
● Cert troubles
● yum remove puppet
● rm -rf /var/lib/puppet
● rm -rf /etc/puppet
● On master
# puppet cert list (to see which ones require a signature)
# puppet cert list --all (show all certificates)
# puppet cert clean vm1.mlc.dom
# puppet cert revoke vm1.mlc.dom
43 Satellite 6 – Automation with Puppet
Scaling Puppet
● WEBrick, default webserver, 10 nodes max
● Passenger or Mongrel
● Passenger : mod_rail or mod_rack (Apache 2 module)
● Don’t use the deamon, use cronjob
● Puppet agent --onetime
● No central host (rsync, git) - scales infinitely
● More tricks in the puppet documentation
44
Satellite 6 – Automation with Puppet
THANK YOU !
Michael Lessard, RHCA
Senior Solutions Architect, Red Hat
mlessard@redhat.com
michaellessard

Mais conteúdo relacionado

Mais procurados

Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingSreenivas Makam
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes NetworkingCJ Cullen
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with AnsibleRayed Alrashed
 
High availability virtualization with proxmox
High availability virtualization with proxmoxHigh availability virtualization with proxmox
High availability virtualization with proxmoxOriol Izquierdo Vibalda
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Vietnam Open Infrastructure User Group
 
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...Vietnam Open Infrastructure User Group
 
Simplifying Your IT Workflow with Katello and Foreman
Simplifying Your IT Workflow with Katello and ForemanSimplifying Your IT Workflow with Katello and Foreman
Simplifying Your IT Workflow with Katello and ForemanNikhil Kathole
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansibleKhizer Naeem
 
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...Vietnam Open Infrastructure User Group
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeMartin Schütte
 
Rootless Containers
Rootless ContainersRootless Containers
Rootless ContainersAkihiro Suda
 
[락플레이스] RHEL8.4 웨비나 발표자료
[락플레이스] RHEL8.4 웨비나 발표자료 [락플레이스] RHEL8.4 웨비나 발표자료
[락플레이스] RHEL8.4 웨비나 발표자료 rockplace
 
Best practices and lessons learnt from Running Apache NiFi at Renault
Best practices and lessons learnt from Running Apache NiFi at RenaultBest practices and lessons learnt from Running Apache NiFi at Renault
Best practices and lessons learnt from Running Apache NiFi at RenaultDataWorks Summit
 
Open vSwitch Introduction
Open vSwitch IntroductionOpen vSwitch Introduction
Open vSwitch IntroductionHungWei Chiu
 
Getting Started with Kubernetes
Getting Started with Kubernetes Getting Started with Kubernetes
Getting Started with Kubernetes VMware Tanzu
 
Docker introduction
Docker introductionDocker introduction
Docker introductionPhuc Nguyen
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to AnsibleKnoldus Inc.
 

Mais procurados (20)

Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
 
High availability virtualization with proxmox
High availability virtualization with proxmoxHigh availability virtualization with proxmox
High availability virtualization with proxmox
 
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
Room 2 - 4 - Juncheng Anthony Lin - Redhat - A Practical Approach to Traditio...
 
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
Room 3 - 4 - Lê Quang Hiếu - How to be a cool dad: Leverage DIY Home Automati...
 
Simplifying Your IT Workflow with Katello and Foreman
Simplifying Your IT Workflow with Katello and ForemanSimplifying Your IT Workflow with Katello and Foreman
Simplifying Your IT Workflow with Katello and Foreman
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansible
 
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
Room 3 - 7 - Nguyễn Như Phúc Huy - Vitastor: a fast and simple Ceph-like bloc...
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as Code
 
Ansible
AnsibleAnsible
Ansible
 
Rootless Containers
Rootless ContainersRootless Containers
Rootless Containers
 
Docker, LinuX Container
Docker, LinuX ContainerDocker, LinuX Container
Docker, LinuX Container
 
[락플레이스] RHEL8.4 웨비나 발표자료
[락플레이스] RHEL8.4 웨비나 발표자료 [락플레이스] RHEL8.4 웨비나 발표자료
[락플레이스] RHEL8.4 웨비나 발표자료
 
Kubernetes PPT.pptx
Kubernetes PPT.pptxKubernetes PPT.pptx
Kubernetes PPT.pptx
 
Best practices and lessons learnt from Running Apache NiFi at Renault
Best practices and lessons learnt from Running Apache NiFi at RenaultBest practices and lessons learnt from Running Apache NiFi at Renault
Best practices and lessons learnt from Running Apache NiFi at Renault
 
Open vSwitch Introduction
Open vSwitch IntroductionOpen vSwitch Introduction
Open vSwitch Introduction
 
Getting Started with Kubernetes
Getting Started with Kubernetes Getting Started with Kubernetes
Getting Started with Kubernetes
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 

Destaque

Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedVCP Muthukrishna
 
How To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShellHow To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShellVCP Muthukrishna
 
How To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on UbuntuHow To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on UbuntuVCP Muthukrishna
 
How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7VCP Muthukrishna
 
How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7VCP Muthukrishna
 
How To Protect SSH Access with Fail2Ban on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7How To Protect SSH Access with Fail2Ban on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7VCP Muthukrishna
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7VCP Muthukrishna
 
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShellHow To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShellVCP Muthukrishna
 

Destaque (8)

Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failed
 
How To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShellHow To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShell
 
How To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on UbuntuHow To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on Ubuntu
 
How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7
 
How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7
 
How To Protect SSH Access with Fail2Ban on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7How To Protect SSH Access with Fail2Ban on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShellHow To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
 

Semelhante a Red Hat Satellite 6 - Automation with Puppet

Satellite 6 - Pupet Introduction
Satellite 6 - Pupet IntroductionSatellite 6 - Pupet Introduction
Satellite 6 - Pupet IntroductionMichael Lessard
 
SCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scalingSCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scalingStanislav Osipov
 
Iteratively introducing Puppet technologies in the brownfield; Jeffrey Miller
Iteratively introducing Puppet technologies in the brownfield; Jeffrey MillerIteratively introducing Puppet technologies in the brownfield; Jeffrey Miller
Iteratively introducing Puppet technologies in the brownfield; Jeffrey MillerPuppet
 
Puppet slides for intelligrape
Puppet slides for intelligrapePuppet slides for intelligrape
Puppet slides for intelligrapeSharad Aggarwal
 
Workflow story: Theory versus Practice in large enterprises by Marcin Piebiak
Workflow story: Theory versus Practice in large enterprises by Marcin PiebiakWorkflow story: Theory versus Practice in large enterprises by Marcin Piebiak
Workflow story: Theory versus Practice in large enterprises by Marcin PiebiakNETWAYS
 
Workflow story: Theory versus practice in Large Enterprises
Workflow story: Theory versus practice in Large EnterprisesWorkflow story: Theory versus practice in Large Enterprises
Workflow story: Theory versus practice in Large EnterprisesPuppet
 
Enabling ceph-mgr to control Ceph services via Kubernetes
Enabling ceph-mgr to control Ceph services via KubernetesEnabling ceph-mgr to control Ceph services via Kubernetes
Enabling ceph-mgr to control Ceph services via Kubernetesmountpoint.io
 
De-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environmentDe-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environmentSam Bashton
 
De-centralise and Conquer: Masterless Puppet in a Dynamic Environment
De-centralise and Conquer: Masterless Puppet in a Dynamic EnvironmentDe-centralise and Conquer: Masterless Puppet in a Dynamic Environment
De-centralise and Conquer: Masterless Puppet in a Dynamic EnvironmentPuppet
 
Scalable Systems Management with Puppet
Scalable Systems Management with PuppetScalable Systems Management with Puppet
Scalable Systems Management with PuppetPuppet
 
Scalable systems management with puppet
Scalable systems management with puppetScalable systems management with puppet
Scalable systems management with puppetPuppet
 
Integrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperationsIntegrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperationsLuca Mazzaferro
 
John Spray - Ceph in Kubernetes
John Spray - Ceph in KubernetesJohn Spray - Ceph in Kubernetes
John Spray - Ceph in KubernetesShapeBlue
 
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfOpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfssuser9e06a61
 
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Ajith Ramawickrama
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installationRobert Bohne
 
PaaSTA: Running applications at Yelp
PaaSTA: Running applications at YelpPaaSTA: Running applications at Yelp
PaaSTA: Running applications at YelpNathan Handler
 
Deploying PostgreSQL on Kubernetes
Deploying PostgreSQL on KubernetesDeploying PostgreSQL on Kubernetes
Deploying PostgreSQL on KubernetesJimmy Angelakos
 
2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed
2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed
2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbedDaniel Bimschas
 

Semelhante a Red Hat Satellite 6 - Automation with Puppet (20)

Satellite 6 - Pupet Introduction
Satellite 6 - Pupet IntroductionSatellite 6 - Pupet Introduction
Satellite 6 - Pupet Introduction
 
SCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scalingSCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scaling
 
Iteratively introducing Puppet technologies in the brownfield; Jeffrey Miller
Iteratively introducing Puppet technologies in the brownfield; Jeffrey MillerIteratively introducing Puppet technologies in the brownfield; Jeffrey Miller
Iteratively introducing Puppet technologies in the brownfield; Jeffrey Miller
 
Puppet slides for intelligrape
Puppet slides for intelligrapePuppet slides for intelligrape
Puppet slides for intelligrape
 
Workflow story: Theory versus Practice in large enterprises by Marcin Piebiak
Workflow story: Theory versus Practice in large enterprises by Marcin PiebiakWorkflow story: Theory versus Practice in large enterprises by Marcin Piebiak
Workflow story: Theory versus Practice in large enterprises by Marcin Piebiak
 
Workflow story: Theory versus practice in Large Enterprises
Workflow story: Theory versus practice in Large EnterprisesWorkflow story: Theory versus practice in Large Enterprises
Workflow story: Theory versus practice in Large Enterprises
 
Enabling ceph-mgr to control Ceph services via Kubernetes
Enabling ceph-mgr to control Ceph services via KubernetesEnabling ceph-mgr to control Ceph services via Kubernetes
Enabling ceph-mgr to control Ceph services via Kubernetes
 
De-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environmentDe-centralise and conquer: Masterless Puppet in a dynamic environment
De-centralise and conquer: Masterless Puppet in a dynamic environment
 
De-centralise and Conquer: Masterless Puppet in a Dynamic Environment
De-centralise and Conquer: Masterless Puppet in a Dynamic EnvironmentDe-centralise and Conquer: Masterless Puppet in a Dynamic Environment
De-centralise and Conquer: Masterless Puppet in a Dynamic Environment
 
Scalable Systems Management with Puppet
Scalable Systems Management with PuppetScalable Systems Management with Puppet
Scalable Systems Management with Puppet
 
Scalable systems management with puppet
Scalable systems management with puppetScalable systems management with puppet
Scalable systems management with puppet
 
Integrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperationsIntegrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperations
 
John Spray - Ceph in Kubernetes
John Spray - Ceph in KubernetesJohn Spray - Ceph in Kubernetes
John Spray - Ceph in Kubernetes
 
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfOpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
 
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
 
PaaSTA: Running applications at Yelp
PaaSTA: Running applications at YelpPaaSTA: Running applications at Yelp
PaaSTA: Running applications at Yelp
 
Deploying PostgreSQL on Kubernetes
Deploying PostgreSQL on KubernetesDeploying PostgreSQL on Kubernetes
Deploying PostgreSQL on Kubernetes
 
2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed
2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed
2013 09-02 senzations-bimschas-part4-setting-up-your-own-testbed
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 

Último

Hire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
Hire 💕 8617697112 Chamba Call Girls Service Call Girls AgencyHire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
Hire 💕 8617697112 Chamba Call Girls Service Call Girls AgencyNitya salvi
 
Genesis 1:6 || Meditate the Scripture daily verse by verse
Genesis 1:6  ||  Meditate the Scripture daily verse by verseGenesis 1:6  ||  Meditate the Scripture daily verse by verse
Genesis 1:6 || Meditate the Scripture daily verse by versemaricelcanoynuay
 
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceKanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceDamini Dixit
 
Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...Nitya salvi
 
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-..."Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...Ishwaholidays
 
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call GirlsGenuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call GirlsDeiva Sain Call Girl
 
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyHire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyNitya salvi
 
Sample sample sample sample sample sample
Sample sample sample sample sample sampleSample sample sample sample sample sample
Sample sample sample sample sample sampleCasey Keith
 
ITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsMarco Mazzeschi
 
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment BookingJhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkulauseyourbrain1122
 
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultantvisa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa ConsultantSherazi Tours
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking MenDelhi Call girls
 
sample sample sample sample sample sample
sample sample sample sample sample samplesample sample sample sample sample sample
sample sample sample sample sample sampleCasey Keith
 
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.Nitya salvi
 
Ooty call girls 📞 8617697112 At Low Cost Cash Payment Booking
Ooty call girls 📞 8617697112 At Low Cost Cash Payment BookingOoty call girls 📞 8617697112 At Low Cost Cash Payment Booking
Ooty call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑Damini Dixit
 
VIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call GirlsVIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call GirlsNitya salvi
 
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call GirlsDeiva Sain Call Girl
 

Último (20)

Hire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
Hire 💕 8617697112 Chamba Call Girls Service Call Girls AgencyHire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
Hire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
 
Genesis 1:6 || Meditate the Scripture daily verse by verse
Genesis 1:6  ||  Meditate the Scripture daily verse by verseGenesis 1:6  ||  Meditate the Scripture daily verse by verse
Genesis 1:6 || Meditate the Scripture daily verse by verse
 
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceKanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls 👉👉 8617697112⭐⭐ 100% Genuine Escort Service ...
 
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-..."Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
 
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call GirlsGenuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
 
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyHire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
 
Sample sample sample sample sample sample
Sample sample sample sample sample sampleSample sample sample sample sample sample
Sample sample sample sample sample sample
 
ITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomads
 
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment BookingJhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
Jhargram call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkula
 
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultantvisa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men
 
Discover Mathura And Vrindavan A Spritual Journey.pdf
Discover Mathura And Vrindavan A Spritual Journey.pdfDiscover Mathura And Vrindavan A Spritual Journey.pdf
Discover Mathura And Vrindavan A Spritual Journey.pdf
 
sample sample sample sample sample sample
sample sample sample sample sample samplesample sample sample sample sample sample
sample sample sample sample sample sample
 
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
 
Ooty call girls 📞 8617697112 At Low Cost Cash Payment Booking
Ooty call girls 📞 8617697112 At Low Cost Cash Payment BookingOoty call girls 📞 8617697112 At Low Cost Cash Payment Booking
Ooty call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
 
VIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call GirlsVIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
VIP Vapi Call Girls 📞 8617697112 Vapi Call Girls
 
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
 

Red Hat Satellite 6 - Automation with Puppet

  • 1. Satellite 6 Automation with Puppet Michael Lessard, RHCA Senior Solutions Architect, Red Hat mlessard@redhat.com michaellessard April 2014 Contributors : Jerome Doucerain (Bell) Simon Piette (Savoir-faire Linux)
  • 2. 2 Satellite 6 – Automation with Puppet Agenda ● Configuration management with Satellite 5.x ● Satellite 6 new features ● Introduction to Puppet ● Demonstration ● Puppet and Satellite 6 ● Why Puppet ? ● Considerations if you want to move to Satellite 6
  • 3. 3 Satellite 6 – Automation with Puppet Satellite 5.x Configuration management
  • 4. 4 Satellite 6 – Automation with Puppet Satellite 5.x – Configuration management features ● Manage all of your machines configurations from one central location ● Create configuration channels for a machines or a group of machines ● Create new files or upload existing config files ● Manage revision, compare versions ● Deploy configuration changes as part of config management or associate with kickstart process
  • 5. 5 Satellite 6 – Automation with Puppet
  • 6. 6 Satellite 6 – Automation with Puppet
  • 7. 7 Satellite 6 – Automation with Puppet
  • 8. 8 Satellite 6 – Automation with Puppet Row 1 Row 2 Row 3 Row 4 0 2 4 6 8 10 12 Column 1 Column 2 Column 3
  • 9. 9 Satellite 6 – Automation with Puppet
  • 10. 10 Satellite 6 – Automation with Puppet Satellite 5.x – Configuration management cl [r/]# rhncfg-manager create-channel rhel6-prod Creating config channel rhel6-prod [r/]# rhncfg-manager add --channel rhel6-prod /etc/hosts Using server name satellitedemo.mlc.dom Pushing to channel rhel6-prod [r/]# rhncfg-manager diff --channel=rhel6-prod /etc/hosts - 192.168.100.4 vm2.mlc.dom + 192.168.100.56 friday.mlc.dom [r/]# rhncfg-client get /etc/hosts Deploying /etc/hosts
  • 11. 11 Satellite 6 – Automation with Puppet Satellite 6 – Foundation Content Management
  • 12. 12 Satellite 6 – Automation with Puppet
  • 13. 13 Satellite 6 – Automation with Puppet
  • 14. 14 Satellite 6 – Automation with Puppet Red Hat Satellite 5 & 6 Core Capabilities ✔ Provision 10s – 1000s systems ✔ Configuration Management ✔ Automated Software Distribution ✔ Lifecycle Management ✔ Administrator Dashboard ✔ Provision 10s – 10,000+ systems ✔ Recipe-Style Configuration Management ✔ Automated Software Distribution ✔ Refined Lifecycle Management ✔ Customizable Dashboards ✔ Simplified Content Management ✔ Drift Management ✔ Federated Services & Management ✔ Deploy on VMware, RHEV, EC2, and OpenStack Red Hat Satellite 5 Red Hat Satellite 6
  • 15. 15 Satellite 6 – Automation with Puppet Introduction to Puppet
  • 16. 16 Satellite 6 – Automation with Puppet What is Puppet ? ● Think of it as infrastructure code ● Describe stats, no step ● Paint a picture of your ideal and most clean system Puppet does the rest ● Puppet focuses on managing constructs like users, services and packages ● Puppet can detect the current state of the system (Facter) ● Won’t make changes unless necessary
  • 17. 17 Satellite 6 – Automation with Puppet Puppet Architecture
  • 18. 18 Satellite 6 – Automation with Puppet PUPPET DSL Example – managing ntp services with puppet class ntp { package { "ntp": ensure => installed, } file { "ntp.conf": path => '/etc/ntp.conf', ensure => file, require => Package[ "ntp" ], source => "puppet:///modules/ntp/ntp.conf", } service { 'ntp': name => 'ntpd', ensure => running, enable => true, subscribe => File[ "ntp.conf" ], } } PACKAGEPACKAGE CONFIGURATIONCONFIGURATION SERVICESERVICE
  • 19. 19 Satellite 6 – Automation with Puppet Example – managing sshd service class sshd { augeas { "sshd_config": context => "/files/etc/ssh/sshd_config", changes => [ "set PermitRootLogin yes", "set UsePAM no", ], notify => Service[ "sshd" ] } service { "sshd": ensure => running, enable => true, hasrestart => true, } }
  • 20. 20 Satellite 6 – Automation with Puppet How does Puppet know about your system ? ● Using the Ruby library Facter ● Facter supports a large numbers of predefined facts ● Customs facts can be defined # facter architecture => x86_64 bios_vendor => Seabios bios_version => 0.5.1 blockdevices => vda,vdb interfaces => eth0,lo ipaddress => 172.16.27.44 ipaddress_eth0 => 172.16.27.44 is_virtual => true kernel => Linux kernelmajversion => 2.6 kernelrelease => 2.6.32-431.el6.x86_64 kernelversion => 2.6.32 etc, ...
  • 21. 21 Satellite 6 – Automation with Puppet Installation
  • 22. 22 Satellite 6 – Automation with Puppet Installation Puppet server (RHEL 6) [r/]# rhn-channel -a -c rhel-x86_64-server-optional-6 [r/]# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm [r/]# yum install puppet-server puppet [r/]# puppet --version 3.4.3 [r/]# chkconfig puppetmaster on ; service puppetmaster start [r/]# chkconfig puppet on ; service puppet start DON’T FORGET DNS RESOLUTION AND TIME SYNCHRONISATION
  • 23. 23 Satellite 6 – Automation with Puppet Installation Puppet client (RHEL 6) [r/]# rhn-channel -a -c rhel-x86_64-server-optional-6 [r/]# rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm [r/]# yum install puppet [r/]# vim/etc/puppet/puppet.conf (add the following at the bottom) server = puppet.example.com runinterval = 120 report = true [r/]# chkconfig puppet on ; service puppet start On the puppetmaster server, sign the certs (possible to auto-sign) [r/]# puppet cert sign puppet-client.example.com DON’T FORGET DNS RESOLUTION AND TIME SYNCHRONISATION
  • 24. 24 Satellite 6 – Automation with Puppet Demonstration
  • 25. 25 Satellite 6 – Automation with Puppet First example 1/2 - deploy some files On the puppetmaster server : [r/]# cd /etc/puppet/modules [r/]# mkdir -p specdirs/{files,manifests} [r/]# vim /etc/puppet/modules/specfirs/manifest class specdirs { file { ['/test/','/test/etc','/test/etc/rc/','/test/etc/rc/shared']: ensure => "directory", owner => "root", group => "root", mode => "750", } }
  • 26. 26 Satellite 6 – Automation with Puppet First example 2/2 [r/]# vim /etc/puppet/manifests/site.pp #----------------------------------------------------- # site.pp #----------------------------------------------------- include specdirs [r/]# puppet apply /etc/puppet/manifests/site.pp Notice: Compiled catalog for puppetmaster.mlc.dom in environment production in 0.05 seconds Notice: /Stage[main]/Specdirs/File[/test/]/ensure: created Notice: /Stage[main]/Specdirs/File[/test/etc]/ensure: created Notice: /Stage[main]/Specdirs/File[/test/etc/rc/]/ensure: created Notice: /Stage[main]/Specdirs/File[/test/etc/rc/shared]/ensure: created Notice: Finished catalog run in 0.09 seconds On the puppet client : Test the communication with the server [r/]# puppet agent --test --waitforcert 60
  • 27. 27 Satellite 6 – Automation with Puppet Puppet dashboard Installation
  • 28. 28 Satellite 6 – Automation with Puppet Install Puppet – Dashboard 1/3 On the Puppetmaster server [r/]# yum install mysql mysql-server puppet-dashboard [r/]# vi /etc/my.cnf (add the following) max_allowed_packet = 32M [r/]# chkconfig mysqld on ; service mysqld start [r/]# vi /usr/share/puppet-dashboard/config/settings.yml (change the following) (run rake time:zones:local to find your timezone) time_zone: 'Eastern Time (US & Canada)'
  • 29. 29 Satellite 6 – Automation with Puppet Install Puppet – Dashboard 2/3 [r/]# mysql mysql> CREATE DATABASE dashboard CHARACTER SET utf8; mysql> CREATE USER 'dashboard'@'localhost' IDENTIFIED BY 'my_password'; mysql> GRANT ALL PRIVILEGES ON dashboard.* TO 'dashboard'@'localhost'; mysql> quit [r/]# cd ~puppet-dashboard && rake RAILS_ENV=production db:migrat
  • 30. 30 Satellite 6 – Automation with Puppet Install Puppet – Dashboard 3/3 [r/]# chkconfig puppet-dasboard on ; service puppet-dashboard start [r/]# vi /etc/puppet/puppet.conf [master] reports = store, http reporturl = http://puppet.example.com:3000/reports/upload [r/]# touch /usr/share/puppet-dashboard/log/production.log [r/]# chmod 666 /usr/share/puppet-dashboard/log/production.log [r/]# chkconfig puppet-dashboard-workers on ; service puppet-dashboard-workers start http://puppetmaster.mlc.dom:3000
  • 31. 31 Satellite 6 – Automation with Puppet
  • 32. 32 Satellite 6 – Automation with Puppet PUPPET AND SATELLITE 6
  • 33. 33 Satellite 6 – Automation with Puppet What Puppet does than Satellite doesn’t ● Start/restart services ● Restart a service after a configuration change ● Create users, remove users ● Aware of your systems state ● Enforce something ● Manages BSD/*nix and Windows (2003, 2008, 7) ● Resources relationship ● Edit a configuration file
  • 34. 34 Satellite 6 – Automation with Puppet Why Puppet ? Puppet vs Chef vs Ansible vs Salt Source : http://www.infoworld.com/d/data- center/review-puppet-vs-chef-vs- ansible-vs-salt-231308?page=0,0
  • 35. 35 Satellite 6 – Automation with Puppet Puppet / Satellite 6 considerations ● Keep Puppet modules as modular as possible and single tasked ● Using role and profile classes is recommended. ● This will allow users to map the modules or role and profile classes to Satellite host groups. ● User should consider building module artifacts as archives as if using Puppet Forge. This will allow import of modules into Satellite 6 and for it to display details of the module. ● Define Modulefiles for modules so dependencies are explicitly declared
  • 36. 36 Satellite 6 – Automation with Puppet Puppet / Satellite 6 considerations ● Manifests inside of modules are supported, but manifests containing classes outside of modules will not be supported ● The use of node definitions within manifests is not supported node vm1.example.com { file { '/tmp/test.txt' : content => "Bye bye !!n", } } ● Hiera function call will be supported. (Foreman, alt: smart variables)
  • 37. 37 Satellite 6 – Automation with Puppet Puppet Forge ● A community driven web service ● A repository of modules [r/]# puppet module list [r/]# puppet module search apache [r/]# puppet module install puppetlabs-apache [r/]# puppet module upgrade puppetlabs-apach –version -.0.3 http://docs.puppetlabs.com/guides/module_guides/bgtm.html
  • 38. 38 Satellite 6 – Automation with Puppet
  • 39. 39 Satellite 6 – Automation with Puppet References
  • 40. 40 Satellite 6 – Automation with Puppet References ● Convert Satellite 5 Configuration channels into Puppet Modules : Puppetize (http://youtu.be/x-mR8EfxJZw) ● A tool that takes arbitrary local file input and outputs puppet DSL : Lambchop (https://github.com/thoraxe/lambchop) ● http://docs.puppetlabs.com/geppetto/latest/index.html Integrated development for puppet : Geppetto Eclipse module
  • 41. 41 Satellite 6 – Automation with Puppet Questions ?
  • 42. 42 Satellite 6 – Automation with Puppet Puppet debugging notes ● Port 8140 ● Cert troubles ● yum remove puppet ● rm -rf /var/lib/puppet ● rm -rf /etc/puppet ● On master # puppet cert list (to see which ones require a signature) # puppet cert list --all (show all certificates) # puppet cert clean vm1.mlc.dom # puppet cert revoke vm1.mlc.dom
  • 43. 43 Satellite 6 – Automation with Puppet Scaling Puppet ● WEBrick, default webserver, 10 nodes max ● Passenger or Mongrel ● Passenger : mod_rail or mod_rack (Apache 2 module) ● Don’t use the deamon, use cronjob ● Puppet agent --onetime ● No central host (rsync, git) - scales infinitely ● More tricks in the puppet documentation
  • 44. 44 Satellite 6 – Automation with Puppet THANK YOU ! Michael Lessard, RHCA Senior Solutions Architect, Red Hat mlessard@redhat.com michaellessard