title: Vagrant - how to have host platform specific provisioning steps
body: <p>We've got a diverse dev team, one on Windows, another on Ubuntu and another on OSX. Being windows boy, I setup the first version of the vagrant setup script which works fabulously ;)</p>
  
  <p>However, when running it on the Ubuntu host, the first time it gets to a provision step that calls a bash script, it fails due to permissions.</p>
  
  <p>On windows, this doesn't matter as the samba share automatically has sufficient permissions to run the bash script (which resides within the project hierarchy, so is present in the /vagrant share on the VM), but with ubuntu I need to set the permissions on this file in the provision script before I call it.</p>
  
  <p>This isn't the problem and to be honest I suspect even with the extra "chmod" step it would still work fine under windows, but, is there a way in the vagrant file to flag certain provisioning steps as 'Windows Only', 'Linux Only' or 'Mac Only'?</p>
  
  <p>i.e. in pseduo code, something like.</p>
  
  <pre><code>.
  .
  if (host == windows) then
    config.vm.provision : shell, : inline =&gt; "/vagrant/provisioning/only_run_this_on_windows.sh"
  else if (host == linux) then
    config.vm.provision : shell, : inline =&gt; "/vagrant/provisioning/only_run_this_on_linux.sh"
  else if (host == osx) then
    config.vm.provision : shell, : inline =&gt; "/vagrant/provisioning/only_run_this_on_osx.sh"
  end if
  .
  .
  </code></pre>
  
  <p>Thanks in advance.</p>