售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Salt Cookbook
Table of Contents
Salt Cookbook
Credits
About the Author
About the Reviewer
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
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Salt Architecture and Components
Introduction
Installing and configuring the Salt master
How to do it...
Installing the Salt master on RedHat/CentOS/Fedora
Installing the Salt master on Ubuntu
Configuring the Salt master
How it works...
See also
Configuring the Salt environment and pillar paths
How to do it...
How it works...
See also
Understanding and configuring Salt pillars
How to do it...
How it works...
See also
Understanding and writing Salt states
How to do it...
How it works...
See also
Understanding and writing the top file
How to do it...
How it works...
There's more…
See also
Installing and configuring the Salt minion
How to do it...
Installing the Salt minion on RedHat/CentOS/Fedora
Installing the Salt minion on Ubuntu
Configuring the Salt minion
How it works...
There's more...
The masterless minion
See also
Configuring environments and grains on the minion
How to do it...
Setting grains in /etc/salt/minion
Setting grains in /etc/salt/grains
How it works...
Setting grains in /etc/salt/minion
Setting grains in /etc/salt/grains
See also
Applying Salt states to minions
How to do it...
Applying states using the push mechanism from master to minion
Applying states using the pull mechanism by minion from master
How it works...
There's more...
Applying Salt states to masterless minions
See also
2. Writing Advanced Salt Configurations
Introduction
Writing and retrieving pillar data
How to do it...
How it works...
See also
Using pillar data in states
How to do it...
How it works...
There's more...
Including other pillars in the pillar file
Setting pillar data at the command line
See also
Using grains in states
How to do it...
How it works...
See also
Using conditionals in states and pillars
How to do it...
How it works...
See also
Using Python functions in conditionals
How to do it...
How it works...
See also
Using iterations in states
How to do it...
How it works...
See also
Setting and using variables in states
How to do it...
How it works...
See also
Testing a state run before applying to minions
How to do it...
How it works...
See also
Configuring nodegroups
How to do it...
How it works...
See also
Targeting minions
How to do it...
How it works...
See also
3. Modules, Orchestration, and Scaling Salt
Introduction
Using execution modules
How to do it...
How it works...
See also
Using state modules
How to do it...
How it works...
There's more…
See also
Configuring templates
How to do it...
How it works...
See also
Using requisites
How to do it...
How it works...
There's more…
See also
Using Salt runners
How to do it...
How it works...
See also
Orchestration with Salt orchestrate
How to do it...
How it works...
See also
Salt multi-master setup (active-active mode)
How to do it...
How it works...
See also
Salt multi-master setup (active-passive mode)
How to do it...
How it works...
See also
4. General Administration Tasks
Introduction
Running commands
How to do it...
How it works...
There's more…
See also
Setting host entries and grains
How to do it...
How it works...
See also
Setting time zone, locale, and kernel configurations
How to do it...
How it works...
See also
Handling archive files
How to do it...
How it works...
See also
Adding groups and users
How to do it...
How it works...
See also
Performing SSH authentication tasks
How to do it...
How it works...
See also
Scheduling jobs with cron
How to do it...
How it works...
See also
Managing volumes
How to do it...
How it works...
See also
Working with disks and mounts
How to do it...
How it works...
There's more…
See also
Managing network configurations
How to do it...
How it works...
See also
5. Advanced Administration Tasks
Introduction
Managing package repositories
How to do it...
How it works...
See also
Managing packages using the default package manager
How to do it...
How it works...
See also
Managing packages using rvm, gem, and pip
How to do it...
How it works...
See also
Managing files
How to do it...
How it works...
See also
Managing services
How to do it...
How it works...
See also
Managing code repositories with Git
How to do it...
How it works...
See also
Managing code repositories with svn
How to do it...
How it works...
See also
Configuring alternatives
How to do it...
How it works...
See also
6. Managing Application Servers
Introduction
Apache web server packages and services
How to do it...
How it works...
See also
Managing web server modules
How to do it...
How it works...
There's more…
See also
Adding web server configuration
How to do it...
How it works...
See also
Web server security with htpasswd
How to do it...
How it works...
See also
Setting up Java for Apache Tomcat
How to do it...
How it works...
See also
Apache Tomcat packages, files, and services
How to do it...
How it works...
See also
Deploying the WAR file in Apache Tomcat
How to do it...
How it works...
There's more…
See also
7. Managing Databases
Introduction
Using MySQL packages, files, and services
How to do it...
How it works...
See also
Using MySQL databases
How to do it...
How it works...
See also
Creating MySQL database users
How to do it...
How it works...
See also
Running MySQL queries
How to do it...
How it works...
See also
Providing MySQL user grants
How to do it...
How it works...
See also
Using PostgreSQL packages, files, and services
How to do it...
How it works...
See also
Setting up PostgreSQL groups and users
How to do it...
How it works...
See also
Configuring PostgreSQL databases
How to do it...
How it works...
See also
8. Configuring Salt Cloud
Introduction
Configuring the Salt cloud environment
How to do it...
How it works...
See also
Configuring cloud providers
How to do it...
How it works...
See also
Configuring cloud profiles
How to do it...
How it works...
See also
Extending profiles and providers
How to do it...
How it works...
See also
Configuring cloud maps
How to do it...
How it works...
See also
Using post-install scripts
How to do it...
How it works...
See also
Launching, querying, and destroying instances
How to do it...
How it works...
See also
Performing general cloud functions
How to do it...
How it works...
See also
9. Managing Amazon Web Services
Introduction
Implementing security groups
How to do it...
How it works...
There's more…
See also
Using elastic load balancers
How to do it...
How it works...
See also
Configuring DNS with Route53
How to do it...
How it works...
See also
Configuring Simple Queue Service
How to do it...
How it works...
See also
Deploying ElastiCache clusters
How to do it...
How it works...
See also
Configuring CloudWatch alarms
How to do it...
How it works...
See also
10. Salt Event and Reactor System
Introduction
Learning the basics of the event system
How to do it...
How it works...
See also
Listening to events
How to do it...
How it works...
There's more…
See also
Firing events
How to do it...
How it works...
There's more…
See also
Identifying and working with Salt event types
How to do it...
How it works...
See also
Integrating and configuring the reactor system
How to do it...
How it works...
See also
Using reactors for Salt tasks
How to do it...
How it works...
See also
11. Troubleshooting
Introduction
Troubleshooting the Salt master
How to do it...
How it works...
See also
Troubleshooting the Salt minion
How to do it...
How it works...
See also
Dealing with too many open files
How to do it...
How it works...
See also
Connectivity, DNS, and ports
How to do it...
How it works...
See also
Dealing with YAML configuration problems
How to do it...
How it works...
See also
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