我正试图从apache2食谱的web_app.conf.erb
覆盖@params[:allow_override]
,但尝试了两个小时后我放弃了。有人知道怎么做吗?
我只想说,我想从chef.json
定义中的Vagrantfile内部进行操作。
web_app是一个Chef定义,这意味着它就像一个从配方中调用的函数,用于设置该web_app。您可以在Vagrantfile中将这些参数设置为属性,并通过web_app调用将它们传入。