Skip to content

Commit 03e143e

Browse files
cssh-erikGitHub Enterprise
authored andcommitted
Cssh doc fix 9222 8949 (#284)
1 parent 34772e6 commit 03e143e

File tree

6 files changed

+168
-80
lines changed

6 files changed

+168
-80
lines changed

docs/source/modules.rst

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,31 @@ Modules
99
Modules can be used in a playbook to automate tasks. Ansible® executes each
1010
module on the target node and returns the result back to the controller.
1111

12-
The **IBM® z/OS® CICS® collection** provides modules for interacting with CMCI
13-
over an HTTP connection by leveraging the `CMCI REST API`_, as well as modules
14-
to automate provisioning of a CICS TS region. These modules have different
15-
requirements of the managed node. For more detail see :doc:`requirements_managed`.
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`.
1623

1724
.. _CMCI REST API:
1825
https://www.ibm.com/docs/en/cics-ts/latest?topic=cmci-how-it-works-rest-api
1926

20-
The region provisioning modules use two defaults groups that allow a
21-
user to specify the location of a CICS installation and a high level qualifier
22-
for all region data sets to be created under. The example below shows how to
23-
use these default groups within the *cics_global_catalog* module.
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.
2437

2538
.. code-block:: yaml+jinja
2639

@@ -34,13 +47,12 @@ use these default groups within the *cics_global_catalog* module.
3447
state: "initial"
3548

3649

37-
In the above example, the global catalog will be created at the data set location
38-
*REGIONS.ABCD0001.DFHGCD*, and the CICS load libraries can be found at the
39-
location *CICSTS61.CICS*, which means that the SDFHLOAD library could be found at
40-
*CICSTS61.CICS.SDFHLOAD*.
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``.
4153

4254
These groups can be placed in a `module_defaults`_ section, which means that all
43-
the CICS provisioning modules will use the same high level qualifier for the
55+
the CICS provisioning modules use the same high level qualifier for the
4456
region data sets, and the location of the CICS installation only has to be
4557
declared once for all the modules.
4658

@@ -64,6 +76,10 @@ for a global catalog data set below.
6476
.. _module_defaults:
6577
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_module_defaults.html
6678

79+
80+
Module Reference
81+
---------------
82+
6783
The **IBM® z/OS® CICS® collection** contains these modules. For each module,
6884
the accepted parameters, return values, and examples are provided in the
6985
documentation.

docs/source/modules/region_jcl.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
.. _region_jcl_module:
99

1010

11-
region_jcl -- Create CICS region JCL data set
12-
=============================================
11+
region_jcl -- Create CICS startup JCL data set
12+
==============================================
1313

1414

1515

@@ -20,7 +20,8 @@ region_jcl -- Create CICS region JCL data set
2020

2121
Synopsis
2222
--------
23-
- Create a data set containing JCL to start a CICS® region by providing CICS system data sets and system initialization parameters for CICS startup using the \ :literal:`DFHSIP`\ program.
23+
- Create a data set containing the JCL to start a CICS® region.
24+
- The JCL is generated by your input of CICS system data sets and system initialization parameters for CICS startup using the \ :literal:`DFHSIP`\ program.
2425

2526

2627

@@ -124,7 +125,7 @@ cpsm_data_sets
124125

125126

126127
dfhrpl
127-
Any locations of additional DFHRPL libraries to add, that are not \ :literal:`SDFHLOAD`\ , \ :literal:`SCEECICS`\ , \ :literal:`SCEERUN`\ , or \ :literal:`SCEERUN2`\ .
128+
Any locations of additional data sets other than \ :literal:`SDFHLOAD`\ , \ :literal:`SCEECICS`\ , \ :literal:`SCEERUN`\ , or \ :literal:`SCEERUN2`\ , to be added to the DFHRPL concatenation. The DFHRPL concatenation is where you specify the libraries that contain modules loaded by CICS, for example, the libraries containing your CICS application programs, your CICS control tables, and so on. You can either add data sets at the very top of the list or append them to the bottom of the list. There are other data sets in between, as determined by the defaults or other input parameters; for example, \ :literal:`SCEERUN`\ and \ :literal:`SCEERUN2`\ as specified with \ :literal:`le\_data\_sets`\ , \ :literal:`SDFHLOAD`\ as specified with \ :literal:`cics\_data\_sets`\ , and so on.
128129

129130

130131
| **required**: False
@@ -133,7 +134,7 @@ dfhrpl
133134

134135

135136
data_sets
136-
The DFHRPL data sets to be appended to the bottom of the list.
137+
The \ :literal:`DFHRPL`\ data sets to be added to the bottom of the list.
137138

138139

139140
| **required**: False
@@ -142,7 +143,7 @@ dfhrpl
142143

143144

144145
top_data_sets
145-
The DFHRPL data sets to be appended to the very top of the statement.
146+
The \ :literal:`DFHRPL`\ data sets to be added to the very top of the list.
146147

147148

148149
| **required**: False
@@ -3441,7 +3442,7 @@ space_primary
34413442

34423443
This option takes effect only when the CICS startup JCL data set is being created. If the CICS startup JCL data set already exists, the option has no effect.
34433444

3444-
If this option is not set the primary space is dynamically calculated based on the size of the generated CICS startup JCL
3445+
If this option is not set, the primary space is dynamically calculated based on the size of the generated CICS startup JCL.
34453446

34463447

34473448
| **required**: False
@@ -3454,7 +3455,7 @@ space_secondary
34543455

34553456
This option takes effect only when the CICS startup JCL data set is being created. If the CICS startup JCL data set already exists, the option has no effect.
34563457

3457-
If this option is not set the primary space is dynamically calculated as 10% of the total size of the generated CICS startup JCL
3458+
If this option is not set, the secondary space is dynamically calculated as 10% of the total size of the generated CICS startup JCL.
34583459

34593460

34603461
| **required**: False
@@ -3469,7 +3470,7 @@ space_type
34693470

34703471
The size can be specified in megabytes (\ :literal:`M`\ ), kilobytes (\ :literal:`K`\ ), cylinders (\ :literal:`CYL`\ ), or tracks (\ :literal:`TRK`\ ).
34713472

3472-
If neither \ :literal:`space\_secondary`\ or \ :literal:`space\_primary`\ are set, then this value will not have any effect
3473+
If neither \ :literal:`space\_secondary`\ nor \ :literal:`space\_primary`\ is set, then this value does not have any effect.
34733474

34743475

34753476
| **required**: False
@@ -3496,7 +3497,7 @@ state
34963497

34973498

34983499
steplib
3499-
Any locations of additional \ :literal:`STEPLIB`\ libraries to add, that are not \ :literal:`SDFHAUTH`\ , \ :literal:`SDFHLIC`\ , \ :literal:`SCEERUN`\ , or \ :literal:`SCEERUN2`\ .
3500+
Any locations of additional data sets other than \ :literal:`SDFHAUTH`\ , \ :literal:`SDFHLIC`\ , \ :literal:`SCEERUN`\ , or \ :literal:`SCEERUN2`\ , to be added to the STEPLIB concatenation. The STEPLIB concatenation is where you specify the libraries that contain the modules loaded by the z/OS operating system. You can either add data sets at the very top of the list or append them to the bottom of the list. There are other data sets in between, as determined by the defaults or other input parameters; for example, \ :literal:`SEYUAUTH`\ and \ :literal:`SEYULOAD`\ as sepcified with \ :literal:`cpsm\_data\_sets`\ , \ :literal:`SCEERUN`\ and \ :literal:`SCEERUN2`\ as specified with \ :literal:`le\_data\_sets`\ , \ :literal:`SDFHAUTH`\ and \ :literal:`SDFHLIC`\ as specified with \ :literal:`cics\_data\_sets`\ , and so on.
35003501

35013502

35023503
| **required**: False
@@ -3505,7 +3506,7 @@ steplib
35053506

35063507

35073508
data_sets
3508-
The \ :literal:`STEPLIB`\ data sets to be appended to the bottom of the library list.
3509+
The \ :literal:`STEPLIB`\ data sets to be added to the bottom of the list.
35093510

35103511

35113512
| **required**: False
@@ -3514,7 +3515,7 @@ steplib
35143515

35153516

35163517
top_data_sets
3517-
The \ :literal:`STEPLIB`\ data sets to be appended to the very top of the statement.
3518+
The \ :literal:`STEPLIB`\ data sets to be added to the very top of the list.
35183519

35193520

35203521
| **required**: False
@@ -3539,7 +3540,7 @@ Examples
35393540
.. code-block:: yaml+jinja
35403541

35413542

3542-
- name: Create CICS region JCL data set
3543+
- name: Create CICS startup JCL data set
35433544
ibm.ibm_zos_cics.region_jcl:
35443545
applid: ABC9ABC1
35453546
cics_data_sets:
@@ -3573,7 +3574,7 @@ Examples
35733574
wrkarea: 2048
35743575
sysidnt: ZPY1
35753576

3576-
- name: Create CICS region JCL data set with more customization
3577+
- name: Create CICS startup JCL data set with more customization
35773578
ibm.ibm_zos_cics.region_jcl:
35783579
applid: ABC9ABC1
35793580
job_parameters:
@@ -3771,7 +3772,7 @@ Return Values
37713772

37723773

37733774
msg
3774-
| A string containing an error message if applicable
3775+
| A string containing an error message if applicable.
37753776
37763777
| **returned**: always
37773778
| **type**: str

docs/source/playbooks.rst

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ functionality in the `samples repository`_.
1212
The sample playbooks fall into two categories:
1313

1414
- Operations on CICS and CICSPlex SM resources and definitions. The sample playbooks use the CMCI modules to achieve various real-life use cases.
15-
- CICS provisioning. The sample playbook demonstrates how a set of modules for provisioning and managing CICS TS data sets and utilities can be used to provision, start, stop, and deprovision a CICS region.
15+
- CICS provisioning. The sample playbooks demonstrate how a set of modules for provisioning and managing CICS TS data sets and utilities can be used to provision and deprovision a CICS region and to perform CICS startup or shutdown operations.
1616

1717
.. _samples repository:
1818
https://github.com/IBM/z_ansible_collections_samples
@@ -137,7 +137,7 @@ and group variables files may help you organize your variable values more
137137
easily. An example of one of these variable files is the `zos_host.yml`_
138138
file included with the `deploy_program sample`_, which is used to provide the
139139
required environment variables. Another such example is the `variables.yml`_ file
140-
included with the `CICS provisioning`_ playbook.
140+
included with the `CICS provisioning`_ playbooks.
141141

142142
The properties that define the environment variables are as follows:
143143

@@ -158,9 +158,10 @@ The properties that define the environment variables are as follows:
158158
159159
.. note::
160160
In ZOAU 1.0.2 and later, the property **ZOAU_ROOT** is no longer supported
161-
and can be replaced with the property **ZOAU_HOME**. If you are using ZOAU
162-
version 1.0.1 or lower, you must continue to use the property
163-
**ZOAU_ROOT** which is the ZOA Utilities install root path required for
161+
and can be replaced with the property **ZOAU_HOME**.
162+
163+
If you are using ZOAU version 1.0.1 or lower, you must continue to use the property
164+
**ZOAU_ROOT**, which is the ZOA Utilities install root path required for
164165
ZOAU; for example, ``/usr/lpp/IBM/zoautil``.
165166

166167
.. _zos_host.yml:
@@ -177,7 +178,7 @@ The properties that define the environment variables are as follows:
177178
Module Defaults
178179
---------------
179180

180-
Ansible has a module defaults feature to use the same values during every use of
181+
Ansible has a module defaults feature, which allows you to use the same values during every use of
181182
a module, rather than repeating them everytime.
182183

183184
For example, when using CMCI modules to manage CICS and CICSPlex SM resources and definitions, you can set the host url and
@@ -206,14 +207,14 @@ to the group called **cmci**.
206207
207208
208209
Likewise, you can easily apply a default set of CICS TS data sets and utilities for the provisioning or de-provisioning of CICS regions.
209-
If you want to use the same values in **all** CICS TS data set provisioning modules, you can assign them to the group called **region_group**.
210+
If you want to use the same values in **all** CICS TS data set provisioning modules, you can assign them to the group called **region**.
210211
The following **module_defaults** example illustrates the use of a templated location for some data sets and a user-specified name for
211212
some other data sets instead of the template.
212213

213214
.. code-block:: yaml
214215
215216
module_defaults:
216-
group/ibm.ibm_zos_cics.region_group:
217+
group/ibm.ibm_zos_cics.region:
217218
state: initial
218219
cics_data_sets:
219220
template: "CTS610.CICS740.<< data_set_name >>"
@@ -222,18 +223,19 @@ some other data sets instead of the template.
222223
template: "{{ansible_user}}.REGIONS.{{applid}}.<< data_set_name >>"
223224
dfhgcd: "REGIONS.{{applid}}.GCD"
224225
225-
The **cics_data_sets** parameter defines the data set names of the SDFHAUTH, SDFHLOAD and SDFHLIC libraries. These libraries can be used by
226-
multiple CICS regions. In this example, the SDFHLOAD and SDFHLIC libraries are created by default using the templated location
227-
of ``CTS610.CICS740.<< data_set_name >>``, so their data set names are ``CTS610.CICS740.SDFHLOAD`` and ``CTS610.CICS740.SDFHLIC`` respectively.
228-
However, SDFHAUTH is created with the data set name of ``CICSTS61.OVERRDE.TEMPLT.SDFHAUTH``, overriding the template.
226+
The **cics_data_sets** parameter defines a defaults group through which you can specify the location of a CICS installation. It is used to define
227+
the data set names of the SDFHAUTH, SDFHLOAD and SDFHLIC libraries. These libraries can be used by multiple CICS regions. In this example, the SDFHLOAD
228+
and SDFHLIC libraries are created by default using the templated location of ``CTS610.CICS740.<< data_set_name >>``, so their data set names are
229+
``CTS610.CICS740.SDFHLOAD`` and ``CTS610.CICS740.SDFHLIC`` respectively. However, the SDFHAUTH library is created with the data set name of
230+
``CICSTS61.OVERRDE.TEMPLT.SDFHAUTH``, overriding the template.
229231

230-
The **region_data_sets** parameter defines the data sets that are used by a single CICS region. In this example, all the region data sets except
231-
DFHGCD are created by default using the templated location of ``{{ansible_user}}.REGIONS.{{applid}}.<< data_set_name >>``, while DFHGCD is created
232-
with the data set name of ``REGIONS.{{applid}}.GCD``, overriding the template.
232+
The **region_data_sets** parameter defines a defaults group through which you can specify a high level qualifier for the data sets that are used by a
233+
single CICS region. In this example, all the region data sets except DFHGCD are created by default using the templated location of
234+
``{{ansible_user}}.REGIONS.{{applid}}.<< data_set_name >>``, while DFHGCD is created with the data set name of ``REGIONS.{{applid}}.GCD``, overriding the template.
233235

234236

235237
.. note::
236-
Group module defaults are only available in ``ansible-core`` 2.12 or later. If
238+
Group module defaults are available in ``ansible-core`` 2.12 or later. If
237239
this syntax is used with ``ansible-core`` 2.11 or earlier, the values are
238240
perceived as not present, and a 'missing required arguments' error is thrown.
239241

@@ -246,22 +248,30 @@ Access the `collection samples repository`_ and ensure you have navigated to
246248
the directory containing the playbook you want to run. For example:
247249
``zos_subsystems/cics/cmci/deploy_program/``.
248250

249-
Use the Ansible command ``ansible-playbook`` to run the sample playbook. The
250-
command syntax is ``ansible-playbook -i <inventory> <playbook>`` which, using
251-
the example above of ``deploy_program``, is
252-
``ansible-playbook -i inventory deploy_program.yaml``.
251+
Use the Ansible command ``ansible-playbook`` to run the sample playbook.
252+
253+
**Command Syntax**
254+
255+
``ansible-playbook -i <inventory> <playbook>``
256+
257+
Assuming the example above of ``deploy_program``, the command to issue is as follows:
258+
259+
``ansible-playbook -i inventory deploy_program.yaml``
253260

254261
This command assumes that the controller's public SSH key has been shared with
255262
the managed node. If you want to avoid entering a username and password each
256-
time, copy the SSH public key to the managed node using the ``ssh-copy-id``
257-
command; for example, ``ssh-copy-id -i ~/.ssh/mykey.pub user@<hostname>``.
263+
time, copy the SSH public key to the managed node by using the ``ssh-copy-id``
264+
command, as shown in the following example:
265+
266+
``ssh-copy-id -i ~/.ssh/mykey.pub user@<hostname>``
267+
268+
Alternatively, you can use the ``--ask-pass`` option, as shown in the following example, so that
269+
the user is prompted to enter a connection password each time a playbook is run.
258270

259-
Alternatively, you can use the ``--ask-pass`` option to be prompted for the
260-
user's password each time a playbook is run; for example,
261-
``ansible-playbook -i inventory deploy_program.yaml --ask-pass``.
271+
``ansible-playbook -i inventory deploy_program.yaml --ask-pass``
262272

263273
.. note::
264-
* Using ``--ask-pass`` is not recommended because it will hinder performance.
274+
* Using ``--ask-pass`` is not recommended because it hinders performance.
265275
* Using ``--ask-pass`` requires ``sshpass`` be installed on the controller.
266276
For further reference, see the `ask-pass documentation`_.
267277

@@ -274,15 +284,15 @@ ERROR, DEBUG.
274284

275285
.. note::
276286
It is a good practice to review the playbook samples before executing them.
277-
It will help you understand what requirements in terms of space, location,
278-
names, authority, and artifacts will be created and cleaned up. Although
287+
This helps you understand what requirements are expected in terms of space, location,
288+
names, authority, and artifacts that are created and cleaned up. Although
279289
samples are always written to operate without the need for the user's
280290
configuration, flexibility is written into the samples because it is not
281-
easy to determine if a sample has access to the host's resources.
282-
Review the playbook notes sections for additional details and
291+
easy to determine whether a sample has access to the host's resources.
292+
Review the notes sections in the playbooks for additional details and
283293
configuration.
284294

285-
Playbooks often submit JCL that is included in the samples repository
295+
Playbooks often submit a JCL that is included in the samples repository
286296
under the `files directory`_. Review the sample JCL for necessary edits to
287297
allow for submission on the target system. The most common changes are to
288298
add a CLASS parameter and change the NOTIFY user parameter. For more details,
@@ -293,4 +303,4 @@ ERROR, DEBUG.
293303
.. _collection samples repository:
294304
https://github.com/IBM/z_ansible_collections_samples
295305
.. _files directory:
296-
https://github.com/IBM/z_ansible_collections_samples/tree/main/zos_basics/constructs/files
306+
https://github.com/IBM/z_ansible_collections_samples/tree/main/zos_basics/constructs/files

0 commit comments

Comments
 (0)