bakins / vagrant-chef-apply

Simple Vagrant provisioner using chef-apply
Apache License 2.0
10 stars 2 forks source link

Allow resource/recipe definition inline in Vagrantfile #2

Open patcon opened 11 years ago

patcon commented 11 years ago

Like the shell provisioner, allow inline resources in the vagrantfile. This would be helpful when someone wants a simple package installed, and doesn't want to pollute to root directory with a random ruby file.

Example:

Vagrant.configure("2") do |config|
  config.vm.provision :chef_apply do |chef|
    chef.inline = "package 'php-pear'"
  end
  ...
end
bakins commented 11 years ago

I'll take a look. Don't think it is too hard. Patches welcome if I don't get to it soon ;)