Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'gid_from_name' is an invalid keyword argument for 'user.present' (=> usergroup) #198

Closed
garethhowell opened this issue Apr 29, 2019 · 5 comments · Fixed by #204
Closed
Assignees

Comments

@garethhowell
Copy link
Contributor

I've been using this formula for a while. I recently pulled the latest version to overcome an issue where gitconfig failed, and I'm now getting an error.

Passed invalid arguments: 'gid_from_name' is an invalid keyword argument for 'user.present'.

The state simply calls users
The relevant pillar data is

users:
  aUser:
    fullname: A User
    createhome: True
    sudouser: True
    sudo_rules:
      - ALL=(ALL) NOPASSWD:ALL
    ssh_auth:
      - <redacted>
    gitconfig:
      user.name: A User
      user.email: <redacted>

Running salt-call state.apply users -l info results in the contents of this pastebin (last bit only shown)
https://pastebin.com/prne7Xn2

@garethhowell
Copy link
Contributor Author

This appears to only fail if the latest dev version of the minion is installed.
with 2019.2.0-751-g3593c91 installed, I get the error.
If I roll back to 2019.2.0 it works

@myii myii changed the title 'gid_from_name' is an invalid keyword argument for 'user.present' 'gid_from_name' is an invalid keyword argument for 'user.present' (=> usergroup) May 22, 2019
@myii
Copy link
Member

myii commented May 22, 2019

Thanks for reporting this @garethhowell. I'm reopening this since something will need to be done about this at some point. It will be replaced by usergroup. Some references:

@myii myii reopened this May 22, 2019
@garethhowell
Copy link
Contributor Author

garethhowell commented May 23, 2019 via email

@myii
Copy link
Member

myii commented Jul 24, 2019

@garethhowell The solution that @dafyddj captured in saltstack-formulas/vault-formula#35 (comment) is much better than messing around with gid_from_name and usergroup, depending on the Salt version. I'll get around to putting this in a PR soon.

@garethhowell
Copy link
Contributor Author

garethhowell commented Jul 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants