Parcourir la source

Merge pull request #107 from phadadi/master

User files state without defined home directory
tags/v0.45.0
Forrest il y a 8 ans
Parent
révision
d3e3122624
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      users/user_files.sls

+ 2
- 1
users/user_files.sls Voir le fichier

@@ -7,6 +7,7 @@ include:
{%- for username, user in salt['pillar.get']('users', {}).items() if (user.absent is not defined or not user.absent) -%}
{%- set user_files = salt['pillar.get'](('users:' ~ username ~ ':user_files'), {'enabled': False}) -%}
{%- set user_group = salt['pillar.get'](('users:' ~ username ~ ':prime_group:name'), username) -%}
{%- set home = user.get('home', "/home/%s" % username) -%}
{%- if user_files.enabled -%}

{%- if user_files.source is defined -%}
@@ -28,7 +29,7 @@ include:
{%- if not skip_user %}
users_userfiles_{{ username }}_recursive:
file.recurse:
- name: {{ user.home }}
- name: {{ home }}
- source: {{ file_source }}
- user: {{ username }}
- group: {{ user_group }}

Chargement…
Annuler
Enregistrer