The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #7002

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

Added by Forrest Aldrich about 3 years ago. Updated 3 months ago.

Status:AcceptedStart date:04/06/2011
Priority:LowDue date:
Assignee:-% Done:

0%

Category:user
Target version:3.x
Affected Puppet version:2.6.7 Branch:
Keywords:user managehome

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/PUP-1439


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’.


Related issues

Related to Puppet - Feature #432: Manage user home dirs Closed
Related to Puppet - Bug #4335: Managing home directory Rejected 07/22/2010
Related to Puppet - Bug #10354: Missing userdel flag in provider/useradd.rb when manageho... Closed 10/28/2011
Related to Puppet - Bug #12081: The pw user provider on FreeBSD doesn't remove the user's... Closed 01/23/2012
Related to Puppet - Bug #10962: The pw user provider on FreeBSD doesn't respect managehom... Closed 11/18/2011
Duplicated by Puppet Enterprise (Public) - Feature #9294: User resource manage home doesn't remove home directories Duplicate 08/31/2011

History

#1 Updated by Nan Liu about 3 years 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.

#2 Updated by Forrest Aldrich about 3 years 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.

#3 Updated by Nigel Kersten almost 3 years 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.

#4 Updated by Nigel Kersten almost 3 years ago

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

#5 Updated by Brian Pitts 3 months ago

Redmine Issue #7002 has been migrated to JIRA:

https://tickets.puppetlabs.com/browse/PUP-1439

Also available in: Atom PDF