0
我想提供一個使用廚師使用Opscode cookbook的Apache。我已經配置了我的默認屬性,如下所示。我創建了一個模板文件/vagrant/sites-available/sof.conf
(甚至可以肯定的是/vagrant/sites-available/sof.conf.erb
)。廚師Apache2的web_app配置
它從不評估模板或啓用網站。哪裏不對?
(使用廚師服務器如果改變任何東西)
{
"overrides": {},
"defaults": {
"apache2": {
"web_app": {
"name": "sof",
"server_name": "localhost",
"server_aliases": [],
"docroot": "/vagrant/web"
},
"user": "www-data",
"dir": "/vagrant",
"log_dir": "/vagrant/logs/http"
}
}
}
從[doc](https://github.com/opscode-cookbooks/apache2#web_app)中的示例看來,您可以僅通過其他cookbooks而不是通過節點屬性聲明web_apps? – cmur2
@ cmur2你說得對。如果你建議作爲答案,我會接受它。 – Ryan