手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Saltstack 0.14.0发布。服务器批量管理工具

[日期:2013-03-24] 来源:oschina.net  作者:Linux [字体:大 中 小]

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.gz

linux
相关资讯       SaltStack 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款