Explorar el Código

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

Change-Id: I3338950ed3726a750149d849d33813b0eeed50c0
pull/170/head
Dzmitry Stremkouski hace 6 años
padre
commit
a0d8b2d8b1
Se han modificado 3 ficheros con 5 adiciones y 0 borrados
  1. +1
    -0
      README.rst
  2. +3
    -0
      linux/system/user.sls
  3. +1
    -0
      tests/pillar/system.sls

+ 1
- 0
README.rst Ver fichero

@@ -50,6 +50,7 @@ Linux with system users, some with password set:
home: '/home/jdoe'
home_dir_mode: 755
email: 'jonh@doe.com'
unique: false
jsmith:
name: 'jsmith'
enabled: true

+ 3
- 0
linux/system/user.sls Ver fichero

@@ -50,6 +50,9 @@ system_user_{{ name }}:
{%- if user.uid is defined and user.uid %}
- uid: {{ user.uid }}
{%- endif %}
{%- if user.unique is defined %}
- unique: {{ user.unique }}
{%- endif %}
{%- if user.maxdays is defined %}
- maxdays: {{ user.maxdays }}
{%- endif %}

+ 1
- 0
tests/pillar/system.sls Ver fichero

@@ -137,6 +137,7 @@ linux:
uid: 9999
full_name: Test User
home: /home/test
unique: false
groups:
- db-ops
- salt-ops

Cargando…
Cancelar
Guardar