Book Image

Puppet Cookbook - Third Edition

Book Image

Puppet Cookbook - Third Edition

Overview of this book

Table of Contents (17 chapters)
Puppet Cookbook Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Index

A

  • apache**vhost defined type / How it works...
  • Apache servers
    • managing / Managing Apache servers, How to do it..., How it works...
  • Apache virtual hosts
    • creating / Creating Apache virtual hosts, How it works..., There's more...
  • APT-based distribution / How it works...
  • arguments
    • passing, to shell commands / Passing arguments to shell commands, How it works…
  • array iteration
    • using, in templates / Using array iteration in templates, How it works…
  • arrays
    • creating, with split function / Creating arrays with the split function
    • concatenating / Appending to and concatenating arrays
    • appending to / Appending to and concatenating arrays
    • using, of resources / Using arrays of resources, How it works…
  • auditing capability
    • reference link / There's more...
  • Augeasproviders
    • about / There's more…
    • URL / There's more…
  • Augeas tool / Introduction
    • used, for editing config files / Using Augeas to reliably edit config files, How it works…
    • URL / There's more…
  • automatic HTML documentation
    • producing / How to do it..., How it works...
  • auto_failback setting / There's more...

B

  • baseimage
    • reference link / How it works...
  • bash
    • Puppet, bootstrapping with / Bootstrapping Puppet with bash, How to do it..., How it works...
  • beaker, GitHub site
    • URL / There's more...
  • before metaparameter / Learning metaparameters and ordering
  • Blueprint
    • about / There's more...
  • built-in report types
    • reference link / Other report types

C

  • capitalization
    • about / Capitalization
  • case statements
    • using / How to do it…, Case statement
  • centralized Puppet infrastructure
    • creating / Creating a centralized Puppet infrastructure, How it works...
  • certificate authority (CA) / Getting ready
  • certificates
    • creating, with multiple DNS names / Creating certificates with multiple DNS names, How to do it...
  • classes
    • parameters, passing to / Passing parameters to classes, How it works…
  • classification system
    • URL, for blog / Using roles and profiles
  • command output
    • logging / Logging command output, How it works...
  • community Puppet style
    • using / Using community Puppet style
  • comparisons operators / Comparisons
  • conditional statements
    • writing / Writing powerful conditional statements, How to do it…
    • elseif branches / Elseif branches
    • comparisons operators / Comparisons
    • expressions, combining / Combining expressions
  • config files
    • quick edits, making for / Making quick edits to config files, How it works…
    • editing, Augeas tool used / Using Augeas to reliably edit config files, How it works…
    • building, snippets used / Building config files using snippets, How to do it..., How it works...
  • configuration management database (CMDB) / How it works...
  • configuration settings
    • inspecting / Inspecting configuration settings, How it works...
  • Corosync
    • URL / There's more...
  • cron
    • Puppet, running from / Running Puppet from cron, How to do it..., How it works...
  • cron jobs
    • distributing, efficiently / Distributing cron jobs efficiently, How it works..., There's more...
  • cross-platform manifests
    • writing / Writing reusable, cross-platform manifests, How to do it…, How it works...
  • custom facts / Facts, functions, types, and providers
    • creating / Creating custom facts, How it works...
    • reference link / There's more...
  • custom functions / Facts, functions, types, and providers
    • creating / Creating custom functions, How to do it..., How it works..., There's more...
    • URL / There's more...
  • custom type
    • resource, considerations / There's more...
  • custom types / Facts, functions, types, and providers
    • reference link / There's more...

D

  • databases
    • creating / Creating databases and users, How to do it..., How it works...
  • debug messages
    • logging / Logging debug messages, How it works...
  • decentralized Puppet architecture
    • creating / Creating a decentralized Puppet architecture, How to do it..., How it works...
  • default keyword
    • about / How it works...
  • defaults / Defaults
  • default values
    • specifying, for parameters / Specifying default values
  • defined types / Adding a resource to a node
    • using / Using defined types, How it works…, There's more…
  • dependency graphs
    • drawing / Drawing dependency graphs, How to do it..., How it works...
  • directed acyclic graph (DAG)
    • about / How it works...
    • URL / How it works...
  • directory trees
    • distributing / Distributing and merging directory trees, How to do it..., How it works..., There's more...
    • merging / Distributing and merging directory trees, How to do it..., How it works..., There's more...
  • Docker
    • about / Managing Docker with Puppet, There's more...
    • URL, for downloading / Getting ready
    • managing, with Puppet / Getting ready, How it works...
    • URL / There's more...
  • documentation strings
    • adding / Documentation
  • dotfiles / Managing users' customization files
  • dynamic information
    • importing / Importing dynamic information, There's more…

