I have a project to automate the build of an SOE image - using vagrant and various other tools - that will end up being used in SCCM. The structure of the project is:
I intent to use the master project as the orchestrator for the subproject sequencing, and as the host for the vagrant instance.
Subproject 1 exports a box file using boxcutter (packer + vagrant) that the master project imports into vagrant, then that vagrant instance is reused across the remaining subprojects, which each provisioning different pieces.
Because each subproject is responsible for different provisioning pieces i want each to initiate their own provisioning scripts. Essentially i want each subproject to override elements of the master project's Vagrantfile to include the provisioning they need to run.
This article ( https://www.vagrantup.com/docs/vagrantfile/)会在讨论查找路径和加载顺序之后执行事件,但这意味着一旦找到Vagrantfile,树上的无业游民将停止走动并使用该文件。
我的问题是:我可以在主项目中有一个“主” Vagrantfile,该文件指定大多数无用的元素(盒子,网络等),然后在子项目目录中有一个更具体的Vagrantfile,该文件指定更多的特定元素(synced_folder,供应,等等),并在子项目的“无用功”中合并这两个项目?