Initial treasuremap/template for site_type ovsdpdk
[yaml_builds.git] / site_type / ovsdpdk / airship-treasuremap / site / airship-seaworthy / baremetal / nodes.yaml
1 ---
2 # Drydock BaremetalNode resources for a specific rack are stored in this file.
3 #
4 # NOTE: For new sites, you should complete the networks/physical/networks.yaml
5 # file before working on this file.
6 #
7 # In this file, you should make the number of `drydock/BaremetalNode/v1`
8 # resources equal the number of bare metal nodes you have, either by deleting
9 # excess BaremetalNode definitions (if there are too many), or by copying and
10 # pasting the last BaremetalNode in the file until you have the correct number
11 # of baremetal nodes (if there are too few).
12 #
13 # Then in each file, address all additional NEWSITE-CHANGEME markers to update
14 # the data in these files with the right values for your new site.
15 #
16 # *NOTE: The Genesis node is counted as one of the control plane nodes. Note
17 # that the Genesis node does not appear on this bare metal list, because the
18 # procedure to reprovision the Genesis host with MaaS has not yet been
19 # implemented. Therefore there will be only three bare metal nodes in this file
20 # with the 'masters' tag, as the genesis roles are assigned in a difference
21 # place (profiles/genesis.yaml).
22 # NOTE: The host profiles for the control plane are further divided into two
23 # variants: primary and secondary. The only significance this has is that the
24 # "primary" nodes are active Ceph nodes, whereas the "secondary" nodes are Ceph
25 # standby nodes. For Ceph quorum, this means that the control plane split will
26 # be 3 primary + 1 standby host profile, and the Genesis node counts toward one
27 # of the 3 primary profiles. Other control plane services are not affected by
28 # primary vs secondary designation.
29 #
30 # TODO: Include the hostname naming convention
31 #
32 schema: 'drydock/BaremetalNode/v1'
33 metadata:
34   schema: 'metadata/Document/v1'
35   # NEWSITE-CHANGEME: Replace with the hostname of the first node in the rack,
36   # after (excluding) genesis.
37   name: cab23-r720-12
38   layeringDefinition:
39     abstract: false
40     layer: site
41   storagePolicy: cleartext
42 data:
43   # NEWSITE-CHANGEME: The IPv4 address assigned to each logical network on this
44   # node. In the reference Airship deployment, this is all logical Networks defined
45   # in networks/physical/networks.yaml. IP addresses are manually assigned, by-hand.
46   # (what could possibly go wrong!) The instructions differ for each logical
47   # network, which are laid out below.
48   addressing:
49     # The iDrac/iLo IP of the node. It's important that this match up with the
50     # node's hostname above, so that the rack number and node position encoded
51     # in the hostname are accurate and matching the node that IPMI operations
52     # will be performed against (for poweron, poweroff, PXE boot to wipe disk or
53     # reconfigure identity, etc - very important to get right for these reasons).
54     # These addresses should already be assigned to nodes racked and stacked in
55     # the environment; these are not addresses which MaaS assigns.
56     - network: oob
57       address: 10.23.104.12
58     # The IP of the node on the PXE network. Refer to the static IP range
59     # defined for the PXE network in networks/physical/networks.yaml. Begin allocating
60     # IPs from this network, starting with the second IP (inclusive) from the
61     # allocation range of this subnet (Genesis node will have the first IP).
62     # Ex: If the start IP for the PXE "static" network is 10.23.20.11, then
63     # genesis will have 10.23.20.11, this node will have 10.23.20.12, and
64     # so on with incrementing IP addresses with each additional node.
65     - network: pxe
66       address: 10.23.20.12
67     # Genesis node gets first IP, all other nodes increment IPs from there
68     # within the allocation range defined for the network in
69     # networks/physical/networks.yaml
70     - network: oam
71       address: 10.23.21.12
72     # Genesis node gets first IP, all other nodes increment IPs from there
73     # within the allocation range defined for the network in
74     # networks/physical/networks.yaml
75     - network: storage
76       address: 10.23.23.12
77     # Genesis node gets first IP, all other nodes increment IPs from there
78     # within the allocation range defined for the network in
79     # networks/physical/networks.yaml
80     - network: overlay
81       address: 10.23.24.12
82     # Genesis node gets first IP, all other nodes increment IPs from there
83     # within the allocation range defined for the network in
84     # networks/physical/networks.yaml
85     - network: calico
86       address: 10.23.22.12
87   # NEWSITE-CHANGEME: Set the host profile for the node.
88   # Note that there are different host profiles depending if this is a control
89   # plane vs data plane node, and different profiles that map to different types
90   # hardware. Control plane host profiles are further broken down into "primary"
91   # and "secondary" profiles (refer to the Notes section at the top of this doc).
92   # Select the host profile that matches up to your type of
93   # hardware and function. E.g., the r720 here refers to Dell R720 hardware, the
94   # 'cp' refers to a control plane profile, and the "primary" means it will be
95   # an active member in the ceph quorum. Refer to profiles/host/ for the list
96   # of available host profiles specific to this site (otherwise, you may find
97   # a general set of host profiles at the "type" or "global" layers/folders.
98   # If you have hardware that is not on this list of profiles, you may need to
99   # create a new host profile for that hardware.
100   # Regarding control plane vs other data plane profiles, refer to the notes at
101   # the beginning of this file. There should be one control plane node per rack,
102   # including Genesis. Note Genesis won't actually be listed in this file as a
103   # BaremetalNode, but the rest are.
104   # This is the second "primary" control plane node after Genesis.
105   host_profile: cp_r720-primary
106   metadata:
107     tags:
108       # NEWSITE-CHANGEME: See previous comment. Apply 'masters' tag for control
109       # plane node, and 'workers' tag for data plane hosts.
110       - 'masters'
111     # NEWSITE-CHANGEME: Refer to site engineering package or other supporting
112     # documentation for the specific rack name. This should be a rack name that
113     # is meaningful to data center personnel (i.e. a rack they could locate if
114     # you gave them this rack designation).
115     rack: cab23
116 ...
117 ---
118 schema: 'drydock/BaremetalNode/v1'
119 metadata:
120   schema: 'metadata/Document/v1'
121   # NEWSITE-CHANGEME: The next node's hostname
122   name: cab23-r720-13
123   layeringDefinition:
124     abstract: false
125     layer: site
126   storagePolicy: cleartext
127 data:
128   # NEWSITE-CHANGEME: The next node's IPv4 addressing
129   addressing:
130     - network: oob
131       address: 10.23.104.13
132     - network: pxe
133       address: 10.23.20.13
134     - network: oam
135       address: 10.23.21.13
136     - network: storage
137       address: 10.23.23.13
138     - network: overlay
139       address: 10.23.24.13
140     - network: calico
141       address: 10.23.22.13
142   # NEWSITE-CHANGEME: The next node's host profile
143   host_profile: cp_r720-primary
144   metadata:
145     # NEWSITE-CHANGEME: The next node's rack designation
146     rack: cab23
147     # NEWSITE-CHANGEME: The next node's role desigatnion
148     tags:
149       - 'masters'
150 ...
151 ---
152 schema: 'drydock/BaremetalNode/v1'
153 metadata:
154   schema: 'metadata/Document/v1'
155   # NEWSITE-CHANGEME: The next node's hostname
156   name: cab23-r720-14
157   layeringDefinition:
158     abstract: false
159     layer: site
160   storagePolicy: cleartext
161 data:
162   # NEWSITE-CHANGEME: The next node's IPv4 addressing
163   addressing:
164     - network: oob
165       address: 10.23.104.14
166     - network: pxe
167       address: 10.23.20.14
168     - network: oam
169       address: 10.23.21.14
170     - network: storage
171       address: 10.23.23.14
172     - network: overlay
173       address: 10.23.24.14
174     - network: calico
175       address: 10.23.22.14
176   # NEWSITE-CHANGEME: The next node's host profile
177   # This is the third "primary" control plane profile after genesis
178   host_profile: cp_r740-secondary
179   metadata:
180     # NEWSITE-CHANGEME: The next node's rack designation
181     rack: cab23
182     # NEWSITE-CHANGEME: The next node's role desigatnion
183     tags:
184       - 'masters'
185 ...
186 ---
187 schema: 'drydock/BaremetalNode/v1'
188 metadata:
189   schema: 'metadata/Document/v1'
190   # NEWSITE-CHANGEME: The next node's hostname
191   name: cab23-r720-17
192   layeringDefinition:
193     abstract: false
194     layer: site
195   storagePolicy: cleartext
196 data:
197   # NEWSITE-CHANGEME: The next node's IPv4 addressing
198   addressing:
199     - network: oob
200       address: 10.23.104.17
201     - network: pxe
202       address: 10.23.20.17
203     - network: oam
204       address: 10.23.21.17
205     - network: storage
206       address: 10.23.23.17
207     - network: overlay
208       address: 10.23.24.17
209     - network: calico
210       address: 10.23.22.17
211   # NEWSITE-CHANGEME: The next node's host profile
212   # This is the one and only appearance of the "secondary" control plane profile
213   host_profile: dp_r720
214   metadata:
215     # NEWSITE-CHANGEME: The next node's rack designation
216     rack: cab23
217     # NEWSITE-CHANGEME: The next node's role desigatnion
218     tags:
219       - 'workers'
220 ...
221 ---
222 schema: 'drydock/BaremetalNode/v1'
223 metadata:
224   schema: 'metadata/Document/v1'
225   # NEWSITE-CHANGEME: The next node's hostname
226   name: cab23-r720-19
227   layeringDefinition:
228     abstract: false
229     layer: site
230   storagePolicy: cleartext
231 data:
232   # NEWSITE-CHANGEME: The next node's IPv4 addressing
233   addressing:
234     - network: oob
235       address: 10.23.104.19
236     - network: pxe
237       address: 10.23.20.19
238     - network: oam
239       address: 10.23.21.19
240     - network: storage
241       address: 10.23.23.19
242     - network: overlay
243       address: 10.23.24.19
244     - network: calico
245       address: 10.23.22.19
246   # NEWSITE-CHANGEME: The next node's host profile
247   host_profile: dp_r720
248   metadata:
249     # NEWSITE-CHANGEME: The next node's rack designation
250     rack: cab23
251     # NEWSITE-CHANGEME: The next node's role desigatnion
252     tags:
253       - 'workers'
254 ...