hello

Can you share a gist of your run

vagrant halt
vagrant up --provision

and other like

vagrant halt

VAGRANT_LOG=debug vagrant up --provision

I will like to have a look

I tested the first code in OSX and works, so I would like to see the
logs from your system

Thanks
Alvaro

On Fri, May 1, 2015 at 6:45 AM, Raif Harik <[email protected]> wrote:
> 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.

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