How would I template an SLS using saltstack
- by user180041
I'm trying to do proof of concept with Mongodb(sharding) and Id like to run a command every time I spin up a new cluster without having to add lines in all my sls files. My current init is as follows:
mongo Replica4:27000 /usr/lib/mongo/init_addshard.js:
cmd:
- run
- user: present
The word Replica4 is not templated id like to know a way I would be able to do so, that way when I spin up a new cluster I wouldn't have to touch anything in this file.