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
# salt-call state.apply i_am_groop
local:
----------
ID: manage_user
Function: user.present
Name: debian
Result: True
Comment: User debian is present and up to date
Started: 15:45:07.555832
Duration: 12.089 ms
Changes:
Summary for local
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
Total run time: 12.089 ms
... which runs clean despite not having the netdev group in the list. Running user.info again yields identical output to before:
Expected behavior
The optional_groups parameter should be idempotent when remove_groups is True (the default).
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3005+0na.d5dec79Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.15.0pygit2: Not InstalledPython: 3.7.3 (default, Jan 22 2021, 20:04:44)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 23.2.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-21-amd64system: Linuxversion: Debian GNU/Linux 10 buster
Additional context
Tested and confirmed in 3004 as well.
The text was updated successfully, but these errors were encountered:
Description
The
user.present
state function seems to be incapable of removing optional groups and enforcing idempotent group membership.Setup
Tested on Debian 10 with the following SLS file:
Steps to Reproduce the behavior
# salt-call user.info debian --out=yaml
Output:
... which runs clean despite not having the
netdev
group in the list. Runninguser.info
again yields identical output to before:Expected behavior
The
optional_groups
parameter should be idempotent whenremove_groups
isTrue
(the default).Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Tested and confirmed in 3004 as well.
The text was updated successfully, but these errors were encountered: