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
It seems that the use of "gid_from_name" in the context of "user.present" has been replaced with "usergroup" in the latest (3001) version of SaltStack. The state provided here in "etcd/install.sls" uses the older "gid_from_name" (line 19). This causes the state to fail to apply. The resulting error is:
ERROR executing 'state.apply': 'gid_from_name' is an invalid keyword argument for 'user.present'
Steps to reproduce the bug
Expected behaviour
Applying the state should work.
Attempts to fix the bug
I have forked this repo and changed line 19 in "etcd/install.sls" to read:
- usergroup: True
I then removed the "group.present" stanza. usergroup: True automatically creates the group but if the group already exists, it fails to create the user. Then I removed a few requires that were looking for the "group.present" that I removed.
You can also see some of the commits that were added to other formulas after that comment. Would you mind doing proposing the same thing in a PR for this formula?
Your setup
Formula commit hash / release tag
Using the latest commit at time of writing: d4c849a
Versions reports (master & minion)
The Salt master is version 3000.3 and the minion is 3001. From the master:
Pillar / config used
I'm basically using the example pillar data. I'm just starting out and don't know what I want yet. :-)
Bug details
Describe the bug
It seems that the use of "gid_from_name" in the context of "user.present" has been replaced with "usergroup" in the latest (3001) version of SaltStack. The state provided here in "etcd/install.sls" uses the older "gid_from_name" (line 19). This causes the state to fail to apply. The resulting error is:
Steps to reproduce the bug
Expected behaviour
Applying the state should work.
Attempts to fix the bug
I have forked this repo and changed line 19 in "etcd/install.sls" to read:
I then removed the "group.present" stanza.
usergroup: True
automatically creates the group but if the group already exists, it fails to create the user. Then I removed a few requires that were looking for the "group.present" that I removed.My version can be found here: https://github.com/ShaunMaher/etcd-formula/blob/master/etcd/install.sls
This resolves the issue but, I'm not sure if this will break older versions of Salt.
Additional context
The text was updated successfully, but these errors were encountered: