The important thing about the Vagrant file is the line that reads chef.data_bags_path = "data_bags"
.
The ign-tomcat recipe uses some Data Bags e.g. tomcat_group_details = data_bag_item('groups', 'tomcat')
If we look at the working Dir..
$ ls -l
total 8
-rw-rw-r-- 1 bpalacio staff 2807 Mar 16 16:29 Vagrantfile
drwxrwxr-x 2 bpalacio staff 68 Mar 15 17:31 cookbooks
drwxrwxr-x 7 bpalacio staff 238 Mar 14 23:01 data_bags
drwxr-xr-x 2 bpalacio staff 68 Mar 15 17:18 roles
and we cat data_bags/groups/tomcat.json
we get:
{
"id": "tomcat",
"gid": 270
}
I had trouble with "id":"tomcat-server"
for some strange reason.