koikimakimoto/altax-chef

通过altax运行chef-solo。

dev-master 2014-03-06 10:37 UTC

This package is auto-updated.

Last update: 2024-09-06 23:31:20 UTC


README

通过altax和Git运行chef-solo。

注意:该产品处于开发阶段,所以有时我会破坏代码。

要求

我在以下环境中进行了测试。

  • CentOS6
  • PHP5.4

安装

编辑你的.altax/composer.json文件如下。

{
  "require": {
    "kohkimakimoto/altax-chef": "dev-master"
  }
}

运行altax update。

$ altax update

.altax/config.php文件中添加以下代码。

Task::register("chef", 'Altax\Contrib\Chef\Command\ChefCommand')
->config(array(
    "repo" => "git@github.com:your/chef-reposigory.git"
))
;

用法

将chef软件包安装到远程节点。

altax chef node [node...] --prepare

使用run_list nodes/${HOSTNAME}.json运行chef-solo。

altax chef node [node...]