A collection of task oriented solutions in Puppet

 

Remove a group

Challenge

You want to remove an existing group.

Solution

class remove_group {

  group { 'logusers':
    ensure => absent,
  }

}

Explanation

Removing an existing group is easy in puppet, you only need to specify the group name and that it should be absent.