Hi,
I have been using salt to manage a set of local jenkins slaves in our local vmware server. I am now interested into extending the management for VMs into the cloud (GCE and/or AWS).
As some slaves require access to large data during provisioning, I would like for each data center to have a copy of said files (kept in sync through rsync), so that each VM will access data from its datacenter/cloud provider. What is the best way for each VM to get the data from its datacenter ?
1. obviously, each minion would need to know which datacenter it belongs to
2. the master should somehow keep a mapping for datacenter -> settings
For 1., seems like I could easily set that in the cloud provider configuration, by setting up a grain whose value would be different for each cloud provider
For 2., I could then just use pillar that would depend on the value in the grain(s) set in 1.
Does that make sense ? Is there a simpler way to achieve this ?
Thanks,
David