소스 검색

By default, Salt will remove any groups not listed, so a users groups matches exactly the list you pass. This was added here:

https://github.com/saltstack/salt/issues/2142

This has been causing issues for many people, as the remove_groups options is undocumented.  In the 2014.7 release this is changing, and remove_groups will default to false:
https://github.com/saltstack/salt/issues/13276

I'm going with false by default, as it's our use case and it will soon be the default.  If people believe this module should default to true and remove groups not listed, I think that's open for discussion, but we should at least add the option.
tags/v0.45.0
Jason Wolfe 10 년 전
부모
커밋
2a464d3dc3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      users/init.sls

+ 3
- 0
users/init.sls 파일 보기

@@ -58,6 +58,9 @@
{% if not user.get('createhome', True) %}
- createhome: False
{% endif %}
{% if not user.get('remove_groups', True) %}
- remove_groups: False
{% endif %}
- groups:
- {{ user_group }}
{% for group in user.get('groups', []) -%}

Loading…
취소
저장