gpt4 book ai didi

chef-solo - 如何覆盖包装工 Chef solo 供应商中的属性

转载 作者:行者123 更新时间:2023-12-04 19:01:09 30 4
gpt4 key购买 nike

我的打包代码包含打包厨师 solo 供应商

{

"type": "chef-solo",
"cookbook_paths": ["chef/cookbooks/vendor"],
"run_list": ["recipe[cicada-jenkins-cookbook::default]","recipe[cicada-jenkins-cookbook::support_tools]","recipe[cicada-jenkins-cookbook::cft_seed_dsl]","recipe[cicada-jenkins-cookbook::terraform_seed_dsl]"]

}
在这里,我需要覆盖属性,如何在打包程序中传递它们

最佳答案

{
"type": "chef-solo",
"cookbook_paths": ["chef/cookbooks/vendor"],
"roles_path": "chef/roles",
"json": {
"jenkins": {
"master": {
"port": 8080
},
"executor": {
"timeout": 300
}
},
"jenkins-cookbook": {
"admin_user": "uname",
"admin_pass": "pwd"
}
},
"run_list":["role[jenkins]"]
}
  • 根据packer文档,我们可以以json的形式传递节点属性
  • 关于chef-solo - 如何覆盖包装工 Chef solo 供应商中的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37480410/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com