21
Master of Puppets

Einführung in Puppet

Embed Size (px)

DESCRIPTION

Einführung in das Konfigurationsmanagement System Puppet

Citation preview

Page 1: Einführung in Puppet

Master of Puppets

Page 2: Einführung in Puppet

Konfiguration durch Aktionen

Page 3: Einführung in Puppet

Sage mir, wie die Konfiguration

aussehen soll.

Page 4: Einführung in Puppet

Wie funktioniert

Puppet

Page 5: Einführung in Puppet

ClientClient

System

Page 6: Einführung in Puppet

Master

Modules

ClientClient

System

Page 7: Einführung in Puppet

Master

Modules

ClientClient

System

Page 8: Einführung in Puppet

Puppet stellt jedes mal die

gewünschte Konfiguration her

Page 9: Einführung in Puppet

Modules Subversion

Benutzer Benutzer

Page 10: Einführung in Puppet

Manifeste und Module

Page 11: Einführung in Puppet

class sdv { user { "sdv": name => "sdv", home => "/home/sdv", shell => "/bin/bash", ensure => present }}

Page 12: Einführung in Puppet

class openssh-server { package { "ssh-server": ensure => installed, }

service { "sshd": enable => true, ensure => running, Require => Package["ssh-server"] }}

Page 13: Einführung in Puppet

Modul

Manifest(e)

Datei(en) PlugIn(s)

Template(s)

Page 14: Einführung in Puppet

Puppet Specials

Page 15: Einführung in Puppet

architecture => x86_64domain => hello.world.comfqdn => demo.hello.world.comhardwaremodel => x86_64hostname => demoid => rootinterfaces => eth0ipaddress => 10.3.xxx.xxxipaddress_eth0 => 10.3.xxx.xxxis_virtual => truestate => Abnahme

Page 16: Einführung in Puppet

<IfDefine <%= fqdn %>> Header append X-Server <%=hostname %></IfDefine>

Page 17: Einführung in Puppet

/files/etc/aliases/7/files/etc/aliases/7/name = "shutdown"/files/etc/aliases/7/value = "root"/files/etc/aliases/8/files/etc/aliases/8/name = "halt"/files/etc/aliases/8/value = "root"

shutdown: roothalt: root

Page 18: Einführung in Puppet

Wie geht es weiter?

Page 19: Einführung in Puppet

Implementierung

Tipps und Tricks

Page 20: Einführung in Puppet

Bildnachweis

1. Gonzo / KLEPER / Flickr2. My First Shell Script / Erin Donahue / Flickr19. New blank books / Paperama / Flickr

Page 21: Einführung in Puppet

Sebastian HempelStaatliche geprüfter

Informatiker

Selbständiger Software-Entwickler und Dozent in den Bereichen Java und

OpenSource

Clean Code Developer

[email protected]://www.it-hempel.de/