Hi, just trying to bump this issue. 
I have vagrant running in windows. I'm trying to get a script to run after 
machine is created. I've tried config.vm.provision both inline and 
external.  I've run it in debug and there are no errors it simply just 
exits after it's done installing the machine
my script looks like this

# -*- mode: ruby -*-
# vi: set ft=ruby :

$script = <<SCRIPT
echo I am provisioning...
date > /etc/vagrant_provisioned_at
SCRIPT

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provision "shell", inline: $script
end


the provision part is straight from the docs. I also tried this 

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
end

$script = <<SCRIPT
echo I am provisioning...
date > /etc/vagrant_provisioned_at
SCRIPT

Vagrant.configure("2") do |config|
  config.vm.provision "shell", inline: $script
end

still no dice. It's almost as if it's not running my file but some default 
vagrantfile somewhere.  I put echo's in the vagrantfile and they were never 
hit, which made me think it was not using my file, but then I changed the 
name of the file and it did error out. So I don't know I'm at a loss. I'd 
be happy to post parts of my --debug log.  But it does seem as though this 
feature is non functional.
Any help would be greatly appreciated.
R

-- 
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