Skip to content

Recursive doesn't appear to work #81

@devinmatte

Description

@devinmatte

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.21
  • Ruby: 2.5.5p157
  • Distribution: RedHat
  • Module version: 1.0.0

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

posix_acl { '/var/log':
    action     => set,
    permission => [
      'user::rwx',
      'group::r-x',
      'other::---',
      'mask::r-x',
      'user:dd-agent:rx',
    ],
    provider   => posixacl,
    recursive  => true,
  }

What are you seeing

It only applies to /var/log and not any subfiles

What behaviour did you expect instead

To recursively set all files within with the same permissions

Output log

Notice: /Stage[main]/Profile::Logs/Posix_acl[/var/log]/permission: permission changed ["group::r-x", "mask::r-x", "other::r-x", "user::rwx", "user:dd-agent:r-x"] to ["group::r-x", "mask::r-x", "other::---", "user::rwx", "user:dd-agent:r-x"]
# ls -la /var/log
total 758120
drwxr-x---+ 15 root     root          4096 Aug  9 03:28 .
drwxr-xr-x. 19 root     root           267 Sep  4  2018 ..
drwxr-x---+  2 root     root           232 Sep  4  2018 anaconda
drwx------+  2 root     root            99 Aug  9 17:01 audit
-rw-------+  1 root     root             0 Nov 29  2019 boot.log
...

Not even boot.log was changed to new permissions

Any additional information you'd like to impart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions