http://os.51cto.com/art/201308/409041.htm
Salt,,一种全新的基础设施管理方式,部署轻松,在几分钟内可运行起来,扩展性好,很容易管理上万台服务器,速度够快,服务器之间秒级通讯。
salt底层采用动态的连接总线, 使其可以用于编配, 远程执行, 配置管理等等.
参见
其他文档
下载Salt文档的副本:
・ ePub
查看之前的Salt版本文档请访问 http://salt.readthedocs.org. 访问 ReadTheDocs download page 下载离线副本.
访问 SaltStack YouTube channel 获取公告、示例及视频教程.
Salt源码版本可以通过下面的PyPi链接下载获得:
https://pypi.python.org/pypi/salt
以下链接的安装文档,描述了在各个平台上如何获得安装包及对应安装细节:
安装教程
Salt Bootstrap项目,可以从以下的版本库找到,是一个能在多个平台上自动正确安装的独立Shell脚本,
https://github.com/saltstack/salt-bootstrap
此演练将帮助你快速入门Salt,并了解关于它的基础知识:
官方Salt演练
下面的入门教程,也可供选择:
States - Salt配置管理系统:
・
States入门
・
・
基本配置管理
・
・
一些基本配置管理
・
・
高级技巧
・
・
Salt文件服务路径继承
・
无Master快速入门:
Salt快速入门
所有的教程都可以在以下列表中找到:
Salt教程列表
部署和使用Salt是个简单的工作,当然也可以以更加深入高级的方式运行。这些文档让我们更明白Salt是如何进行基础设施的管理的。
在远程主机运行预定义或任意的命令,也叫远程执行,这是Salt的核心功能。接下来的链接展示了模块(module)和返回器(returner),这是远程执行的关键所在。
模块
Salt 模块是远程执行的基础。它提供了一系列的功能,比如安装包,重启一个服务,运行名称命令,传输文件等等。
所有模块列表
包括:Salt用的核心模块的列表
编写模块
包括:如何写Salt模块的引导
Returners
Salt返回接收器(returner)允许把minion的响应保存在各种数据存储或不同的位置,甚至把响应内容显示在命令行。Returner可以用来扩展Salt,和新的,定制的接口和支持新的数据库进行通信。
所有returners列表
包括:用来保存minion响应内容到Redis,Mongo,Cassandra,SQL或其他地方的返回接收器(returner)模块列表。
编写returners
包括:编写返回接收器(returner)模块的指令。
Targeting 指明那些将执行命令或管理服务器配置的minion主机。接下来的链接提供了关于如何指定和匹配目标minion的更多信息。
Globbing and regex
匹配minions 通过通配符和正则表达式
Grains
用来匹配minion的grains,是指那些关于minion主机的静态信息,比如OS,软件版本,虚拟化,CPU,内存等等。
Pillar
通过用户定义的变量匹配minion主机
子网/IP地址
通过子网或IP地址匹配minion主机(当前仅支持IPV4)。
复合匹配
把上面的全部匹配器组合为一个表达式。
节点组
在master配置文件中静态定义minion组,使用:ref:复合 <targeting-compound> 匹配语法。.
批量执行
因此一些命令集在匹配上的minions时只需要执行一次。
Salt包含了一个强壮且灵活的配置管理框架,它建立在远程执行的核心功能之上。这个框架在minion上执行,通过渲染语言(rendering language)指定state文件,可轻松配置上万台主机。后面的链接提供了更多学习状态(state)和渲染器(renderer)的资源。
States
使用小的、易读易理解的配置文件表达主机的状态。不需要编程。
所有states列表
Contains: list of install packages, create users, transfer files, start services, and so on.
Pillar系统
Contains: description of Salt's Pillar system.
States概览
Contains: an overview of states and some of the core components.
Highstate 数据结构
Contains: a dry vocabulary and technical representation of the configuration format that states represent.
编写states
Contains: a guide on how to write Salt state modules, easily extending Salt to directly manage more software.
Renderers(渲染器)
Renderers use state configuration files written in a variety of languages, templating engines, or files. Salt's configuration management system is, under the hood, language agnostic.
所有renderers列表
Contains: a list of renderers. YAML is one choice, but many systems are available, from alternative templating engines to the PyDSL language for rendering sls formulas.
Renderers
Contains: more information about renderers. Salt states are only concerned with the ultimate highstate data structure, not how the data structure was created.
The following links explore various Salt topics in depth.
Salt Cloud
Salt Cloud是一个公有云的provision工具,在许多云providers上整合Salt.
文件服务
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
Syndic is a tool to allow one master host to manage many masters, which in turn manage many minions. Scale Salt to tens of thousands of hosts or across many different networks.
节点通信
Allow minions to communicate among themselves. For example, configure one minion by querying live data from all the others.
Reactor系统
reactor系统允许Salt创建一个自感知环境通过通过抓取底层事件转化为实质处理。
Salt防火墙设置
This is a tutorial covering how to properly firewall a Salt Master server.
执行调度 (如states)
The schedule system in Salt allows for executions to be run from the master or minion at automatic intervals.
网络技术
At it's core, Salt is a highly scalable communication layer built on top of ZeroMQ, which enables remote execution and configuration management. The possibilities are endless and Salt's future looks bright.
测试Salt
This is a tutorial for writing unit tests and integration tests.
Salt Proxy Minions
Proxy minions allow for the control of devices and machines which are unable to run a salt-minion.
Python API接口
The Python API allows the developer to use Salt locally from scripts and programs easily via importsalt.
External API interfaces
Expose a Salt API such as REST, XMPP, WebSockets, or others using netapi modules. Run these modules using the salt-api daemon. See the full list of netapi modules.
自动更新和Frozen Binary部署
Use a frozen install to make deployments easier (even on Windows!). Or take advantage of automatic updates to keep minions running the latest builds.
Windows软件管理/包仓库
Looking 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, anywhere on the network, including any HTTP, HTTPS, or ftp server.