单个流浪文件中的多个提供者? [英] Multiple providers in a single vagrant file?
本文介绍了单个流浪文件中的多个提供者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个构建本地 VM 的流浪文件.我想添加 EC2 提供程序,并且可以选择配置本地 VM 或在 EC2 上配置一个.
I've got a vagrant file that builds a local VM. I want to add the EC2 provider and have the option of either provisioning a local VM or one on EC2.
我可以在同一个 Vagrantfile 中为多个提供者创建配置,并在我执行 vagrant up
时以某种方式选择要运行的配置吗?
Can I create configs for multiple providers in the same Vagrantfile and somehow choose which to run when I do vagrant up
?
推荐答案
您可以使用 多虚拟机 环境,其中每个虚拟机都可以使用不同的提供程序进行配置,您可以在命令行上选择要vagrant up
.
You can use a multi-vm environment, where every VM can be provisioned with a different provider and you can choose on commandline which one you want to vagrant up <machine>
.
这篇关于单个流浪文件中的多个提供者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文