This document discusses the Puppet configuration management tool. It provides an overview of Puppet including its open source nature, supported platforms, file structure, and types of resources it can manage like files, packages, services. It also discusses Facter for collecting system facts. Several examples are shown of how to configure files, packages, services. Finally Amazon EC2 is mentioned as a way to deploy Puppet in a scalable environment.
8. Przykłady
node 'www.testing.com' {
include common
include apache, squid
}
node /^(foo|bar).testing.com$/ {
include common
}
case $hostname {
'jack','jill': { include hill } # apply the hill class
'humpty','dumpty': { include wall } # apply the wall class
default: { include generic } # apply the generic class
}
12. Facter
facter is an independent !
cross-platform Ruby library
collect information about the hardware and
operating system
operating system names, hardware
characteristics, IP addresses, MAC addresses,
and SSH keys.
18. Plusy
Konfiguracja w jednym miescu
Łatwa kontrola wersji (svn,git,hg...)
oraz kontrola nad zmianami na produkcji
Wygodne propagowanie zmian
Powtarzalność
Błyskawicznie dokładanie gotowych
funkcjonalności
19. Minus
Wydajność (da się coś z tym zrobić)
Losowość
Działa tak dobrze, jak dobrze się w nim pisze
SSL -> klucze -> hostname (uniq ?!)
Kwiatki w składni