Closed gavindidrichsen closed 1 month ago
From my cursory review of the code it seems that the intention is to simply give read rights on the archive, and the important part is that the extracted directory belongs to the specified user.
Hello,
The user and group attributes of the archive resource do not configure permissions on the archive file. Using a file resource to set the permissions on the archive, as you've mentioned, would be the proper resolution. Please see https://github.com/voxpupuli/puppet-archive?tab=readme-ov-file#reference, specifically:
user: extract command user (using this option will configure the archive file permission to 0644 so the user can read the file). group: extract command group (using this option will configure the archive file permission to 0644 so the user can read the file).
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Download an archive and configure
user => 'user'
andgroup => 'user'
to configure ownershipWhat are you seeing
The actual owner of the archive is
root:root
(in my case)What behaviour did you expect instead
I expected the archive to be owned by
user:user
Replication Steps
but will not enforce the
$user:$group
; it's owned byroot:root
and notuser:user
However, if I add the following after the
archive
then the expected ownership is enforced