Closed TJM closed 3 years ago
Simple workaround is to run restorecon -Rv /etc/puppet/environments/(env)
Code should do "mv -Z" or similar.
@lvlie - I would recommend using cp
instead of mv
, as older versions may not support mv
(EL6). Alternatively, we could set the "temporary" directory to some place under /etc/puppet
(/etc/puppetlabs
), which would have the "correct" context, and would even work better to ensure that its a semi-atomic operation. The /tmp
directory is likely on another filesystem (outside of a lab), so mv is just going to copy, then unlink anyhow.
This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.
While using SELinux in "enforcing" mode, pulling down modules from Forge, the SELINUX context is
user_temp_t
instead ofpuppet_etc_t
which makes the files unreadable to the puppet master.