Chef infra 使用应用程序和主管服务的厨师配方
我一直在尝试运行以下食谱-它使用opscode应用程序和supervisor cookbooks来安装东西 问题是,我不希望总是运行supervisor和pip安装位,当我改变了使用代码示例中注释掉的行时,通知永远不会执行。它们应该推迟到配方运行之后,但会丢失 如果删除了注释行,“supervisor\u service”上的操作是Chef infra 使用应用程序和主管服务的厨师配方,chef-infra,Chef Infra,我一直在尝试运行以下食谱-它使用opscode应用程序和supervisor cookbooks来安装东西 问题是,我不希望总是运行supervisor和pip安装位,当我改变了使用代码示例中注释掉的行时,通知永远不会执行。它们应该推迟到配方运行之后,但会丢失 如果删除了注释行,“supervisor\u service”上的操作是操作:nothing application "testing" do repository "git@github.com:..." path "/opt/
操作:nothing
application "testing" do
repository "git@github.com:..."
path "/opt/somewhere/testing"
revision "master"
notifies :run, "execute[pip-ingestion]", :immediately
#notifies :enable, "supervisor_service[s3batcher]"
#notifies :restart, "supervisor_service[s3batcher]"
deploy_key <<EOF
-----BEGIN RSA PRIVATE KEY-----
....
EOF
end
execute "pip-ingestion" do
command "pip install -r #{root}/requirements.txt"
action :run
end
supervisor_service "s3batcher" do
command "python #{root}/manage.py batch_s3 --settings=#{root}/settings.yaml"
process_name "s3batcher-%(process_num)s"
action [:enable, :restart]
autostart true
user "root"
numprocs 1
end
应用程序“测试”是什么
存储库“git@github.com:..."
路径“/opt/某处/测试”
修订版“母版”
通知:运行,“执行[pip摄取]”,:立即
#通知:启用“管理器\u服务[s3batcher]”
#通知:重新启动“supervisor\u服务[s3batcher]”
部署密钥