I am trying to provision a Apache using chef using the Opscode cookbook. I have configured my default attributes like this below. I have created a template file /vagrant/sites-available/sof.conf
(and even /vagrant/sites-available/sof.conf.erb
just to be sure).
It never evaluates the template or enables the site. What is wrong?
(Using chef-server if that changes anything)
{
"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"
}
}
}
From the examples section in the doc it seems that you can declare web_app
s only from within other cookbooks not via node attributes.