Skip to content

Commit ed7ebe8

Browse files
Added missing attributes to examples. (#148)
* Added missing attributes to examples. * Updated scope and context with the comments * updated the scope with 8 character long name * Fix cmci_action examples Signed-off-by: Stewart Francis <[email protected]> * Fix some other example errors, standardize bare words, title case in descriptions Signed-off-by: Stewart Francis <[email protected]> --------- Signed-off-by: Stewart Francis <[email protected]> Co-authored-by: Pavan Satwik <> Co-authored-by: Stewart Francis <[email protected]>
1 parent 8072000 commit ed7ebe8

File tree

10 files changed

+74
-70
lines changed

10 files changed

+74
-70
lines changed

docs/source/modules/cmci_action.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ Examples
361361
cmci_action:
362362
cmci_host: "example.com"
363363
cmci_port: 12345
364-
context: "plex_or_applid"
364+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
365365
type: "CICSProgram"
366366
action_name: NEWCOPY
367367
resource:
@@ -374,16 +374,14 @@ Examples
374374
- name: install a bundle in a CICS region
375375
cmci_action:
376376
cmci_host: "example.com"
377-
cmci_port: "12345"
378-
context: "plex_or_applid"
379-
type: CICSBundle
380-
action_name: install
381-
resource:
377+
cmci_port: 1234
378+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
379+
scope: "IJKLMNOP" # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
380+
type: "CICSBundle"
381+
action_name: DISABLE
382+
resources:
382383
filter:
383-
name: "PONGALT"
384-
action_parameters:
385-
- name: "usage"
386-
value: "local"
384+
name: "bundle"
387385

388386

389387

docs/source/modules/cmci_create.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ Examples
224224
cmci_create:
225225
cmci_host: "example.com"
226226
cmci_port: 12345
227-
context: "plex_or_applid"
227+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
228228
type: "CICSDefinitionBundle"
229+
scope: "IJKLMNOP" # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
229230
attributes:
230231
name: PONGALT
231232
bundledir: /u/ibmuser/bundle/pong/pongbundle_1.0.0

docs/source/modules/cmci_delete.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,19 @@ Examples
324324
cmci_delete:
325325
cmci_host: "example.com"
326326
cmci_port: 12345
327-
context: "plex_or_applid"
327+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
328328
type: CICSBundle
329-
resource:
329+
resources:
330330
filter:
331331
name: "PONGALT"
332332

333333
- name: delete a bundle definition in a CICS region
334334
cmci_delete:
335335
cmci_host: "example.com"
336336
cmci_port: 12345
337-
context: "plex_or_applid"
337+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
338338
type: CICSDefinitionBundle
339+
scope: "IJKLMNOP" # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
339340
resource:
340341
filter:
341342
name: "PONGALT"

docs/source/modules/cmci_get.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ Examples
351351
cmci_port: 12345
352352
cmci_user: "ibmuser"
353353
cmci_password: "123456"
354-
context: "plex_or_applid"
354+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
355355
type: CICSLocalFile
356356
record_count: 2
357357
resource:
@@ -364,7 +364,7 @@ Examples
364364
cmci_port: 12345
365365
cmci_cert: "./sec/ansible.pem"
366366
cmci_key: "./sec/ansible.key"
367-
context: "plex_or_applid"
367+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
368368
type: "CICSLocalFile"
369369
resources:
370370
filter:
@@ -378,7 +378,7 @@ Examples
378378
cmci_port: 12345
379379
cmci_cert: "./sec/ansible.pem"
380380
cmci_key: "./sec/ansible.key"
381-
context: "plex_or_applid"
381+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
382382
type: cicsdefinitionprogram
383383
resources:
384384
filter:
@@ -394,7 +394,8 @@ Examples
394394
cmci_port: 12345
395395
cmci_cert: "./sec/ansible.pem"
396396
cmci_key: "./sec/ansible.key"
397-
context: "plex_or_applid"
397+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
398+
scope: "IJKLMNOP" # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
398399
type: cicsdefinitionbundle
399400
resources:
400401
filter:
@@ -411,7 +412,7 @@ Examples
411412
cmci_port: 12345
412413
cmci_cert: "./sec/ansible.pem"
413414
cmci_key: "./sec/ansible.key"
414-
context: "plex_or_applid"
415+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
415416
type: "CICSRegion"
416417
resources:
417418
complex_filter:

docs/source/modules/cmci_update.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,14 @@ Examples
361361
cmci_update:
362362
cmci_host: "example.com"
363363
cmci_port: "12345"
364-
context: "plex_or_applid"
364+
context: "ABCDEFGH" # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
365+
scope: "IJKLMNOP" # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
365366
type: "CICSDefinitionBundle"
366367
attributes:
367368
description: "New description"
368369
update_parameters:
369370
- name: csd
370-
resource:
371+
resources:
371372
filter:
372373
name: "PONGALT"
373374
get_parameters:

plugins/modules/cmci_action.py

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,27 @@
7171
cmci_action:
7272
cmci_host: "example.com"
7373
cmci_port: 12345
74-
context: "plex_or_applid"
75-
type: "CICSProgram"
74+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
75+
type: CICSProgram
7676
action_name: NEWCOPY
77-
resource:
77+
resources:
7878
filter:
79-
name: "PONGALT"
80-
get_parameters:
81-
- name: "csdgroup"
82-
value: "JVMGRP"
79+
name: PONGALT
8380
84-
- name: install a bundle in a CICS region
81+
- name: Install a bundle definition from CSD in a CICS region
8582
cmci_action:
8683
cmci_host: "example.com"
87-
cmci_port: "12345"
88-
context: "plex_or_applid"
84+
cmci_port: 1234
85+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
86+
scope: IJKLMNOP # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
8987
type: CICSBundle
90-
action_name: install
91-
resource:
88+
action_name: CSDINSTALL
89+
resources:
9290
filter:
93-
name: "PONGALT"
94-
action_parameters:
95-
- name: "usage"
96-
value: "local"
91+
name: mybund
92+
get_parameters:
93+
- name: csdgroup
94+
value: mygrp
9795
"""
9896

9997

plugins/modules/cmci_create.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,19 @@
5757

5858

5959
EXAMPLES = r"""
60-
- name: define a BUNDLE in a CSD
60+
- name: Define a BUNDLE in CSD
6161
cmci_create:
6262
cmci_host: "example.com"
6363
cmci_port: 12345
64-
context: "plex_or_applid"
65-
type: "CICSDefinitionBundle"
64+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
65+
type: CICSDefinitionBundle
66+
scope: IJKLMNOP # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
6667
attributes:
6768
name: PONGALT
6869
bundledir: /u/ibmuser/bundle/pong/pongbundle_1.0.0
6970
csdgroup: JVMGRP
7071
create_parameters:
71-
- name: "csd"
72+
- name: csd
7273
"""
7374

7475

plugins/modules/cmci_delete.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,25 @@
3636
cmci_delete:
3737
cmci_host: "example.com"
3838
cmci_port: 12345
39-
context: "plex_or_applid"
39+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
4040
type: CICSBundle
41-
resource:
41+
resources:
4242
filter:
43-
name: "PONGALT"
43+
name: PONGALT
4444
4545
- name: delete a bundle definition in a CICS region
4646
cmci_delete:
4747
cmci_host: "example.com"
4848
cmci_port: 12345
49-
context: "plex_or_applid"
49+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
5050
type: CICSDefinitionBundle
51-
resource:
51+
scope: IJKLMNOP # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
52+
resources:
5253
filter:
53-
name: "PONGALT"
54+
name: PONGALT
5455
get_parameters:
55-
- name: "csdgroup"
56-
value: "JVMGRP"
56+
- name: csdgroup
57+
value: JVMGRP
5758
"""
5859

5960

plugins/modules/cmci_get.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,40 +54,40 @@
5454

5555

5656
EXAMPLES = r"""
57-
- name: get 2 LOCFILEs from a CICSplex
57+
- name: Get 2 LOCFILEs from a CICSplex
5858
cmci_get:
5959
cmci_host: "example.com"
6060
cmci_port: 12345
61-
cmci_user: "ibmuser"
61+
cmci_user: ibmuser
6262
cmci_password: "123456"
63-
context: "plex_or_applid"
63+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
6464
type: CICSLocalFile
6565
record_count: 2
66-
resource:
66+
resources:
6767
filter:
6868
dsname: "CTS*"
6969
70-
- name: get a localfile in a CICS region
70+
- name: Get a localfile in a CICS region
7171
cmci_get:
7272
cmci_host: "example.com"
7373
cmci_port: 12345
7474
cmci_cert: "./sec/ansible.pem"
7575
cmci_key: "./sec/ansible.key"
76-
context: "plex_or_applid"
77-
type: "CICSLocalFile"
76+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
77+
type: CICSLocalFile
7878
resources:
7979
filter:
8080
dsname: "XIAOPIN*"
8181
file: "DFH*"
8282
record_count: 1
8383
84-
- name: get a progdef from a CSD
84+
- name: Get a progdef from CSD
8585
cmci_get:
8686
cmci_host: "example.com"
8787
cmci_port: 12345
8888
cmci_cert: "./sec/ansible.pem"
8989
cmci_key: "./sec/ansible.key"
90-
context: "plex_or_applid"
90+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
9191
type: cicsdefinitionprogram
9292
resources:
9393
filter:
@@ -97,13 +97,14 @@
9797
value: MYGRP
9898
record_count: 1
9999
100-
- name: pass module even if bundle definition is not found
100+
- name: Ignore errors when bundle definition is not found
101101
cmci_get:
102102
cmci_host: "example.com"
103103
cmci_port: 12345
104104
cmci_cert: "./sec/ansible.pem"
105105
cmci_key: "./sec/ansible.key"
106-
context: "plex_or_applid"
106+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
107+
scope: IJKLMNOP # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
107108
type: cicsdefinitionbundle
108109
resources:
109110
filter:
@@ -112,16 +113,16 @@
112113
- name: csdgroup
113114
value: MYGRP
114115
record_count: 1
115-
fail_on_nodata: "false"
116+
fail_on_nodata: false
116117
117118
- name: Using complex_filter to combine filter expressions and change operators
118119
cmci_get:
119120
cmci_host: "example.com"
120121
cmci_port: 12345
121122
cmci_cert: "./sec/ansible.pem"
122123
cmci_key: "./sec/ansible.key"
123-
context: "plex_or_applid"
124-
type: "CICSRegion"
124+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
125+
type: CICSRegion
125126
resources:
126127
complex_filter:
127128
or:

plugins/modules/cmci_update.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,20 @@
5858

5959

6060
EXAMPLES = r"""
61-
- name: update a bundle definition in a CICS region
61+
- name: Update the description of a bundle definition in CSD
6262
cmci_update:
6363
cmci_host: "example.com"
64-
cmci_port: "12345"
65-
context: "plex_or_applid"
66-
type: "CICSDefinitionBundle"
64+
cmci_port: 12345
65+
context: ABCDEFGH # context is the name of your CICSplex in a CPSM environment or the applid of your region in an SMSS environment
66+
scope: IJKLMNOP # scope only applies if you're in a CPSM environment and is either the name of a CICS system definition (CSYSDEF) or CICS system group (CSYSGRP)
67+
type: CICSDefinitionBundle
6768
attributes:
68-
description: "New description"
69+
description: New description
6970
update_parameters:
7071
- name: csd
71-
resource:
72+
resources:
7273
filter:
73-
name: "PONGALT"
74+
name: PONGALT
7475
get_parameters:
7576
- name: csdgroup
7677
value: JVMGRP

0 commit comments

Comments
 (0)