Hello

I tried your vagrantfile and I got an error.

so not sure if yours is starting?? or why mine is not working

the error is missing an = in s.path

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.synced_folder "./", "/vagrant_share", create: true
  config.vm.provision "shell" do |s|
    s.path = "provision/setup.sh"
  end
end


So, after the shares are mount, it run the script and I can see the echo:

==> default: Mounting shared folders...
    default: /vagrant => /Volumes/hd1/Dropbox/vagrant_mini/trusty64
    default: /vagrant_share => /Volumes/hd1/Dropbox/vagrant_mini/trusty64
==> default: Running provisioner: shell...
    default: Running:
/var/folders/_h/d14sw7c55ds3qr05nnp6ckhc0000gn/T/vagrant-shell20150428-22140-1cr0tc6.sh
==> default: stdin: is not a tty
==> default: hello





On Tue, Apr 28, 2015 at 2:31 PM, Raif Harik <[email protected]> wrote:
> Hi, pretty new to vagrant.
> Running vagrant -> virtualbox on windows
> I have a simple vagrantfile like this
> # -*- mode: ruby -*-
> # vi: set ft=ruby :
>
>
> Vagrant.configure(2) do |config|
>   config.vm.box = "ubuntu/trusty64"
>   config.vm.synced_folder "./", "/vagrant_share", create: true
>
>   config.vm.provision "shell" do |s|
>     s.path "provision/setup.sh"
>   end
> end
>
> Not sure if I need the two first lines. probably not.  But anyway,
>
> the provision/setup.sh reads
> #!/bin/bash
>
> echo "Provisioning virtual machine..."
>
> when I vagrant up and I search the output I don't find my echo.  I know that
> with vagrant up provisioning only runs the first time, this is the first
> time plus I've run it with vagrant reload --provision.  I've tried just
> doing config.vm.provision "docker" and that never loads. I must be doing
> something wrong.
> Any ideas would be greatly appreciated.
> Thanks,
> 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