Python 盐栈:创建具有相同名称的用户和组

Python 盐栈:创建具有相同名称的用户和组,python,salt-stack,Python,Salt Stack,我试图在多台linux服务器上创建一个用户和一个组,名称相同,nagios 我有一段代码: nagios: group: - present user: - present - fullname: Nagios System Monitoring - shell: /bin/bash - home: /opt/nagios 该组创建正确,但用户没有,我无法从文档中获取salt来告诉我原因。 另外,一般来说,您可以通过ssh’ing进入目标mini

我试图在多台linux服务器上创建一个用户和一个组,名称相同,nagios

我有一段代码:

nagios:
  group:
    - present
  user:
    - present
    - fullname: Nagios System Monitoring
    - shell: /bin/bash
    - home: /opt/nagios
该组创建正确,但用户没有,我无法从文档中获取salt来告诉我原因。

另外,一般来说,您可以通过ssh’ing进入目标minion并通过
salt调用运行状态来获得更好的调试输出,无论是否使用
-l debug

user.present:
  - gid_from_name
    If True, the default group id will be set to the 
    id of the group with the same name as the user, Default is False.