Debian Codegraph @

conf/groups.d/cluster.yaml.example

raw
1 # ClusterShell groups config cluster.yaml.example
2 #
3 # Example of YAML groups config file with multiple sources.
4 # ^^^^^^^
5 # Here you can describe your cluster nodes and equipment using several
6 # group sources.
7 #
8 # Example of group source use-cases are:
9 # - functional info (compute, storage, service nodes, etc.)
10 # - location (room, rack position, etc.)
11 # - physical attributes (cpu type, gpu types, memory size, etc.)
12 # - vendors and hardware models, useful info for firmware update
13 # - infrastructure (pdu, network and interco switches)
14 # - ownership of nodes and partitions...
15 #
16 # File will be auto-loaded if renamed to .yaml
17 #
18 # Break and adapt to fit your own needs. Use nodeset CLI to test config.
19
20 # Group source roles:
21 # define groups @roles:adm, @roles:io, etc.
22 roles:
23 adm: 'example0'
24 io: '@racks:rack2,example2'
25 compute: '@racks:rack[3-4]'
26 gpu: '@racks:rack4'
27 # '*' is the all-nodes wildcard, e.g. @roles:* or clush -a, not 'all'
28 # the 'all' special group is only needed if we don't want all nodes from
29 # this group source included, here we don't want example0 for clush -a
30 all: '@io,@compute'
31
32 # Group source racks:
33 # define groups @racks:rack[1-4], @racks:old and @racks:new
34 racks:
35 rack1: 'example[0,2]'
36 rack2: 'example[4-5]'
37 rack3: 'example[32-159]'
38 rack4: 'example[156-159]'
39 # groups from same source may be referenced without the "source:" prefix
40 # and yes, ranges work for groups too!
41 old: '@rack[1,3]'
42 new: '@rack[2,4]'
43 # YAML lists
44 rack5:
45 - 'example[200-205]' # some comment about example[200-205]
46 - 'example245'
47 - 'example300,example[401-406]'
48
49 # Group source cpu:
50 # define groups @cpu:ivy, @cpu:hsw and @cpu:all
51 cpu:
52 ivy: 'example[32-63]'
53 # groups from other sources must be prefixed with "source:"
54 hsw: '@roles:compute!@ivy'