E

  • each function
    • about / Each
  • elseif branches / Elseif branches
  • Embedded Ruby (ERB) / Using inline templates
  • environment
    • information, obtaining of / Getting information about the environment, How it works…
  • environment, in Puppet
    • setting up / Setting up the environment, How to do it..., There's more...
  • Environments
    • managing, with Git / Managing Environments with Git, How it works..., There's more...
  • environment variables
    • facts, setting as / Setting facts as environment variables, How to do it...
  • epp function / There's more...
  • EPP templates
    • using / Using EPP templates
  • ERB templates
    • facts, using in / There's more…
    • using / Using ERB templates, How it works…
  • Exec syntax
    • about / There's more...
    • URL / There's more...
  • exported host resources
    • using / Using exported host resources, How to do it..., How it works...
  • exported resources
    • using / Using exported resources, Getting ready, How it works..., There's more...
  • expressions
    • combining / Combining expressions
  • external facts
    • adding / Adding external facts, How it works...
    • debugging / Debugging external facts
    • using, in Puppet / Using external facts in Puppet
  • external node classifier (ENC)
    • using / Using an external node classifier, How to do it..., There's more...
  • External Node Classifier (ENC) / How to do it…

F

  • Facter
    • about / Using Facter to describe a node
    • used, for describing node / How to do it...
  • facts
    • using, in ERB templates / There's more…
    • setting, as environment variables / Setting facts as environment variables, How to do it...
  • file shares
    • managing / Managing NFS servers and file shares, How to do it..., How it works…
  • file_line resource
    • adding / There's more…
  • filter function
    • about / Filter
  • firewalls
    • managing, with iptables / Getting ready, How to do it..., How it works...
  • Forge, Puppet Labs
    • URL / How it works...
  • forge module, for managing apt repos
    • URL / There's more...
  • fqdn_rand() function / How it works...
  • fully qualified domain name (FQDN)
    • about / Variables
  • future parser
    • using / Using the future parser
  • future parser, puppet labs website
    • URL / Other features

G

  • Git
    • Puppet manifests, managing with / Managing your manifests with Git, How to do it..., There's more...
    • hook, creating with / Pushing code around with Git, How to do it..., How it works...
    • Environments, managing with / Managing Environments with Git, How it works..., There's more...
  • Git hooks
    • syntax check, automating with / Automatic syntax checking with Git hooks, How to do it..., How it works...
  • GnuPG
    • about / Using GnuPG to encrypt secrets
    • used, for encrypting secrets / Getting ready, How to do it..., How it works...
  • GnuPG backend, Hiera
    • URL / There's more...
  • graphs, DOT format
    • resources.dot / How it works...
    • relationships.dot / How it works...
    • expanded_relationships.dot / How it works...

H

  • HAProxy
    • about / Using HAProxy to load-balance multiple web servers
    • used, for load balancing multiple web servers / How to do it…, How it works…
    • URL / There's more...
  • hashes
    • using / Using hashes
  • Heartbeat
    • used, for building high-availability services / Building high-availability services using Heartbeat, How to do it…, How it works…
    • reference link / How it works…
  • Hiera
    • configuring / Configuring Hiera, How it works..., There's more...
    • node-specific data, setting with / Setting node-specific data with Hiera, How it works...
    • parameters, passing from / Passing parameters from Hiera, How it works...
  • hiera-eyaml
    • URL / There's more...
  • hiera-gpg
    • secret data, storing with / Storing secret data with hiera-gpg, How to do it..., How it works...
  • high-availability services
    • about / Building high-availability services using Heartbeat
    • building, Heartbeat used / Building high-availability services using Heartbeat, How to do it…, How it works…
  • hook
    • creating, with Git / Pushing code around with Git, How to do it..., How it works...
  • host resources
    • using / Using host resources, How it works..., There's more...
  • httpd package
    • about / How it works...

