code: def fire_master(self, data, tag, preload=None):
          '''
          Fire an event off on the master server
  
          CLI Example:
  
          .. code-block:: bash
  
              salt '*' event.fire_master 'stuff to be in the event' 'tag'
          '''
          load = {}
          if preload:
              load.update(preload)
  
          load.update({
              'id': self.opts['id'],
              'tag': tag,
              'data': data,
              'cmd': '_minion_event',
              'tok': self.auth.gen_token(b'salt'),
          })
  
          channel = salt.transport.client.ReqChannel.factory(self.opts)
          try:
              channel.send(load)
          except Exception:
              pass
          finally:
              channel.close()
          return Truf fire_master(self, data, tag, preload=None):
          '''
          Fire an event off on the master server
  
          CLI Example:
  
          .. code-block:: bash
  
              salt '*' event.fire_master 'stuff to be in the event' 'tag'
          '''
          load = {}
          if preload:
              load.update(preload)
  
          load.update({
              'id': self.opts['id'],
              'tag': tag,
              'data': data,
              'cmd': '_minion_event',
              'tok': self.auth.gen_token(b'salt'),
          })
  
          channel = salt.transport.client.ReqChannel.factory(self.opts)
          try:
              channel.send(load)
          except Exception:
              pass
          finally:
              channel.close()
          return True
docs: Fire an event off on the master server
  
          CLI Example:
  
          .. code-block:: bash
  
              salt '*' event.fire_master 'stuff to be in the event' 'tag'