When I do a vagrant provision, I get an empty recipe list.  I do not know 
how I can get a recipe loaded.  When I manually specify the recipe, it gets 
loaded. 

How could I get own runlist of recipes loaded, rather than manually specify 
it in the Vagrant file?
Is there any way to have a particular recipe runlist loaded for particular 
host?

I searched for hours, combed through documentation, and I could not find 
this.  The only solution I could find is 
config.vm.provision["chef_zero"].add_recipe("myrecipe"), which creates some 
dna.json in /tmp/vagrant_chef folder on the client system.

.
├── Cheffile
├── Gemfile
├── Gemfile.lock
├── cookbooks
├── data_bags
├── environments
├── nodes
│   ├── centos6box.json
│   └── wheezy.json
├── roles
├── site-cookbooks
│   └── scriptbox
│       ├── CHANGELOG.md
│       ├── README.md
│       ├── attributes
│       ├── definitions
│       ├── files
│       │   └── default
│       ├── libraries
│       ├── metadata.rb
│       ├── providers
│       ├── recipes
│       │   └── default.rb
│       ├── resources
│       └── templates
│           └── default
└── vagrants
    ├── centos6
    │   └── Vagrantfile
    └── wheezy
        └── Vagrantfile

*Vagrantfile*

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "chef/centos-6.6"

  config.vm.hostname = "centos6box"

  config.vm.provision :chef_zero do |chef|
    chef.cookbooks_path  = ["../../cookbooks", "../../site-cookbooks"]
    chef.roles_path      = "../../roles"
    chef.nodes_path      = "../../nodes"
    chef.data_bags_path  = "../../data_bags"
    chef.verbose_logging = true
    chef.add_recipe "scriptbox"
  end

end

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to