[chef] Vagrant's add_role not working.


Chronological Thread 
  • From: Douglas Garstang < >
  • To:
  • Subject: [chef] Vagrant's add_role not working.
  • Date: Wed, 5 Nov 2014 11:46:45 -0800

This may be more of a vagrant question, but, I have this in my Vagrantfile:

  config.vm.provision :chef_solo do |chef|
    chef.node_name              = "test01.slicetest.com"
    chef.environment            = "dev"
    chef.cookbooks_path         = "../../chef-cookbooks"
    chef.data_bags_path         = "../../chef-sauce/data_bags"
    chef.environments_path      = "../../chef-sauce/environments"
    chef.roles_path             = "../../chef-sauce/roles"
    chef.add_role ("role-base")
    chef.run_list = [
        "recipe[slice-swap::default]"
    ]
  end

The chef.add_role() isn't working. The roles_path above it is valid. I tried chef.add_role("bogus") and there was no error reported. It seems the role just isn't there. This is vagrant 1.6.5 and chef 11.14.0.alpha.1

Doug




Archive powered by MHonArc 2.6.16.

§