我收到以下错误:
没有名为' common_tmp_dir'的资源或方法为' Chef :: Recipe"" init"
我的食谱有以下内容:
install_home = "/m1/common"
user = "syun"
group = "dba"
common_tmp_dir "Creating install home: #{install_home}" do
path install_home
user user
group group
action :create
end
请帮忙。
答案 0 :(得分:1)
您应该使用directory资源来创建新目录。
directory "Creating install home: #{install_home}" do
path install_home
user user
group group
action :create
end