Vagrant 1.7.4: Salt Bootstrap broken

54 views
Skip to first unread message

Joaquin Menchaca

unread,
Aug 11, 2015, 10:03:29 PM8/11/15
to Vagrant
I posted this in Salt Users group, but figured there might be others (new users, etc) interested in this from Vagrant as well.  I found some workarounds for these two issues that seem to work.  I haven't tested these out in other distros/versions.

Issues:
Solution:

For Debian Wheezy and Cent OS 6.6, I had to append -F -c /tmp, so my Vagrantfile looked liked this:

  config.vm.synced_folder "../../provisioning/salt", "/srv/salt/"

  # Provision System
  config.vm.provision :salt do |salt|
    salt.run_highstate = true
    salt.minion_config = "../../provisioning/minion"
    salt.bootstrap_options = "-F -c /tmp"          # Vagrant Issue #6011
    salt.verbose = true
  end


For Ubuntu Precise 12.04, I add to add an -P, as pip is used to install Tornado 4.0+:

  config.vm.synced_folder "../../provisioning/salt", "/srv/salt/"

  # Provision System
  config.vm.provision :salt do |salt|
    salt.run_highstate = true
    salt.minion_config = "../../provisioning/minion"
    salt.bootstrap_options = "-F -c /tmp -P"    # Vagrant Issues #6011 & #6029
    salt.verbose = true
  end
end

Oliver Bestwalter

unread,
Aug 12, 2015, 5:19:00 AM8/12/15
to Vagrant
Thanks Joaquin,

much appreciated. 

The Salt provisioner definitely needs more testing love before releases, to prevent these kinds of breakhages that become obvious once you run the code with some standard settings against the mainstream distros. 

cheers
Oliver
Reply all
Reply to author
Forward
0 new messages