HomePhorge

(#11046) Add support for user expiry in pw user provider
032043e325c7Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#11046) Add support for user expiry in pw user provider

Add support for setting an expiry date for a user in the pw user
provider. FreeBSD uses the format DD-MM-YYYY rather than Puppet's
YYYY-MM-DD. Tests added to confirm the value is correctly swapped
around.

Also added custom accessor method to take the unix timestamp given
by the operating system to a Puppet-style YYYY-MM-DD. This stops
Puppet from repeatedly trying to set the expiry date if it's already
correct.

Details

Provenance
Tim Bishop <tim@bishnet.net>Authored on
Patrick Carlisle <patrick@puppetlabs.com>Committed on Jan 17 2012, 9:09 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU9b8829d2b6d4: (#11046) Improve pw group provider on FreeBSD
Branches
Unknown
Tags
Unknown

Event Timeline

Patrick Carlisle <patrick@puppetlabs.com> committed rPU032043e325c7: (#11046) Add support for user expiry in pw user provider (authored by Tim Bishop <tim@bishnet.net>).Jan 17 2012, 9:09 PM