Change seed code version to 0.0.1
[yaml_builds.git] / templates / aic-clcp-manifests / baremetal / rack.j2
1 ##############################################################################
2 # Copyright © 2018 AT&T Intellectual Property. All rights reserved.          #
3 #                                                                            #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
5 # not use this file except in compliance with the License.                   #
6 #                                                                            #
7 # You may obtain a copy of the License at                                    #
8 #       http://www.apache.org/licenses/LICENSE-2.0                           #
9 #                                                                            #
10 # Unless required by applicable law or agreed to in writing, software        #
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
13 # See the License for the specific language governing permissions and        #
14 # limitations under the License.                                             #
15 ##############################################################################
16
17 {% for server in yaml.servers %}
18 ---
19 schema: 'drydock/BaremetalNode/v1'
20 metadata:
21   schema: 'metadata/Document/v1'
22   name: {{server.name}}
23   layeringDefinition:
24     abstract: false
25     layer: site
26   storagePolicy: cleartext
27 data:
28   host_profile: MyControlPlane_HP 
29   # the hostname for a server, could be used in multiple DNS domains to
30   # represent different interfaces
31   addressing:
32       # Which network the address applies to. If a network appears in addressing
33       # that isn't assigned to an interface, design validation will fail
34     - network: pxe
35       # The address assigned. Either a explicit IPv4 or IPv6 address
36       # or dhcp or slaac
37       address: {{server.pxe}}
38     - network: oam
39       address: {{server.host}}
40     - network: ksn
41       address: {{server.ksn}}
42     - network: storage
43       address: {{server.storage}}
44     - network: overlay
45       address: {{server.neutron}}
46     - network: oob
47       address: {{server.oob}}
48   metadata:
49     rack: rack01
50     tags:
51       - 'masters'
52 {% endfor %}
53 ...
54