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

Read /etc/passwd once per user resource if forcelocal is set

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      2019-11-27, 2019-12-11, 2019-12-24, NW - 2020-01-22, NW - 2020-02-05
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      When managing a user/group resource with forcelocal set, Puppet would read /etc/passwd or /etc/group for each parameter of the resource. Now the files are being read once per managed resource.
    • QA Risk Assessment:
      Needs Assessment

      Description

      If an user resource has the forcelocal parameter set, the /etc/passwd file is being read once per user resource per managed parameter (until it finds a match). We could read /etc/passwd once per user resource without too much difficulty. Reading it once per transaction is also a possibility but users could be created mid-transaction...

      https://github.com/puppetlabs/puppet/pull/7768/files#r340883318

        Attachments

          Activity

            People

            Assignee:
            gabriel.nagy Gabriel Nagy
            Reporter:
            gabriel.nagy Gabriel Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support