|
9 | 9 | Modules can be used in a playbook to automate tasks. Ansible® executes each
|
10 | 10 | module on the target node and returns the result back to the controller.
|
11 | 11 |
|
| 12 | +The **IBM® z/OS® CICS® collection** provides two categories of modules: |
| 13 | + |
| 14 | +* Modules for working with CICS and CICSPlex SM resources and definitions. |
| 15 | + These modules interact with CMCI over an HTTP connection by leveraging |
| 16 | + the `CMCI REST API`_. These modules are collectively referred to as |
| 17 | + **CMCI modules** in documentation. |
| 18 | +* Modules for provisioning and deprovisioning of CICS TS regions and for |
| 19 | + CICS startup and shutdown operations. These modules are collectively |
| 20 | + referred to as CICS **provisioning modules** in documentation. |
| 21 | + |
| 22 | +These modules have different requirements of the managed node. For details, see :doc:`requirements_managed`. |
| 23 | + |
| 24 | +.. _CMCI REST API: |
| 25 | + https://www.ibm.com/docs/en/cics-ts/latest?topic=cmci-how-it-works-rest-api |
| 26 | + |
| 27 | + |
| 28 | +Using Defaults Groups in CICS Provisioning Modules |
| 29 | +--------------- |
| 30 | + |
| 31 | +The CICS provisioning modules use several defaults groups. In particular, these two defaults groups are used for specific purposes: |
| 32 | + |
| 33 | +* ``cics_data_sets`` can be used to specify the location of a CICS installation. |
| 34 | +* ``region_data_sets`` can be used to specify a high level qualifier for the data sets used by a single CICS region. |
| 35 | + |
| 36 | +The example below shows how to use these default groups within the **global_catalog** module. |
| 37 | + |
| 38 | +.. code-block:: yaml+jinja |
| 39 | + |
| 40 | + |
| 41 | + - name: Initialize a global catalog |
| 42 | + ibm.ibm_zos_cics.global_catalog: |
| 43 | + region_data_sets: |
| 44 | + template: "REGIONS.ABCD0001.<< data_set_name >>" |
| 45 | + cics_data_sets: |
| 46 | + template: "CICSTS61.CICS.<< lib_name >>" |
| 47 | + state: "initial" |
| 48 | + |
| 49 | + |
| 50 | +In the above example, the global catalog is created at the data set location of ``REGIONS.ABCD0001.DFHGCD``, |
| 51 | +and the CICS load libraries can be found at ``CICSTS61.CICS``, which means that the SDFHLOAD library can be |
| 52 | +found at ``CICSTS61.CICS.SDFHLOAD``. |
| 53 | + |
| 54 | +These groups can be placed in a `module_defaults`_ section, which means that all |
| 55 | +the CICS provisioning modules use the same high level qualifier for the |
| 56 | +region data sets, and the location of the CICS installation only has to be |
| 57 | +declared once for all the modules. |
| 58 | + |
| 59 | +To override the data set location or name for a specific task, you can provide an |
| 60 | +additional parameter to the ``region_data_sets`` group as shown in the example |
| 61 | +for a global catalog data set below. |
| 62 | + |
| 63 | +.. code-block:: yaml+jinja |
| 64 | + |
| 65 | + |
| 66 | + - name: Initialize a global catalog with a custom name |
| 67 | + ibm.ibm_zos_cics.global_catalog: |
| 68 | + region_data_sets: |
| 69 | + dfhgcd: |
| 70 | + dsn: "MY.CICS.GLOBAL.CATALOG" |
| 71 | + cics_data_sets: |
| 72 | + template: "CICSTS61.CICS.<< lib_name >>" |
| 73 | + state: "initial" |
| 74 | + |
| 75 | + |
| 76 | +.. _module_defaults: |
| 77 | + https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_module_defaults.html |
| 78 | + |
| 79 | + |
| 80 | +Module Reference |
| 81 | +--------------- |
| 82 | + |
12 | 83 | The **IBM® z/OS® CICS® collection** contains these modules. For each module,
|
13 | 84 | the accepted parameters, return values, and examples are provided in the
|
14 | 85 | documentation.
|
|
0 commit comments