I'm looking for a way to pass parameter to Chef cookbook like:
$ vagrant up some_parameter
And then use some_parameter inside one of the Chef cookbooks.
some_parameter
You cannot pass any parameter to vagrant. The only way is to use environment variables
MY_VAR='my value' vagrant up
And use ENV['MY_VAR'] in recipe.
ENV['MY_VAR']
2.1m questions
2.1m answers
60 comments
57.0k users