万本电子书0元读

万本电子书0元读

顶部广告

Learning SaltStack电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Colton Myers

出  版  社:Packt Publishing

出版时间:2015-01-27

字       数:85.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部