Skip to content
Advertisement

Tag: salt-stack

How do I pass parameters to a salt state file?

I want to create a group and user using salt state files, but I do not know the group, gid, user, uid, sshkey until I need to execute the salt state file which I would like to pass in as parameters. I have read about Pillar to create the variable. How do I create pillars before execution? /srv/salt/group.sls: Command line:

Advertisement