Browse Source

Linux formula should be able to create non-unique users.

Change-Id: I3338950ed3726a750149d849d33813b0eeed50c0
pull/170/head
Dzmitry Stremkouski 6 years ago
parent
commit
a0d8b2d8b1
3 changed files with 5 additions and 0 deletions
  1. +1
    -0
      README.rst
  2. +3
    -0
      linux/system/user.sls
  3. +1
    -0
      tests/pillar/system.sls

+ 1
- 0
README.rst View File

home: '/home/jdoe' home: '/home/jdoe'
home_dir_mode: 755 home_dir_mode: 755
email: 'jonh@doe.com' email: 'jonh@doe.com'
unique: false
jsmith: jsmith:
name: 'jsmith' name: 'jsmith'
enabled: true enabled: true

+ 3
- 0
linux/system/user.sls View File

{%- if user.uid is defined and user.uid %} {%- if user.uid is defined and user.uid %}
- uid: {{ user.uid }} - uid: {{ user.uid }}
{%- endif %} {%- endif %}
{%- if user.unique is defined %}
- unique: {{ user.unique }}
{%- endif %}
{%- if user.maxdays is defined %} {%- if user.maxdays is defined %}
- maxdays: {{ user.maxdays }} - maxdays: {{ user.maxdays }}
{%- endif %} {%- endif %}

+ 1
- 0
tests/pillar/system.sls View File

uid: 9999 uid: 9999
full_name: Test User full_name: Test User
home: /home/test home: /home/test
unique: false
groups: groups:
- db-ops - db-ops
- salt-ops - salt-ops

Loading…
Cancel
Save