what to do about a config that fails unless provisioning runs first
repost to fix title.
I am trying to mount a directory from host into a rhel guest, but getting the addition that makes the mount possible can only happen during provisioning, when a bash script wgets the addition from inside the guest. is there any way to run provisioning mid-config? I'm trying to make all this happen inside a single config file, so that spawning an instance without having to run any other commands can be done by non-technical folks? I have tried:
inserting an inline script mid-config (this doesn't work, the script just gets added to the stuff that is supposed to happen during provisioning)
running arbitrary ruby in the config file, to see whether something complicated is possible (it isn't, seems like only vagrant-relevant commands actually run)
investigated the possibility of using triggers (idk how they work or whether they are a solution worth exploring for this problem)