code: def pack(name, root, path=None, pack_format='tar', compress='bzip2'):
      '''
      Pack up a directory structure, into a specific format
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt myminion genesis.pack centos /root/centos
          salt myminion genesis.pack centos /root/centos pack_format='tar'
      '''
      if pack_format == 'tar':
          _tar(name, root, path, compressf pack(name, root, path=None, pack_format='tar', compress='bzip2'):
      '''
      Pack up a directory structure, into a specific format
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt myminion genesis.pack centos /root/centos
          salt myminion genesis.pack centos /root/centos pack_format='tar'
      '''
      if pack_format == 'tar':
          _tar(name, root, path, compress)
docs: Pack up a directory structure, into a specific format
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt myminion genesis.pack centos /root/centos
          salt myminion genesis.pack centos /root/centos pack_format='tar'