Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8211

Document managehome with respect to existing users

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 5.3.3
    • Fix Version/s: PUP 4.10.10
    • Component/s: Docs
    • Labels:
      None
    • Template:
    • Sub-team:
    • Team:
      Platform Core
    • CS Priority:
      Reviewed
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      When a user already exists on the system the managehome attribute for the user resource does not create the homedir:

      Tested locally on same version and managehome =true/yes doesn't create the home dir.

      user {'john' :
        ensure     => present,
        managehome => yes,
        }
      user {'john' :
        ensure     => present,
        managehome => true,
        }
      

      The docs say that if ensure=present it should be created:
      "Whether to manage the home directory when managing the user. This will create the home directory when ensure => present"

      Puppet resource user <name> says homedir is present

      user { 'john':
        ensure           => 'present',
        gid              => 1002,
        home             => '/home/john',
        password         => '!!',
        password_max_age => 99999,
        password_min_age => 0,
        shell            => '/bin/bash',
        uid              => 1002,
      }
      [root@pe-201732-master home]# pwd
      /home
      [root@pe-201732-master home]# ls -al
      total 4
      drwxr-xr-x.  3 root    root      20 Mar  9  2016 .
      dr-xr-xr-x. 18 root    root    4096 Nov 15 16:23 ..
      drwx------   3 vagrant vagrant  107 Nov 28 13:34 vagrant
      [root@pe-201732-master home]#
      

      If puppet creates user from scratch it works but not for existing users

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              danny.mcilhagga Daniel Mcilhagga
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support