Skip to content

Commit ae17cc4

Browse files
committed
Dev: doc: Move 'id-ref' usage into help primitive section
1 parent 264556c commit ae17cc4

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

doc/crm.8.adoc

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,25 +3264,6 @@ clone disk1 drbd1 \
32643264
...............
32653265
****************************
32663266

3267-
.Note on `id-ref` usage
3268-
****************************
3269-
Instance or meta attributes (`params` and `meta`) may contain
3270-
a reference to another set of attributes. In that case, no other
3271-
attributes are allowed. Since attribute sets' ids, though they do
3272-
exist, are not shown in the `crm`, it is also possible to
3273-
reference an object instead of an attribute set. `crm` will
3274-
automatically replace such a reference with the right id:
3275-
3276-
...............
3277-
crm(live)configure# primitive a2 www-2 meta $id-ref=a1
3278-
crm(live)configure# show a2
3279-
primitive a2 apache \
3280-
meta $id-ref=a1-meta_attributes
3281-
[...]
3282-
...............
3283-
It is advisable to give meaningful names to attribute sets which
3284-
are going to be referenced.
3285-
****************************
32863267

32873268
[[cmdhelp_configure_node,define a cluster node]]
32883269
==== `node`
@@ -3471,6 +3452,26 @@ primitive A ocf:pacemaker:Dummy \
34713452
op_meta 1: timeout=60s
34723453
...............
34733454

3455+
.Note on `id-ref` usage
3456+
****************************
3457+
Instance or meta attributes (`params` and `meta`) may contain
3458+
a reference to another set of attributes. In that case, no other
3459+
attributes are allowed. Since attribute sets' ids, though they do
3460+
exist, are not shown in the `crm`, it is also possible to
3461+
reference an object instead of an attribute set. `crm` will
3462+
automatically replace such a reference with the right id:
3463+
3464+
...............
3465+
crm(live)configure# primitive a2 www-2 meta $id-ref=a1
3466+
crm(live)configure# show a2
3467+
primitive a2 apache \
3468+
meta $id-ref=a1-meta_attributes
3469+
[...]
3470+
...............
3471+
It is advisable to give meaningful names to attribute sets which
3472+
are going to be referenced.
3473+
****************************
3474+
34743475
[[cmdhelp_configure_property,set a cluster property]]
34753476
==== `property`
34763477

0 commit comments

Comments
 (0)