Skip to content

Commit

Permalink
fix(perms): some os have custom user/root
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Aug 1, 2019
1 parent 14276e2 commit 319e077
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions salt/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
salt:
version: ''
rootuser: root
rootgroup: root
install_packages: True
use_pip: False
clean_config_d_dir: True
Expand Down
7 changes: 6 additions & 1 deletion salt/formulas.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

{%- from "salt/map.jinja" import formulas_settings with context %}
{%- from "salt/formulas.jinja" import formulas_git_opt with context %}
{%- from "salt/formulas.jinja" import formulas_opts_for_git_latest with context %}
## from template-formula
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import salt_settings with context %}
# Loop over all formulas listed in pillar data
{%- for env, entries in salt['pillar.get']('salt_formulas:list', {}).items() %}
Expand All @@ -31,6 +34,8 @@
{%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts',
{'makedirs': True}).items() %}
- {{ key }}: {{ value }}
- user: {{ salt_settings.rootuser }}
- group: {{ salt_settings.rootgroup }}
{%- endfor %}
{%- endif %}
Expand Down
1 change: 1 addition & 0 deletions salt/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Alpine:
libgit2: libgit2

FreeBSD:
rootgroup: wheel
salt_master: py27-salt
salt_minion: py27-salt
salt_syndic: py27-salt
Expand Down

0 comments on commit 319e077

Please sign in to comment.