You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
user.present:groups vs group.present:members #28706
P4Priority 4PlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixhelp-wantedCommunity help is needed to resolve thisseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Hi, Salt has an option in group.present to set a list of members, but this conflicts with the user.present:groups list. If you don't pass a list of groups in user.present, salt assumes the empty list, and (as per the docs) it will remove the user from all groups.
The following code will work, but will always report a change, since it removes myuser from all groups, then adds it back to the deploy group:
P4Priority 4PlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixhelp-wantedCommunity help is needed to resolve thisseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
jfindlay commentedon Nov 11, 2015
@kkaig, thanks for the report.
Merge pull request #30824 from alxf/local/issue-#28706
Merge branch 'develop' of https://github.com/saltstack/salt into upst…
Merge branch 'release'
rallytime commentedon Mar 27, 2016
@kkaig Does the fix in #30824 help resolve this issue for you?
Issue saltstack#28706: Fix state user.present behavior.
Issue #28706: Fix state user.present behavior. (#32448)
[develop] Merge forward from 2016.3 to develop (#32494)