master of puppets - it-consulting hempel · pdf filemaster of puppets. konfiguration durch...

21
Master of Puppets

Upload: trinhtuyen

Post on 07-Feb-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

Master of Puppets

Konfiguration durch Aktionen

Sage mir, wie die Konfiguration

aussehen soll.

Wie funktioniert

Puppet

ClientClient

System

Master

Modules

ClientClient

System

Master

Modules

ClientClient

System

Puppet stellt jedes mal die

gewünschte Konfiguration her

Modules Subversion

Benutzer Benutzer

Manifeste und Module

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

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

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

Modul

Manifest(e)

Datei(en) PlugIn(s)

Template(s)

Puppet Specials

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

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

/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

Wie geht es weiter?

Implementierung

Tipps und Tricks

Bildnachweis

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

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/