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

group resource doesn't default to ensure=>present

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: PUP 4.10.1, PUP 5.2.0
    • Fix Version/s: PUP 5.4.0
    • Component/s: Types and Providers
    • Labels:
    • Environment:
    • Template:
      PUP Bug Template
    • Sub-team:
    • Team:
      Platform Core
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Group resources now default to `ensure => 'present'`
    • QA Risk Assessment:
      No Action

      Description

      group { 'what':
      #ensure => present,
      #gid => 1234,
      }
      

      If I do a "puppet apply --debug /tmp/x.pp" the group will not be created with the manifest as above. The relevant line in the debug output appears to be:

      Debug: /Stage[main]/Main/Group[what]: Nothing to manage: no ensure and the resource doesn't exist
      

      It will be created if I uncomment either of the ensure or gid parameters.

      With only the gid uncommented the debug output includes:

      Debug: Executing: '/sbin/groupadd -g 1234 what'
      Notice: /Stage[main]/Main/Group[what]/ensure: created
      

      With only the ensure uncommented the debug output includes:

      Debug: Executing: '/sbin/groupadd what'
      Notice: /Stage[main]/Main/Group[what]/ensure: created
      

      With both uncommented the debug output includes:

      Debug: Executing: '/sbin/groupadd -g 1234 what'
      Notice: /Stage[main]/Main/Group[what]/ensure: created
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  melissa Melissa Stone
                  Reporter:
                  cwood Christopher Wood
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: