Cargando…

Extending Puppet /

About This BookExplore the wider Puppet ecosystem of useful toolsDesign and manage your Puppet architecture for optimum performanceWrite more efficient code that keeps your infrastructure more robustWho This Book Is For If you are a Puppet user, this book will help you on different levels. If you ar...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Pastor, Jaime Soriano (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2016.
Edición:Second edition.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Puppet Essentials; The Puppet ecosystem; Why configuration management matters; Puppet components; Installing and configuring Puppet; Puppet in action; Resources; The resource abstraction layer; Nodes; Classes and defines; Class inheritance; Resource defaults; Resource references; Variables, facts, and scopes; System's facts; External facts; User variables in Puppet DSL; Type-checking; User variables in an ENC; User variables in Hiera; Puppet built-in variables.
  • Variables scopeMeta parameters; Managing order and dependencies; Run stages; Reserved names and allowed characters; Conditionals; Comparison operators; Iteration and lambdas; The in operator; Expressions combinations; Exported resources; Virtual resources; Modules; Paths of a module and auto loading; Templates; Restoring files from a filebucket; Summary; Chapter 2: Managing Puppet Data with Hiera; Installing and configuring Hiera; The hiera.yaml configuration file; Global settings; Backend specific settings; Examples; Working with the command line on a YAML backend; Using Hiera in Puppet.
  • Dealing with hashes in Puppet codePuppet 3 automatic parameter lookup; Evolving usage patterns for class parameters; Additional Hiera backends; Hiera-file; Encryption plugins; Hiera-gpg; Hiera-eyaml; Hiera-http, hiera-mysql; Using Hiera as an ENC; Summary; Chapter 3: Introducing PuppetDB; Installation and configuration; Installing PuppetDB; PuppetDB configurations; Init script configuration; Configuration settings; Logging configuration; Configurations on the Puppet Master; Dashboards; PuppetDB performance dashboard; Puppetboard-Querying PuppetDB from the Web; PuppetDB API.
  • Querying PuppetDB (read)PuppetDB commands (write); Querying PuppetDB for fun and profit; /facts endpoint; /resources endpoint; /nodes endpoint; /catalogs endpoint; /fact-names endpoint; /metrics endpoint; /reports endpoint; /events endpoint; /event-counts endpoint; /aggregated-event-counts endpoint; /server-time endpoint; /version endpoint; The puppetdbquery module; Query format; Querying from the command line; Querying from Puppet manifests; The PuppetDB Hiera backend; How Puppet code may change in the future; Summary; Chapter 4: Designing Puppet Architectures.
  • Components of a Puppet architectureDefinition of the classes to include in each node; Definition of the parameters to use for each node; Definition of the configuration files provided to the nodes; Definition of custom resources and classes; The Foreman; Roles and profiles; The data and the code; Sample architectures; The default approach; Basic ENC, logic on site module, Hiera backend; The Foreman and Hiera; Hiera-based setup; Foreman smart variables; Facts-driven truths; Nodeless site.pp; Summary; Chapter 5: Using and Writing Reusable Modules; Modules layout evolution.