售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Learning SaltStack Second Edition
Table of Contents
Learning SaltStack Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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. Diving In – Our First Salt Commands
Introducing Salt
Installing Salt
Installation with system packages (Ubuntu)
Installation with system packages (CentOS 6)
Installation with system packages (Windows)
Installing with Salt Bootstrap
Configuring Salt
Firewall configuration
Salt minion configuration
Starting the Salt master and Salt minion
Accepting the minion key on the master
A game of ping pong
Masterless Salt
Summary
2. Controlling Your Minions with Remote Execution
The structure of a remote execution command
Command-line options
Targeting strings
Glob matching
Perl-compatible regular expression matching
List matching
Grain and pillar matching
Using grains
Using pillars
Compound matching
Remote execution modules and functions
Adding users
Installing packages
Managing services
Monitoring minion states
Running arbitrary commands
Summary
3. Execution Modules – Write Your Own Solution
Exploring the source
Cross-calling execution modules
Grains and the __virtual__ function
The__opts__ and __pillar__ functions
Reformatting return data
An advanced example
Summary
4. Defining the State of Your Infrastructure
Our first state
The pieces of a state declaration
Expanding to encompass multiple pieces of state
Dependencies using requisites
The require requisite
The watch requisite
Other requisites
The _in requisites
Summary
5. Expanding Our States with Jinja2 and Pillar
Adding a new minion
Jinja2
apache2 or httpd?
Defining secure minion-specific data in pillar
Using pillar data in states
Summary
6. The Highstate and Environments
The highstate
Environments
Environments in pillar
Expanding our base environment
Storing our states in Git with GitFS
Summary
7. Using Salt Cloud to Manage Virtual Minions
Setting up Salt Cloud
Setting up Linode
Creating an API key
Creating a cloud provider configuration
Creating cloud VM profiles
Creating and destroying machines
Managing groups of VMs with map files
Creating new masters with the map files
Summary
8. The Reactor and the Event System
The Salt event system
Listening for events
Event structure
Firing events from Salt
Firing events from custom code
Reacting to events
Summary
9. Security Best Practices in Salt
Securing Salt configuration
Master configuration
open_mode and auto_accept
file_recv
Peer publishing
Minion configuration
master_finger
Key management
Preseeding the minion keys
Preseeding the master key
Verifying with key fingerprints
Master fingerprint
Minion fingerprints
Firewall and network configuration
Summary
10. How Can I Get Involved?
Contributing code using GitHub
Creating an account on GitHub
The project
Getting the code
Contributing a fix
Committing our changes
Pushing the changes and creating a pull request
Other ways to get involved
Salt-users mailing list
#salt on freenode IRC
#saltstack on the hangops Slack
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