HomePhorge

(PE-4848,PUP-2999) Ensure temporary directories ownership is correct.
033c9e2226b3Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PE-4848,PUP-2999) Ensure temporary directories ownership is correct.

master['user'] has a default value of root specified in Beaker::Host::Unix.
As it turns out, this is the config option containing the username used to log
in to SUTs.

It's better then to use on master, 'puppet master --configprint user' since
this will always give us the actual puppet user, whether it's puppet or
pe-puppet or something else.

Also, it's best to use the create_tmpdir_for_user method when initially
creating temporary directories on SUTs since host.tmpdir will always create
directories owned by root.

Signed-off-by: Wayne <wayne@puppetlabs.com>

Details

Provenance
Wayne <wayne@puppetlabs.com>Authored on
Britt Gresham <britt@puppetlabs.com>Committed on Aug 15 2014, 11:07 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUd5ee7e1b2d72: (PE-4848,PUP-2999) Change puppet_tmpdir to create_tmpdir_for_user
Branches
Unknown
Tags
Unknown

Event Timeline

Britt Gresham <britt@puppetlabs.com> committed rPU033c9e2226b3: (PE-4848,PUP-2999) Ensure temporary directories ownership is correct. (authored by Wayne <wayne@puppetlabs.com>).Aug 15 2014, 11:07 PM