Best way to run applier on multiple repos/inventories from one playbook?
I have several git repositories with a single app in each. I want to aggregate the deployment of each of these repos using the applier. What is the best way to accomplish this?
Can the openshift_cluster_content variable be reset between applier runs from a single playbook?
Related to #80
I believe there are a couple of ways you can attempt to do this through the inventory:
-
use a unique
hostorgroupto represent your target repo, then defineopenshift_cluster_contentin each respectivehost_varsorgroup_vars. You'd need to create a playbook similar to the one that's already in this repo, but remove the[0]from the target hosts to ensure it utilizes all your targets. IMHO, this is pushing the concept of a "host" a bit, but I don't see why it wouldn't work. -
I've not tried this myself, but you should be able to use the combine filter with
openshift_cluster_contentdefinitions from multiple inventories - then just specify multiple-iduring the execution. Note that this requires that the content is unique as it doesn't know how to "merge" the content in a smart way (I believe it's typically last-one-wins).