Bug #7002

managehome parameter for user resources is misleadingly named, should be 'createhome'

Added by Forrest Aldrich about 1 year ago. Updated 11 months ago.

Status:Accepted Start date:04/06/2011
Priority:Low Due date:
Assignee:- % Done:

0%

Category:user
Target version:3.X
Affected Puppet version:2.6.7 Branch:
Keywords:user managehome
Votes: 0

Description

After a user has been created via puppet “user” function with “managehome => true” it does not detect if the home directory has been deleted. This is tested on RHEL 5.5 (current).

[edit] – Deprecate ‘managehome’ in Telly, add ‘createhome’.

History

Updated by Nan Liu about 1 year ago

  • Status changed from Unreviewed to Needs More Information

Puppet only creates the home directory if the user account does not exist because managehome is a parameter and not a property. In this case the implementation is simply using the -m flag to create the directory when creating the user. If the directory needs to exist and be enforced by puppet, use the file resource to manage it instead, this also gives the flexibility of allowing the home directory exist as symlink, zfs filesystem, etc.

Updated by Forrest Aldrich about 1 year ago

Okay, I understand.

I would suggest changing “managehome” to “createhome” as “manage” implies that it will be doing just that, which it does not. It just creates.

Updated by Nigel Kersten 11 months ago

  • Subject changed from "user" value "managehome" does not detect missing home directory to managehome parameter for user resources is misleadingly named, should be 'createhome'
  • Target version changed from 2.6.x to 3.X

We’ll add an alias for this in Telly, and deprecate the old name, with ‘managehome’ to be removed in Telly+1.

Updated by Nigel Kersten 11 months ago

  • Status changed from Needs More Information to Accepted
  • Priority changed from Normal to Low

Also available in: Atom PDF