瀏覽代碼

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

Change-Id: I3338950ed3726a750149d849d33813b0eeed50c0
pull/170/head
Dzmitry Stremkouski 6 年之前
父節點
當前提交
a0d8b2d8b1
共有 3 個檔案被更改,包括 5 行新增0 行删除
  1. +1
    -0
      README.rst
  2. +3
    -0
      linux/system/user.sls
  3. +1
    -0
      tests/pillar/system.sls

+ 1
- 0
README.rst 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存