Closed raulillana closed 8 years ago
I forgot that seems like provision-pre.sh
isn't running also. Mine is empty so i can't really tell.
==> whatever: [vagrant-hostsupdater] Checking for host entries
==> whatever: [vagrant-hostsupdater] found entry for: 192.168.255.10 whatever.com
==> whatever: Running provisioner: chef_solo...
==> whatever: Detected Chef (latest) is already installed
==> whatever: Generating chef JSON and uploading...
==> whatever: Running chef-solo...
Ok i figured it out. It was a directory problem. I feel dumb, sorry. ^^'
if File.exists?(File.join(File.dirname(__FILE__), 'provision/provision-pre.sh')) then
config.vm.provision :shell, :path => File.join( File.dirname(__FILE__), 'provision/provision-pre.sh' )
end
Howdy!
When my Chef provision ends, the provision-post.sh should be called, but it's not.
Output:
My provision-post.sh:
BTW my
exportdb.sh
andexportwp.sh
scripts are working fine viarun_remote
andvagrant-triggers
.Any tips welcome... :_)
PS: Great work on this tool guys, really. 👍