I

  • idempotency
    • about / Idempotency
  • if statements
    • regular expressions, using in / Using regular expressions in if statements, How it works…
  • INI style files
    • editing, with puppetlabs-inifile / Getting ready, How it works...
  • INI syntax / There's more…
  • ini_subsetting
    • using / There's more...
  • inline templates
    • using / How to do it…
  • inline_epp function / There's more...
  • inline_template function / There's more..., Distributing cron jobs efficiently
  • in operator
    • using / Using the in operator, How to do it…
  • installation, package
    • before starting service / Installing a package before starting a service, How it works...
  • installation, service / How to do it..., How it works…
  • iptables
    • about / Managing firewalls with iptables
    • reference link / Managing firewalls with iptables
    • firewalls, managing with / Getting ready, How to do it..., How it works...

J

  • jfryman-nginx module / How it works...
  • Jumpboxes / Using exported resources

L

  • Lambda functions
    • about / Lambda functions
    • reduce / Reduce
    • filter / Filter
    • map / Map
    • slice / Slice
    • each / Each
  • librarian-puppet
    • using / Using librarian-puppet, How it works...
    • reference link / There's more...
  • Linux-HA
    • URL / There's more...
  • load balancers
    • about / Using HAProxy to load-balance multiple web servers
  • logoutput attribute
    • false setting / How it works...
    • on_failure setting / How it works...
    • true setting / How it works...

M

  • manifest
    • about / Adding a resource to a node
    • creating / Creating a manifest, How to do it..., There's more…
    • checking, with Puppet-lint tool / Getting ready, How to do it...
  • manifests
    • generating, with Puppet resource command / Generating manifests with the Puppet resource command, How to do it...
    • generating, with other tools / Generating manifests with other tools, How to do it...
  • map function
    • about / Map
  • marionette collective (mcollective) plugin
    • about / There's more...
  • master port 8080
    • reference link / How to do it…
  • meminfo.rb file
    • about / There's more...
  • MessagePack (msgpack) / Using MessagePack serialization
  • MessagePack serialization
    • using / Using MessagePack serialization, How it works...
  • metadata.json file / There's more...
  • metaparameters
    • about / Learning metaparameters and ordering
    • before / Learning metaparameters and ordering
    • require / Learning metaparameters and ordering
    • notify / Learning metaparameters and ordering
    • subscribe / Learning metaparameters and ordering
  • module
    • writing, for public distribution / There's more…
  • module organization
    • about / Module organization
    • URL / Module organization
  • modules
    • about / Using modules
    • using / How to do it…, How it works…
  • module_data package / Creating nginx virtual hosts
  • multiple DNS names
    • certificates, creating with / Creating certificates with multiple DNS names, How to do it...
  • multiple file sources
    • using / Using multiple file sources, How it works..., There's more...
  • multiple items
    • iterating over / Iterating over multiple items, There's more…
  • multiple web servers
    • HAProxy, used for load balancing / How to do it…, How it works…
  • MySQL
    • about / Managing MySQL
    • managing / How to do it..., How it works...

N

  • navajo / Creating Apache virtual hosts
  • NFS
    • about / Managing NFS servers and file shares
  • nfs**exports class / How it works…
  • NFS servers
    • managing / Managing NFS servers and file shares, How to do it..., How it works…
  • nginx
    • about / Introduction
  • nginx virtual hosts
    • creating / Creating nginx virtual hosts, How to do it..., How it works...
  • node
    • resource, adding to / Adding a resource to a node, How it works...
    • Facter, used for describing / How to do it...
  • node-specific data
    • setting, with Hiera / Setting node-specific data with Hiera, How it works...
  • node definition
    • modifying / There's more...
  • nodeless Puppet configuration
    • reference link / There's more...
  • noop mode
    • about / Noop – the don't change anything option
    • running / How to do it..., How it works...
    • using, as simple auditing tool / There's more...
  • notify metaparameter / Learning metaparameters and ordering

O

  • old files
    • cleaning up, tidy resource used / Cleaning up old files, How it works...
  • oneline.pp file
    • modifying / There's more…
  • ordering
    • about / Learning metaparameters and ordering

