HomePhorge

(#12460) use `replace_file` for the .k5login file
146953861e00Unpublished

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
Nick Lewis <nick@puppetlabs.com>Committed on Feb 13 2012, 8:52 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8461203aa7eb: (#12462) user_role_add: use `replace_file` for /etc/shadow
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU146953861e00: (#12460) use `replace_file` for the .k5login file (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 13 2012, 8:52 PM