厨师是否适合部署到各种环境?

时间:2014-11-13 00:07:13

标签: deployment chef

我听说过很多关于厨师作为配置管理员或安装和更新服务器的事情,但关于部署以及与后者相关的前后步骤并不多。

我想在几个内部Linux服务器上进行以下操作:

for environments in "env1 env2"
    for services in "service1 service2"
        for nodes in "node1 node2"
            stop service in the fashion of $service
            check if service is really stopped
            download new package
            install new package in path
            update configuration files acording to $environment
            start service
            poke healthcheck to see if deployed
            execute test suite
            if deployed
                go to next node
            else
                fail

如果不进行太多黑客攻击,可以做多少?

对于厨师来说,它是否适合使用?或者没有那么多?

1 个答案:

答案 0 :(得分:1)

Chef在循环中完成所有操作,循环本身并不是Chef会处理的东西,但它可以与Fabric或RunDeck等编排工具很好地吻合。

相关问题