From 0ad7d0764e4b63778fff2fe36b4c80665fc0e766 Mon Sep 17 00:00:00 2001 From: Michael Zabriskie Date: Fri, 4 Jan 2019 10:56:49 -0700 Subject: [PATCH] support password expiration --- users/init.sls | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/users/init.sls b/users/init.sls index 9c474b4..844cfd8 100644 --- a/users/init.sls +++ b/users/init.sls @@ -167,6 +167,18 @@ users_{{ name }}_user: - expire: {{ user['expire'] }} {% endif %} {% endif -%} + {% if 'mindays' in user %} + - mindays: {{ user.get('mindays', None) }} + {% endif %} + {% if 'maxdays' in user %} + - maxdays: {{ user.get('maxdays', None) }} + {% endif %} + {% if 'inactdays' in user %} + - inactdays: {{ user.get('inactdays', None) }} + {% endif %} + {% if 'warndays' in user %} + - warndays: {{ user.get('warndays', None) }} + {% endif %} - remove_groups: {{ user.get('remove_groups', 'False') }} - groups: - {{ user_group }}