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 match fails if no user by the same name exists. #1229

Open
cFire opened this issue Jul 19, 2024 · 0 comments
Open

gid match fails if no user by the same name exists. #1229

cFire opened this issue Jul 19, 2024 · 0 comments

Comments

@cFire
Copy link

cFire commented Jul 19, 2024

Describe the Bug

Recently updated from 6.0.0 to 8.0.1. Now when using the gid match it looks for a user by the same name as the group. If no such user exists it fails with the error "can't find user for group name".

Expected Behavior

Should do a gid lookup for the group name and not need or care if a user by the same name exists.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a new group (called power-users in below example)
  2. Make sure no user called "power-users" exists
  3. Run example code below

Environment

  • Version 8.0.1
  • Puppet 7.31.0
  • Platform Debian 12.6

Additional Context

Example puppet code:

firewall {
  default:
    chain => 'OUTPUT',
    jump  => 'accept',
    proto => 'tcp',
    dport => 123;
  '013 Accept for power-users':
    gid => 'power-users';
  # Removed other rules for brevity
}

Error:

Info: Unknown failure using insync_values? on type: Firewall[013 Accept for power-users] / property: gid to compare values ["power-users"] and 1420                                                               
Error: /Stage[main]/Profile::Lydia::Outbound_mail_firewall/Firewall[013 Accept for power-users]/gid: change from '1420' to 'power-users' failed: can't find user for power-users                                  
Error: can't find user for power-users
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