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

Group resource should use autorequire for members and other user specific fields

    Details

    • Template:
    • Team:
      Platform OS

      Description

      With a puppet manifest similar to the following:

      group { 'TestUsers':
        ensure  => 'present',
        members => ['Administrators','tim'],
      }
       
      user { 'tim':
        ensure => present,
        password => '123Adc!dd',
        groups => ['Administrators','Users'],
      }
      
      

      The message against 4.1.0 and below will look like the following:

      Error: Could not resolve name: tim
      Error: /Stage[main]/Main/Group[TestUsers]: Could not evaluate: Puppet::Util::Log requires a message
      Notice: /Stage[main]/Main/User[tim]/ensure: created
      

      In Puppet 4.2.x and above (the message will look like the following - based on PUP-4386 fixing the messaging):

      Notice: Compiled catalog for windows.vm in environment production in 3.40 seconds
      Error: Could not resolve name: tim
      Error: /Stage[main]/Main/Group[TestUsers]/members: change from  to BUILTIN\Administrators,tim failed: Could not resolve name: tim
      Notice: /Stage[main]/Main/User[tim]/ensure: created
      

      This is easily resolved by ensuring that all users are ensured prior to ensuring the group, but it would be nice to autorequire on such a setting.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  rob Rob Reynolds
                  QA Contact:
                  Eric Thompson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated: