Pass command line argument to vagrant shell script provisioner
问题 Similar to this question: Passing variable to a shell script provisioner in vagrant I want to pass variables to a shell script provisioner but I want to set these variables on the command line when I call the provisioner. Is this possible? 回答1: This is what I would try - I guess there are possibilities as Vagrantfile is a ruby script, you can use most of ruby possibilities Be careful though as vagrant might need to check for variables, for example when doing vagrant up arg1 arg2 , it expects