Przeglądaj źródła

fix(perms): some os have custom user/root

tags/v0.58.2
N 5 lat temu
rodzic
commit
beb0e85b04
Brak konta powiązanego z adresem e-mail autora
3 zmienionych plików z 8 dodań i 0 usunięć
  1. +1
    -0
      salt/defaults.yaml
  2. +6
    -0
      salt/formulas.sls
  3. +1
    -0
      salt/osfamilymap.yaml

+ 1
- 0
salt/defaults.yaml Wyświetl plik

salt: salt:
version: '' version: ''
rootuser: root rootuser: root
rootgroup: root
install_packages: True install_packages: True
use_pip: False use_pip: False
clean_config_d_dir: True clean_config_d_dir: True

+ 6
- 0
salt/formulas.sls Wyświetl plik

{%- from "salt/formulas.jinja" import formulas_git_opt 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 "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 # Loop over all formulas listed in pillar data
{%- for env, entries in salt['pillar.get']('salt_formulas:list', {}).items() %} {%- for env, entries in salt['pillar.get']('salt_formulas:list', {}).items() %}
{%- for entry in entries %} {%- for entry in entries %}
{%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts', {%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts',
{'makedirs': True}).items() %} {'makedirs': True}).items() %}
- {{ key }}: {{ value }} - {{ key }}: {{ value }}
- user: {{ salt_settings.rootuser }}
- group: {{ salt_settings.rootgroup }}
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}



+ 1
- 0
salt/osfamilymap.yaml Wyświetl plik

libgit2: libgit2 libgit2: libgit2


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

Ładowanie…
Anuluj
Zapisz