Skip to content

[Module][ 1 ] [zos_archive] Support various archive formats that can accept data sets as a src to support z/OS #469

@ddimatos

Description

@ddimatos

New module description

Module that provides users the abilities too:

  • Create an archive a src on the remote host where src can be:
    • Sequential Data set
    • PDS
    • PDS/E
    • VSAM [Stretch Goal]
  • Support compression formats and options for:
    • gz
    • tar
    • zip
    • bz2
    • pax
    • terse (trs)
    • xmit (transmit)
  • Support listing the contents of an archive (community module does not currently perform this operation)

Review:

Notes:

Parameters

Parameter Alias Suboptions Description
1 src Remote absolute path, data set, glob, or list of paths or globs for the file or files to compress or archive.
2 dest The file name of the destination archive. The parent directory must exists on the remote host. The data set name of the destination to archive, can not be a PDS/E If the destination archive already exists, it will be truncated and overwritten.
3 exclude_path Remote absolute path, glob, or list of paths or globs for the file or files to exclude from path list and glob expansion.
4 force_archive I am unsure if we want this, likely to get confused with force; Allows you to force the module to treat this as an archive even if only a single file is specified.
5 format compression, options The type of compression to use, choices would be (1) gz (2) tar (3) zip (4) bz2 (5)pax (6) terse (trs) (7) XMIT (see notes in module spec). Options should be a list or choice, depends on how many we support e.g.XMIT could support SPACK and PACK
6 group Name of the group that should own the filesystem object, defaults to the current users group, applies only to USS files
7 mode The permissions the resulting filesystem object should have. .....
8 owner Name of the user that should own the filesystem object, defaults to the current user, applies only to USS files
9 remove Delete src files after archival when replace=True
10 force Replace existing archive dest
11 list List the names of the archive contents
12 hlq High Level Qualifier used for data set

Return Values

Key Description
archived Any files that were compressed or added to the archive. Returned: success
arcroot The archive root. Returned: always
dest_state The state of the dest file. -absent when the file does not exist.-archive when the file is an archive. -compress when the file is compressed, but not an archive. -incomplete when the file is an archive, but some files under path were not found. Returned: success
expanded_exclude_paths The list of matching exclude paths from the exclude_path argument. Returned: always
expanded_paths The list of matching paths from paths argument. Returned: always
missing Any files that were missing from the source.Returned: success
state The state of the input path.Returned: always
names or dest Destination name

See also common values returned, thinking its better to define the ones that we support rather than let users figure it out.

Special thanks, this table was generated with tableconvert.

Metadata

Metadata

Labels

In PlanIssue has been accepted and put into a planned releaseModuleNew module, plugin, filter, etc

Type

No type
No fields configured for issues without a type.

Projects

Status
✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions