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

AD group causes corrective action every puppet run #73

Open
ghost opened this issue Jan 13, 2020 · 0 comments
Open

AD group causes corrective action every puppet run #73

ghost opened this issue Jan 13, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.3.5
  • Ruby:
  • Distribution: CentOS 7
  • Module version: 1.0.0

How to reproduce (e.g Puppet code you use)

posix_acl { '/mnt/test':
        action     => exact,
        permission => [
            'default:user::rwx',
            'default:group::rwx',
            'default:mask::rwx',
            'default:other::---',
            'user::rwx',
            'group::rwx',
            'mask::rwx',
            'other::---',
            "user:${ad_domain_short_caps}\\tmashos:rwx",
        ],
        recursive  => true,
        require    => Package['acl'],
    }

What are you seeing

Puppet tries to correct the ACL every time

What behaviour did you expect instead

Puppet doesn't change the ACL when it's correct

Output log

Notice: /Stage[main]/Profile::Mssql::Linux_server/Posix_acl[/mnt/test]/permission: permission changed ["default:group::rwx", "default:mask::rwx", "default:other::---", "default:user::rwx", "group::rwx", "mask::rwx", "other::---", "user::rwx", "user:HOSTING-US\134tmashos:rwx"] to ["default:group::rwx", "default:mask::rwx", "default:other::---", "default:user::rwx", "group::rwx", "mask::rwx", "other::---", "user::rwx", "user:HOSTING-US\tmashos:rwx"]

Any additional information you'd like to impart

This is using a LDAP (Active Directory) user in an ACL called "HOSTING-US\tmashos". getfacl formats the \ as \134 so it doesn't match what is set it puppet when it's returned.

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

No branches or pull requests

0 participants