ソースを参照

Change False to None in user_files to be closer to Salt default values.

tags/v0.45.0
Hatifnatt 7年前
コミット
48416398e3
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      users/user_files.sls

+ 4
- 4
users/user_files.sls ファイルの表示

@@ -9,8 +9,8 @@ include:
{%- 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 user_home = salt['pillar.get'](('users:' ~ username ~ ':home'), current.get('home', '/home/' ~ username )) -%}
{%- set user_files_file_mode = salt['pillar.get'](('users:' ~ username ~ ':user_files:file_mode'), False) -%}
{%- set user_files_sym_mode = salt['pillar.get'](('users:' ~ username ~ ':user_files:sym_mode'), False) -%}
{%- set user_files_file_mode = salt['pillar.get'](('users:' ~ username ~ ':user_files:file_mode'), None) -%}
{%- set user_files_sym_mode = salt['pillar.get'](('users:' ~ username ~ ':user_files:sym_mode'), None) -%}
{%- if user_files.enabled -%}

{%- if user_files.source is defined -%}
@@ -37,10 +37,10 @@ users_userfiles_{{ username }}_recursive:
- user: {{ username }}
- group: {{ user_group }}
- clean: False
{% if user_files_file_mode -%}
{% if user_files_file_mode is not None -%}
- file_mode: {{ user_files_file_mode }}
{% endif -%}
{% if user_files_sym_mode -%}
{% if user_files_sym_mode is not None -%}
- sym_mode: {{ user_files_sym_mode }}
{% endif -%}
- include_empty: True

読み込み中…
キャンセル
保存