code: def _groupname():
      '''
      Grain for the minion groupname
      '''
      if grp:
          try:
              groupname = grp.getgrgid(os.getgid()).gr_name
          except KeyError:
              groupname = ''
      else:
          groupname = ''
  
      return groupnamf _groupname():
      '''
      Grain for the minion groupname
      '''
      if grp:
          try:
              groupname = grp.getgrgid(os.getgid()).gr_name
          except KeyError:
              groupname = ''
      else:
          groupname = ''
  
      return groupname
docs: Grain for the minion groupname