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

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

    XMLWordPrintable

Details

    • Night's Watch
    • 2
    • 2019-11-27, 2019-12-11, 2019-12-24, NW - 2020-01-22, NW - 2020-02-05
    • Enhancement
    • 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.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support