HomePhorge

(#12460) use `replace_file` for the .k5login file
0c967037ec83Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#12460) use replace_file for the .k5login file

Previously this hand-coded replacing the .k5login file; Replacing that with
the standard API ensures consistent, safe, and atomic updates of the target
file.

It also reduces the cognitive burden of the provider, since the semantics of
the standard method are clearer than the semantics of the type.

Finally, this commit adds some tests for the type, and the inline provider, to
help ensure that the type continues to work into the future.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Matthaus Litteken <matthaus@puppetlabs.com>Committed on Feb 20 2012, 8:56 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7900a66c9c75: (#12462) user_role_add: use `replace_file` for /etc/shadow
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Litteken <matthaus@puppetlabs.com> committed rPU0c967037ec83: (#12460) use `replace_file` for the .k5login file (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 20 2012, 8:56 PM