Hope you are all well!
I'm automating the deployment of a MongoDB replica set in AWS EC2 through the Salt-Stack Salt-Cloud python API.
I'd like to use a single script to provision the servers:
client=salt.cloud.CloutClient(path'/etc/salt/cloud')
client.profile('db_node_profile',names=['host1','host2','host3'])
However, I'd like the 1st server to be created using a different cloud profile, say db_master_profile. There is a vm_overrides option for the 'profile' client (see documentation linked above), but I can't find further detail on how it should work.
Can anyone shed some light on how vm_overrides works, if this is a possible solution, or an alternative manner to provision the instances based on Salt-Cloud profiles using a low-overhead SINGLE script?