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

Puppet can't remove users from groups in OSX.

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.2.2
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      OSX 10.10, at least.

    • Template:
    • Team:
      Platform OS
    • Story Points:
      1

      Description

      When specifying members of a group in OSX, users can be added successfully, but not removed.

      lyokd3cqy68n68o:~ root# puppet apply -e "group { 'group_a': members => ['test1','test2','test3'] }"
      Notice: Compiled catalog for lyokd3cqy68n68o.delivery.puppetlabs.net in environment production in 0.36 seconds
      Notice: /Stage[main]/Main/Group[group_a]/ensure: created
      Notice: Applied catalog in 0.32 seconds
       
      lyokd3cqy68n68o:~ root# puppet resource group group_a
      group { 'group_a':
        ensure  => 'present',
        gid     => '23',
        members => ['test1', 'test2', 'test3'],
      }
       
      lyokd3cqy68n68o:~ root# puppet apply -e "group { 'group_a': members => ['test1','test2'] }"
      Notice: Compiled catalog for lyokd3cqy68n68o.delivery.puppetlabs.net in environment production in 0.35 seconds
      Notice: /Stage[main]/Main/Group[group_a]/members: members changed 'test1,test2,test3' to 'test1,test2'
      Notice: Applied catalog in 0.07 seconds
       
      lyokd3cqy68n68o:~ root# puppet resource group group_a
      group { 'group_a':
        ensure  => 'present',
        gid     => '23',
        members => ['test1', 'test2', 'test3'],
      }
      

      From GitHub, ccaviness reports that this is not a problem in OSX 10.11 on Puppet 3.8.2, so this is potentially a regression:

      @whopper I can remove users from groups just fine:
       
      fox:~ root# puppet resource group remove
      group { 'remove':
        ensure  => 'present',
        gid     => '23',
        members => ['root', 'daemon', 'crc'],
      }
      fox:~ root# puppet apply
      group { 'remove':
        ensure  => 'present',
        members => ['root', 'daemon'],
      }
      Notice: Compiled catalog for 045627f2-3d66-46b1-95bc-1bc74154e1d3 in environment gmac_unstable in 0.58 seconds
      Notice: /Stage[main]/Main/Group[remove]/members: members changed 'root,daemon,crc' to 'root,daemon'
      Notice: Finished catalog run in 0.30 seconds
      fox:~ root# puppet resource group remove
      group { 'remove':
        ensure  => 'present',
        gid     => '23',
        members => ['root', 'daemon'],
      }
      This is on OS X 10.11 and (patched with this PR) puppet 3.8.2.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                whopper William Hopper
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support