mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2026-07-16 15:49:06 +02:00
Allow state to update the gid
This commit is contained in:
@@ -4,3 +4,6 @@
|
||||
users-formula:
|
||||
use_vim_formula: False
|
||||
|
||||
users:
|
||||
allow_gid_change: True
|
||||
|
||||
|
||||
@@ -151,6 +151,9 @@ users_{{ name }}_user:
|
||||
{% if not user.get('unique', True) %}
|
||||
- unique: False
|
||||
{% endif %}
|
||||
{%- if grains['saltversioninfo'] >= [2018, 3, 1] %}
|
||||
- allow_gid_change: {{ users.allow_gid_change if 'allow_gid_change' not in user else user['allow_gid_change'] }}
|
||||
{%- endif %}
|
||||
{% if 'expire' in user -%}
|
||||
{% if grains['kernel'].endswith('BSD') and
|
||||
user['expire'] < 157766400 %}
|
||||
|
||||
Reference in New Issue
Block a user