diff --git a/states/dkron/defaults.yaml b/states/dkron/defaults.yaml index d758c00..c8b2d7b 100644 --- a/states/dkron/defaults.yaml +++ b/states/dkron/defaults.yaml @@ -7,7 +7,10 @@ dkron: version: 3.0.5 os: linux arch: amd64 + uid: 904 + gid: 904 runuser: dkron + rungroup: dkron user: user password: password url: http://localhost:8898 diff --git a/states/dkron/install.sls b/states/dkron/install.sls index a7a0081..38207fa 100644 --- a/states/dkron/install.sls +++ b/states/dkron/install.sls @@ -1,8 +1,15 @@ --- {%- from "dkron/map.jinja" import dkron with context %} +dkron-group: + group.present: + - name: {{ dkron.rungroup }} + - gid: {{ dkron.gid }} + dkron-user: user.present: - name: {{ dkron.runuser }} + - uid: {{ dkron.uid }} + - gid: {{ dkron.gid }} - shell: /bin/nologin dkron-archive-extract: