Linux里批量管理工具salt,Saltstack 0.14.0发布。服务器批量管理工具

SaltStack 0.14.0发布。2013-03-24 这是一个用Python写的工具。可以看做Func增强版和Puppet的弱化版结合。非常好用,0.14.0新功能包括可 以作为云控制器(基于KVM和libvirt).新的get函数等。

详细改进:

Salt 0.14.0 is here! This release was held up primarily by PyCon, Scale and illness, but has arrived! 0.14.0 comes with many new features and is breaking ground for Salt in the area of cloud management with the introduction of Salt providing basic cloud controller functionallity.

Major Features

Salt - As a Cloud Controller

This is the first primitive inroad to using Salt as a cloud controller is available in 0.14.0. Be advised that this is alpha, only tested in a few very small environments.

The cloud controler is built using kvm and libvirt for the hypervisors. Hypervisors are autodetected as minions and only need to have libvirt running and kvm installed to function. The features of the Salt cloud controller are as follows:

Basic vm discovery and reporting

Creation of new virtual machines

Seeding virtual machines with Salt via qemu-nbd or libguestfs

Live migration (shared and non shared storage)

Delete existing VMs

It is noteworthy that this feature is still Alpha, meaning that all rights are reserved to change the interface if needs be in future releases!

Libvirt State

One of the problems with libvirt is management of certificates needed for live migration and cross communication between hypervisors. The newlibvirtstate makes the Salt Master hold a CA and manage the signing and distribution of keys onto hypervisors, just add a call to the libvirt state in the sls formulas used to set up a hypervisor:

libvirt_keys: libvirt.keys

New get Functions

An easier way to manage data has been introduced. The pillar, grains and config execution modules have been extended with the newgetfunction. This funtion works much in the same way as the get method in a python dict, but with an enhancement, nested dict components can be extracted using a:delimiter.

If a structure like this is in pillar:

foo: bar: baz: quo

Extracting it from the raw pillar in an sls formula or file template is done this way:

{{ pillar['foo']['bar']['baz'] }}

Now with the new get function the data can be safely gathered and a default can be set allowing the template to fall back if the value is not available:

{{ salt['pillar.get']('foo:bar:baz', 'qux') }}

This makes handling nested structures much easier, and defaults can be cleanly set. This new funcion is being used extensively in the new formulae repository of salt sls formulas.

下载:https://pypi.python.org/packages/source/s/salt/salt-0.14.0.tar.gz0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值