How would I template an SLS using saltstack

Posted by user180041 on Server Fault See other posts from Server Fault or by user180041
Published on 2013-10-31T20:27:22Z Indexed on 2013/10/31 21:57 UTC
Read the original article Hit count: 171

Filed under:
|
|
|
|

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.

© Server Fault or respective owner

Related posts about mongodb

Related posts about deploy