gpt4 book ai didi

drupal-7 - 在 Chef (ubuntu)中安装配方时在哪里指定属性?

转载 作者:行者123 更新时间:2023-12-04 05:24:36 25 4
gpt4 key购买 nike

新厨师的世界。

我发现了这个有用的食谱:https://github.com/mdxp/drupal-cookbook

我看到以下默认属性:

default['drupal']['version'] = "7.14"
default['drupal']['checksum'] = "..."
default['drupal']['dir'] = "/var/www/drupal"
default['drupal']['db']['database'] = "drupal"
default['drupal']['db']['user'] = "drupal"
default['drupal']['db']['host'] = "localhost"
default['drupal']['site']['admin'] = "admin"
default['drupal']['site']['pass'] = "drupaladmin"
default['drupal']['site']['name'] = "Drupal7"
default['drupal']['apache']['port'] = "80"

在 node.json 我有:
{
"run_list": [
"recipe[drupal]"
]
}

当我经营厨师时;它安装drupal,具有默认属性;这不是我想要的。

愚蠢的问题:我在哪里覆盖“默认”属性?

找不到具体而简单的例子。维基太困惑了。

最佳答案

在那个 JSON 块中,如果您在那里指定信息,它应该可以工作。

E.G.

{
"drupal": {
"db": {
"user": "foo",
"host": "bar"
}
},
"run_list": ["recipe[drupal]"]
}

关于drupal-7 - 在 Chef (ubuntu)中安装配方时在哪里指定属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13341759/

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