Salt Stack 官方文档翻译

OSNIT_百度百科

Salt Stack 官方文档翻译 - 一个想做dba的sa - 博客频道 - CSDN.NET

Salt Stack 官方文档翻译

分类: 自动运维 378人阅读 评论(0) 收藏 举报

原文地址:http://docs.saltstack.com/

Salt Stack 是什么?

Salt 是一种新的基础架构管理方法。容易的在几分钟之内即可配置运行,可伸缩的足以管理成千上万的服务器,足够快的在几秒只内完成沟通。Salt通过分发一个动态的配置接口,可以被用来,配置,远程执行,配置管理等等。

下载:

用过PYpi下载源代码:

https://pypi.python.org/pypi/salt

根据不同分发版本和系统的安装文档:

Installation(http://docs.saltstack.com/topics/installation/index.html)

Salt Bootstrap 自动安装脚本:

https://github.com/saltstack/salt-bootstrap

开始:

这个官方指导手册帮助个人快速上手和获取一些关于Salt的基础知识:

Official Salt Walkthrough (http://docs.saltstack.com/topics/tutorials/walkthrough.html)

额外的可用的基础教程:

Sates - Salt 配置管理

 

其他快速手册:

 

Salt Quickstart

 

其他一些教程列表:

All Salt tutorials

 

深入Salt

配置和使用Salt是一个很简单的任务,但是它可以更加复杂和深入,以下这些文档可以引导新手更深入理解Salt如何管理基础架构。

远程执行

远程执行是Salt的核心功能。执行预定义或者任意的命令在远程主机上。

模块

     模块是远程执行的核心。他们提供如下功能,包安装,重启服务,执行一个远程命令,传输一个文件等等。

模块列表:

    大部分核心模块

写模块:(http://docs.saltstack.com/ref/modules/index.html)

    撰写模块指导手册

反馈信息(Returners 不知道这样子翻译准确吗)

Salt 反馈信息可也保存在各种数据库或本地的文件中,除了显示在CLI上。

Full list of returners(http://docs.saltstack.com/ref/returners/all/index.html)

存储从服务器的反馈信息在Redis,Mongo,Cassandra,SQL或者其他

Writing returners (http://docs.saltstack.com/ref/returners/index.html)

其他的Salt 接口容易撰写。

 

目标主机(TARGETING)

目标主机是指明那些从服务器应该执行命令或者操作服务器配置。

全局和匹配

使用正则表达式匹配从服务器

分组(Grains)

使用一些基本信息匹配从服务器,这些信息如:OS,软件版本,虚拟CPU,内存等等。

节点分组(Node groups)

静态定义从服务器分组

混合匹配(Compound Matchers)

综合上面匹配作为单一匹配

定量执行

遍历所有匹配的从服务器,只有一个子集是一次执行一个命令

 

配置管理

建立在远程执行之上的核心是健壮灵活的配置管理框架。执行发生于从服务器允许授权,同时配置的成千上万的主机。

 

状态

使用小的,容易阅读,易于理解的配置文件展示一个主机的状态信息,没有变成语言的要求。

 

Full list states(http://docs.saltstack.com/ref/states/all/index.html)

安装软件包,创建用户,传输文件,启动服务等等。

States overview

概述状态信息和一些核心组件

高效的数据结构

有效的词汇和技术表示的配置格式,状态信息

Writing states

关注如何撰写state模块的指导手册,直接扩展Salte 易于管理软件的能力。

 

显示(Renderers)

撰写状态配置文件使用的语言,模板引擎,或者文件类型的选择。Salt的配置管理系统是高级和语言无关的。

Full list of renderers

对于PyDSL语言的rendering sls类型的文件,YAML不是唯一的选择,很多其他的格式系统都可以使用。

Renderers

Salt 状态只关系最终的数据结构,至于这种数据结构是怎样创建的是不太中重要的。

其他主题:

Salt 很神奇能做很多事情。

 

File Server 文件服务器Salt can easily and quickly transfer files (in fact, that's how Salt States work). Even under heavy load, files are chunked and served.

 

Syndic  代理

 

A seamless master of masters. Scale Salt to tens of thousands of hosts or across many different networks.Peer CommunicationAllow minions to communicate amongst themselves. For example, configure one minion by querying live data from all the others. With great power comes great responsibility.Reactor SystemThe reactor system allows for Salt to create a self aware environment by hooking infrastructure events into actions.Firewall Settings and SaltA tutorial covering how to properly firewall a Salt Master server.Scheduling Executions (like states)The schedule system in Salt allows for executions to be run of all sorts from the master or minion at automatic intervals.Network topologyAt it's core, Salt is a highly scalable communication layer built on top of ZeroMQ that enables remote execution and configuration management. The possibilities are endless and Salt's future looks bright.Testing SaltA howto for writing unit tests and integration tests.Python API interfaceUse Salt programmatically from scripts and programs easily and simply via import salt.Automatic Updates and Frozen Binary DeploymentsUse a frozen install to make deployments easier (Even on Windows!). Or take advantage of automatic updates to keep minions running the latest builds.Windows Software Manager / Package RepositoryLooking for an easy way to manage software on Windows machines? Search no more! Salt has an integrated software package manager for Windows machines! Install software hosted on the master, somewhere on the network, or any HTTP, HTTPS, or ftp server.

 

 

 

原文地址:https://www.cnblogs.com/lexus/p/3413799.html