万本电子书0元读

万本电子书0元读

顶部广告

Learning SaltStack - Second Edition电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Colton Myers

出  版  社:Packt Publishing

出版时间:2016-06-01

字       数:126.9万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build, manage, and secure your infrastructure by utilizing the power of SaltStack About This Book First book in the market to incorporate all the latest features of SaltStack. Leverage the power of SaltStack for building, managing and securing your infrastructure. Effectively use commands and control the state of your infrastructure in a jiffy. Who This Book Is For This book is aimed at System Administrators who are looking forward to manage their infrastructure using SaltStack with no prior knowledge about it. What You Will Learn Install Salt on your servers Run commands on all or some of your minions instantly from a central managing server Write custom Salt modules to handle your infrastructure’s unique needs Define the state of your infrastructure and use Salt to enforce that state. Create platform-agnostic state definitions for greater flexibility and power Manage virtual servers on public or private clouds using Salt Cloud Use the event system in Salt to create a reactive and self-healing infrastructure In Detail SaltStack is one of the best infrastructure management platforms available. It provides powerful tools for defining and enforcing the state of your infrastructure in a clear, concise way. With this book learn how to use these tools for your own infrastructure by understanding the core pieces of Salt. In this book we will take you from the initial installation of Salt, through running their first commands, and then talk about extending Salt for individual use cases. From there you will explore the state system inside of Salt, learning to define the desired state of our infrastructure in such a way that Salt can enforce that state with a single command. Finally, you will learn about some of the additional tools that salt provides, including salt-cloud, the reactor, and the event system. We?ll finish by exploring how to get involved with salt and what?s new in the salt community. Finally, by the end of the book, you'll be able to build a reliable, scalable, secure, high-performance infrastructure and fully utilize the power of cloud computing. Style and approach This will be a comprehensive guide on SaltStack along with installation and setting up of Salt on couple of platforms. Then enlightening the readers about remote execution system and configuration management system and ending with concepts of security and best practices.
目录展开

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

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部