Hi,
I’m fairly new to Chef but at work I’ve noticed my approach is different to
some of my co-workers.
We all work remotely and use github and vagrant w/ chef for local
development.
From our workstation it’s mostly capistrano deployment to production
servers.
There are two apps that we’ve just updated the vagrant builds.
For one of these apps my coworker put his run lists in the Vagrantfile -
which works fine.
So when you “vagrant up” the recipes run and everything gets pretty much
done.
Then there’s just a rake db seeding task to finish the build off.
The other app is the one I’ve done, but the run list is in a node.json file.
“vagrant up” just boots up the VM … then I use “knife solo cook” to run
the recipies.
Ex: knife solo cook vagrant@192.168.33.10
I’m thinking the “knife solo cook” method is better as it more versatile.
These same recipes are not bound to vagrant and can easily be run on a
remote server.
What do you think? Am I missing something?