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

Group resource members order can break idempotence in Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.5.2
    • Fix Version/s: PUP 4.5.3
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 2016.1.1 agent

    • Template:
    • Story Points:
      2
    • Sprint:
      Windows 2016-06-29
    • CS Priority:
      Normal
    • CS Frequency:
      2 - 5-25% of Customers
    • CS Severity:
      4 - Major
    • CS Business Value:
      4 - $$$$$

      Description

      Given the following hiera array:

      local_admins:
        - 'root'
        - 'bob'
        - 'harry'
        - 'moe'
        - 'vagrant'
      

      and the following manifest:

      class windows_users {
        group { 'Administrators':
          ensure => present,
          name => 'Administrators',
          auth_membership => true,
          members => hiera('local_admins'),
        }
      }
      

      I am seeing a change every time the manifest runs:

      C:\Users\Administrator>puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for pe-201611-agent-win2012
      Info: Applying configuration version '1464303479'
      Notice: /Stage[main]/Windows_users/Group[Administrators]/members: members change
      d 'PE-201611-AGENT\vagrant,PE-201611-AGENT\root,PE-201611-AGENT\bob,PE-201611-AG
      ENT\harry,PE-201611-AGENT\moe' to 'PE-201611-AGENT\root,PE-201611-AGENT\bob,PE-2
      01611-AGENT\harry,PE-201611-AGENT\moe,PE-201611-AGENT\vagrant'
      Notice: Applied catalog in 0.74 seconds
      

      If I change the order of the array elements:

      local_admins:
        - 'vagrant'
        - 'root'
        - 'bob'
        - 'harry'
        - 'moe'
      

      There is no change when the manifest runs.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                erick Erick Banks
                Reporter:
                ethan Ethan Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: