Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ddimatos opened this issue Sep 26, 2022 · 0 comments
Assignees
Labels
In Plan Issue has been accepted put into a planned release Module New module,plugin, filter, etc

Comments

@ddimatos
Copy link
Collaborator

ddimatos commented Sep 26, 2022

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.

@ddimatos ddimatos added the Module New module,plugin, filter, etc label Sep 26, 2022
@ddimatos ddimatos added this to the Modules milestone Sep 26, 2022
@ddimatos ddimatos changed the title [Module] [zos_archive] Support various archive formats not currently easily supported on z/OS [Module] [zos_archive] Support various archive formats that can accept data sets as a src to support z/OS Sep 27, 2022
@ddimatos ddimatos changed the title [Module] [zos_archive] Support various archive formats that can accept data sets as a src to support z/OS [Module] [1] [zos_archive] Support various archive formats that can accept data sets as a src to support z/OS Sep 27, 2022
@ddimatos ddimatos added the In Plan Issue has been accepted put into a planned release label Sep 27, 2022
@ddimatos ddimatos changed the title [Module] [1] [zos_archive] Support various archive formats that can accept data sets as a src to support z/OS [Module][ 1 ] [zos_archive] Support various archive formats that can accept data sets as a src to support z/OS Sep 27, 2022
@fernandofloresg fernandofloresg moved this from 📗In plan to 🏗 In progress in IBM Ansible z/OS Core Collection Nov 7, 2022
@fernandofloresg fernandofloresg moved this from 🏗 In progress to ✅ Done in IBM Ansible z/OS Core Collection Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Plan Issue has been accepted put into a planned release Module New module,plugin, filter, etc
Projects
Development

No branches or pull requests

3 participants