I just realized installing it with Ansible is really elegant solution here:
---
- hosts: windows
tasks:
- name: Install sodium agent
win_chocolatey:
name: saltminion
state: latest
- name: Copy companyName.txt
template:
src: companyName.txt.j2
dst: c:\salt\bin\lib\site-packages\salt\companyName.txt
- name: Copy config file
template:
src: mast.conf.j2
dest: c:\salt\conf\minion.d\mast.conf
- name: Set permissions
win_acl:
path: c:\salt\bin\Lib\site-packages\salt\
user: "Authenticated Users"
rights: Read
type: allow
state: present
notify:
- restart salt
handlers:
- name: restart salt
win_service:
name: salt-minion
state: restarted
And that would do it, one would need to create 2 files, companyName.txt.j2 and mast.conf.j2 with either variables, or just directly with proper values. If someone is already using Ansible, they should easily be able to do that.