Salt Stack 官方文檔翻譯

原文地址: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.




























發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章