Learning SaltStack
图书信息
| 作者 | Colton Myers |
| 出版社 | Packt Publishing |
| ISBN | 9781784399016 |
| 出版时间 | 2015-01-27 |
| 字数 | 85.9万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
If you are a system administrator who manages multiple servers, then you know how difficult it is to keep your infrastructure in line. If you've been searching for an easier way, this book is for you. No prior experience with SaltStack is required.
目录
Learning SaltStack
Table of Contents
Learning SaltStack
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
Errata
Piracy
Questions
1. Diving In – Our First Salt Commands
Introducing Salt
Installing Salt
Installation with system packages (Ubuntu)
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
Grains
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
Create and destroy machines
Managing groups of VMs with map files
Creating new masters with 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
Index
- 世界500强企业精细化管理工具系列--物业管理实用流程·制度·表格·文本(邵小云)
- 儿童英语启蒙——从绘本、游戏到分级读物(施乐遥)
- 四季筵(清辰)
- 姚明(1)(读书堂)
- 未解之谜(下)(百读)
- 不见长安(则慕)
- 分开以后我变成了你喜欢的样子(Josie乔)
- 从Paxos到Zookeeper:分布式一致性原理与实践(倪超)
