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 beb0e85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
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
6 changes: 6 additions & 0 deletions salt/formulas.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
{%- 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() %}
{%- for entry in entries %}
Expand All @@ -31,6 +35,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 beb0e85

Please sign in to comment.