P

  • package
    • installing, before starting service / Installing a package before starting a service, How it works...
  • packages
    • installing, from third-party repository / Installing packages from a third-party repository, How to do it…, How it works…
  • package versions
    • comparing / Comparing package versions, How to do it…
  • papply script
    • writing / Writing a papply script, How to do it..., How it works...
  • parameters
    • passing, to classes / Passing parameters to classes, How it works…
    • default values, specifying for / Specifying default values
    • passing, from Hiera / Passing parameters from Hiera, How it works...
  • parameter validation
    • used, for generating error messages / Validation
  • passenger
    • Puppet, running from / Running Puppet from passenger, How to do it..., There's more...
    • about / Running Puppet from passenger
  • patterns
    • capturing / Capturing patterns
  • Percona
    • about / How to do it…
    • URL / How to do it…
  • profiles
    • using / Using roles and profiles, How it works…
  • Provider
    • about / How it works...
  • providers / Facts, functions, types, and providers
    • creating / Creating your own providers, How it works...
    • reference link / There's more...
  • public modules
    • using / Using public modules, How it works...
  • public modules, on GitHub
    • URL / There's more...
  • Puppet
    • installing / Installing Puppet, How to do it...
    • running, from cron / Running Puppet from cron, How to do it..., How it works...
    • bootstrapping, with bash / Bootstrapping Puppet with bash, How to do it..., How it works...
    • running, from passenger / Running Puppet from passenger, How to do it..., There's more...
    • Docker, managing with / Getting ready, How it works...
    • about / Introduction
    • external facts, using in / Using external facts in Puppet
  • Puppet-lint tool
    • about / Checking your manifests with Puppet-lint
    • manifests, checking with / Getting ready, How to do it...
    • URL / There's more...
  • Puppet community
    • URL, for best practice guidelines / There's more…
  • Puppet Cookbook
    • URL / There's more...
  • PuppetDB
    • configuring / Configuring PuppetDB, How to do it..., How it works...
  • puppet doc file
    • about / There's more...
    • basic documentation, of manifests / There's more...
  • Puppet errors
    • about / Understanding Puppet errors, How to do it...
  • Puppetfile
    • about / There's more...
  • Puppet Labs
    • URL / Using community Puppet style
    • URL, for YUM-based systems / How to do it...
    • URL, for APT-based systems / How to do it...
  • puppetlabs-Apache module
    • using / There's more...
  • puppetlabs-inifile
    • used, for editing INI style files / Getting ready, How it works...
  • puppetlabs-Mysql
    • using / There's more...
  • puppetlabs-mysql module / Managing MySQL
  • puppetlabs-mysql package / Creating databases and users
  • puppetlabs-stdlib module
    • installing / Getting ready
  • Puppet labs ENC page
    • URL, for information / See also
  • Puppet labs release package
    • URL / Getting ready
  • Puppet labs website
    • URL / There's more..., There's more...
  • Puppet manifests
    • managing, with Git / Managing your manifests with Git, How to do it..., There's more...
  • puppet manifests
    • testing, with rspec-puppet tool / Testing your puppet manifests with rspec-puppet, How to do it..., How it works...
  • puppet module command / How to do it...
  • Puppet resource command
    • manifests, creating with / Generating manifests with the Puppet resource command, How to do it...
    • used, for examining resource types / There's more...

Q

  • quick edits
    • making, for config files / Making quick edits to config files, How it works…

R

  • r10k
    • about / Using r10k
    • using / Getting ready, How to do it..., How it works...
  • RDoc
    • about / How it works...
  • reduce function
    • about / Reduce
  • regsubst function / How it works…
  • regular expressions
    • using, in if statements / Using regular expressions in if statements, How it works…
    • syntax / Regular expression syntax
    • URL, for tutorials / Regular expression syntax
    • using / Regular expressions
  • regular expression substitutions
    • using / Using regular expression substitutions, How it works…
  • relationship graphs
    • about / There's more...
  • repeat parameter / There's more...
  • reports
    • generating / Generating reports, How it works...
  • require metaparameter / Learning metaparameters and ordering
  • resource
    • adding, to node / Adding a resource to a node, How it works...
    • about / Adding a resource to a node, There's more...
    • reference link / There's more...
  • Resource Abstraction Layer (RAL) / How it works...
  • resource collectors
    • about / There's more…
    • URL / There's more…
  • resource defaults
    • using / How to do it...
    • specifying, for resource type / There's more...
    / There's more...
  • resource ordering
    • about / Resource ordering
    • reference link / Resource ordering
  • resources
    • arrays, using of / Using arrays of resources, How it works…
    • auditing / Auditing resources, How to do it...
    • disabling, temporarily / Temporarily disabling resources
  • resource type
    • resource defaults, specifying for / There's more...
  • resource types
    • creating / Creating your own resource types, How it works...
  • reusable manifests
    • writing / Writing reusable, cross-platform manifests, How to do it…, How it works...
  • ripienaar-module_data module / There's more...
  • ro (read-only) / How it works…
  • roles
    • using / Using roles and profiles, How it works…
  • rspec-puppet tool
    • puppet manifests, testing with / Testing your puppet manifests with rspec-puppet, How to do it..., How it works...
    • URL, for tutorial / There's more...
  • Ruby
    • references / Creating your own resource types
  • run stages
    • using / Using run stages, How to do it…, How it works…, There's more…
  • rw (read-write) / How it works…

S

  • schedule metaparameter
    • using / Scheduling when resources are applied, How to do it..., How it works...
  • scope
    • about / Scope
  • secret data
    • storing, with hiera-gpg / Storing secret data with hiera-gpg, How to do it..., How it works...
  • secret function
    • using / There's more...
  • secrets
    • encrypting, GnuPG used / Getting ready, How to do it..., How it works...
  • selectors
    • using / How to do it…, Selector
  • service
    • installing / How to do it..., How it works…
    • configuring / How to do it..., How it works…
    • starting / How to do it..., How it works…
  • shell commands
    • arguments, passing to / Passing arguments to shell commands, How it works…
  • shellquote function / Passing arguments to shell commands
  • slice function
    • about / Slice
  • snippets
    • used, for building config files / Building config files using snippets, How to do it..., How it works...
  • split function
    • arrays, creating with / Creating arrays with the split function
  • SSH keys / Getting ready
  • stages, Puppet
    • URL, for examples / There's more…
  • stahnma-epel module / Getting ready
  • standard naming conventions
    • using / Using standard naming conventions, How to do it…
  • standard types, puppet labs website
    • URL / Adding a resource to a node
  • stdlib module / How to do it...
  • stored configuration
    • reference link / Getting ready
  • style compliant, code
    • indentation / Indentation
    • quoting / Quoting
    • false value / False
    • variables / Variables
    • parameters / Parameters
    • symlinks / Symlinks
  • subscribe metaparameter / Learning metaparameters and ordering
  • supported modules
    • references / How it works...
  • symlinks
    • about / Symlinks
  • syntax check
    • automating, with Git hooks / Automatic syntax checking with Git hooks, How to do it..., How it works...

T

  • tagged function / Using tags
  • tags
    • using / Using tags, How to do it..., There's more…
  • templates
    • using, as part of module / Templates
    • array iteration, using in / Using array iteration in templates, How it works…, There's more…
  • Test-driven development (TDD) / There's more...
  • The Foreman
    • URL / Using an external node classifier, Other report types
  • third-party modules / Third-party modules
  • third-party repository
    • packages, installing from / Installing packages from a third-party repository, How to do it…, How it works…
  • tidy resource
    • used, for cleaning up old files / Cleaning up old files, How it works...
  • trifecta
    • about / Trifecta
  • tripwire
    • reference link / There's more...
  • type / Adding a resource to a node

U

  • user**virtual class / How to do it..., How it works..., There's more...
  • users
    • managing, with virtual resources / Managing users with virtual resources, How to do it..., How it works...
    • creating / Creating databases and users, How to do it..., How it works...
  • users, customization files
    • managing / Managing users' customization files, How to do it..., How it works...
  • users, SSH access
    • managing / Managing users' SSH access, How to do it..., How it works...

V

  • variables
    • about / Variables
  • variable scope, Puppet Labs article
    • URL / Printing out variable values
  • variable values
    • printing out / Printing out variable values
  • versioncmp function / Comparing package versions
  • virtual resources
    • about / Using virtual resources
    • using / Using virtual resources, How to do it..., How it works...
    • realizing / There's more...
    • users, managing with / Managing users with virtual resources, How to do it..., How it works...
  • virtual sites
    • reference link / Introduction

W

  • WEBrick
    • about / Creating a centralized Puppet infrastructure

Y

  • YUM
    • URL / Getting ready
  • yumrepo resources
    • URL / There's more...