售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Puppet 2.7 Cookbook
Table of Contents
Puppet 2.7 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Puppet Infrastructure
Using version control
Getting ready
How to do it...
How it works...
There's more...
See also
Using commit hooks
How to do it…
How it works…
There's more…
See also
Deploying changes with Rake
Getting ready
How to do it...
How it works...
There's more...
See also
Configuring Puppet's file server
How to do it...
How it works...
There's more...
See also
Running Puppet from cron
How to do it...
How it works...
There's more...
See also
Using autosign
How to do it...
How it works...
See also
Pre-signing certificates
How to do it...
See also
Retrieving files from Puppet's filebucket
How to do it...
How it works...
There's more...
Scaling Puppet using Passenger
Getting ready
How to do it...
How it works...
There's more...
See also
Creating decentralized Puppet architecture
Getting ready
How to do it...
How it works...
There's more...
See also
2. Monitoring, Reporting, and Troubleshooting
Generating reports
How to do it…
How it works…
There's more…
Enabling reports on the command line
Logging Puppet messages to syslog
See also
E-mailing log messages containing specific tags
How to do it…
How it works…
There's more…
What are tags?
Specifying multiple tags, or excluding tags
Sending reports to multiple e-mail addresses
See also
Creating graphical reports
Getting ready
How to do it…
How it works…
There's more…
See also
Producing automatic HTML documentation
How to do it…
How it works…
There's more…
Drawing dependency graphs
Getting ready…
How to do it…
How it works…
There's more…
Testing your Puppet manifests
Getting ready
How to do it…
How it works…
There's more…
Doing a dry run
How to do it…
How it works…
There's more…
See also
Detecting compilation errors
How to do it…
How it works…
Understanding Puppet errors
How to do it…
Logging command output
How to do it…
How it works…
There's more…
Logging debug messages
How to do it…
How it works…
There's more…
Printing out variable values
Printing the full resource path
Logging messages on the Puppetmaster
Inspecting configuration settings
How to do it…
How it works…
Using tags
How to do it...
There's more…
Using run stages
How to do it…
How it works…
There's more…
Using environments
How to do it…
How it works…
There's more…
See also
3. Puppet Language and Style
Using community Puppet style
How to do it…
There's more…
Using modules
How to do it…
How it works…
There's more...
Templates
Facts, functions, types, and providers
puppet-module
Third-party modules
Module organization
See also
Using standard naming conventions
How to do it…
There's more…
Using embedded Ruby
How to do it…
How it works…
See also
Writing manifests in pure Ruby
How to do it…
How it works…
There's more…
Variables
Documentation
Iterating over multiple items
How to do it…
How it works…
There's more…
Hashes
Creating arrays with the split function
Writing powerful conditional statements
How to do it…
How it works…
There's more…
elsif
Comparisons
Combining expressions
See also
Using regular expressions in if statements
How to do it…
How it works…
There's more…
Capturing patterns
Regular expression syntax
See also
Using selectors and case statements
How to do it…
How it works…
There's more…
Regular expressions
Defaults
Testing whether values are contained in strings
How to do it…
There's more…
Using regular expression substitutions
How to do it…
How it works…
There's more...
See also
4. Writing Better Manifests
Using arrays of resources
How to do it…
How it works…
See also
Using define resources
How to do it…
How it works…
There's more…
Using dependencies
How to do it…
How it works…
There's more…
Using node inheritance
How to do it…
How it works…
There's more…
See also
Using class inheritance and overriding
Getting ready…
How to do it…
How it works…
There's more…
Undefining parameters
Adding extra values using the +> operator
Disabling resources
See also
Passing parameters to classes
How to do it…
How it works…
There's more…
See also
Writing reusable, cross-platform manifests
How to do it…
How it works...
There's more…
See also
Getting information about the environment
How to do it…
How it works…
There's more…
See also
Importing dynamic information
Getting ready…
How to do it…
How it works…
There's more…
See also
Importing data from CSV files
Getting ready…
How to do it…
How it works…
There's more…
See also
Passing arguments to shell commands
How to do it…
How it works…
5. Working with Files and Packages
Making quick edits to config files
How to do it…
How it works…
There's more…
See also
Using Augeas to automatically edit config files
Getting ready…
How to do it…
How it works…
There's more…
Building config files using snippets
How to do it…
How it works…
There's more…
See also
Using ERB templates
How to do it…
How it works…
There's more…
See also
Using array iteration in templates
How to do it…
How it works…
There's more…
See also
Installing packages from a third-party repository
How to do it…
How it works…
There's more...
See also
Setting up an APT package repository
Getting ready…
How to do it…
How it works…
There's more…
Adding packages
Configuring nodes to use the repository
Signing your packages
Setting up a gem repository
How to do it…
How it works…
There's more…
Adding gems
Using the gem repo
Building packages automatically from source
How to do it…
How it works…
There's more…
Comparing package versions
How to do it…
How it works…
6. Users and Virtual Resources
Using virtual resources
How to do it…
How it works…
There's more…
See also
Managing users with virtual resources
How to do it…
How it works…
See also
Managing users' SSH access
How to do it…
How it works…
There's more…
Managing users' customization files
How to do it…
How it works…
See also
Efficiently distributing cron jobs
How to do it…
How it works…
There's more…
See also
Running a command when a file is updated
Getting ready…
How to do it…
How it works…
There's more…
Using host resources
How to do it…
How it works...
There's more...
Using multiple file sources
How to do it…
How it works…
There's more...
See also
Distributing directory trees
How to do it…
How it works…
There's more…
Cleaning up old files
How to do it…
How it works…
There's more…
Using schedules with resources
How to do it…
How it works…
There's more…
Auditing resources
How to do it…
How it works…
There's more…
See also
Temporarily disabling resources
How to do it…
How it works…
Managing timezones
How to do it…
There's more…
7. Applications
Managing Apache servers
How to do it...
There's more...
Creating Apache virtual hosts
How to do it…
How it works…
There's more…
See also
Creating Nginx virtual hosts
Getting ready…
How to do it…
How it works…
There's more…
See also
Creating MySQL databases and users
Getting ready…
How to do it…
How it works…
There's more…
Managing Drupal sites
Getting ready…
How to do it…
How it works…
There's more…
Managing Rails applications
How to do it…
How it works…
Nginx and Passenger
Rails
There's more…
RVM
Log rotation
Databases
SSL certificates
8. Servers and Cloud Infrastructure
Deploying a Nagios monitoring server
Getting ready…
How to do it…
How it works...
There's more…
Building high-availability services using Heartbeat
How to do it…
How it works…
There's more…
Managing NFS servers and file shares
How to do it…
How it works…
There's more…
Using HAProxy to load-balance multiple web servers
How to do it…
How it works…
There's more…
Managing firewalls with iptables
Getting ready…
How to do it…
How it works…
There's more…
Managing EC2 instances
Getting ready…
How to do it…
How it works…
There's more...
See also
Managing virtual machines with Vagrant
How to do it…
How it works…
There's more…
9. External Tools and the Puppet Ecosystem
Creating custom Facter facts
Getting ready...
How to do it…
How it works...
There's more...
Executing commands before and after Puppet runs
How to do it…
There's more…
Generating manifests from shell sessions
Getting ready…
How to do it…
How it works…
There's more…
Generating manifests from a running system
How to do it…
There's more…
Using Puppet Dashboard
Getting ready…
How to do it…
How it works…
There's more…
See also
Using Foreman
Getting ready…
How to do it…
There's more…
Using MCollective
Getting ready...
How to do it…
How it works…
There's more…
Installing an MCollective plugin
Using public modules
Getting ready...
How to do it…
How it works…
There's more…
Using an external node classifier
Getting ready…
How to do it…
How it works…
There's more…
Creating your own resource types
Getting ready…
How to do it…
How it works…
There's more…
Documentation
Validation
Creating your own providers
Getting ready…
How to do it…
How it works…
There's more…
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