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

manage_group not working #46

Closed
gothicx opened this issue May 9, 2016 · 2 comments
Closed

manage_group not working #46

gothicx opened this issue May 9, 2016 · 2 comments
Milestone

Comments

@gothicx
Copy link

gothicx commented May 9, 2016

Hi. I've the following hiera structure, but it doesn't create the accounts / groups specified.

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
# puppet -V
4.4.0
accounts::user_defaults:
  purge_ssh_keys: false
accounts::users:
  account1:
    manage_group: false
    uid: 1417
    groups:
      - staff
    comment: 'test'
accounts::groups:
  staff:
    gid: 3000
Error: Could not create user account1: 
Execution of '/sbin/useradd -c test -g 1417 -d /home/account1-s /bin/bash -u 1417 -m account1' 
returned 6: useradd: group '1417' does not exist

It's using the uid as the gid.

If I remove the manage_group = false from the users, it does create the staff account., but I've others groups which it doesn't create as it's trying to create the users before the groups.

@deric deric added this to the 1.4 milestone Jul 6, 2016
@deric
Copy link
Owner

deric commented Nov 16, 2016

Doesn't seem to be just RedHat issue, same problem on Debian as well. Looks like duplicate of #41.
Here's a minimal script to reproduce the issue in clean environment.

@deric deric changed the title Not working on RHEL 7.2 Manage groups not working Nov 16, 2016
@deric deric changed the title Manage groups not working manage_group not working Nov 16, 2016
@deric deric changed the title manage_group not working manage_group not working Nov 16, 2016
deric added a commit that referenced this issue Nov 16, 2016
deric added a commit that referenced this issue Nov 16, 2016
@deric
Copy link
Owner

deric commented Nov 16, 2016

Should be fixed in v1.4.2

@deric deric closed this as completed Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants