67b04d82a628cc3cdecc78cf30a359e58c176253
[yaml_builds.git] / site / hpgen10 / profiles / host / compute-r01.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 schema: drydock/HostProfile/v1
19 metadata:
20   schema: metadata/Document/v1
21   name: ComputePlane
22   storagePolicy: cleartext
23   labels:
24     hosttype: ComputePlane
25   layeringDefinition:
26     abstract: false
27     layer: site
28   substitutions:
29     - dest:
30         path: .oob.credential
31       src:
32         schema: deckhand/Passphrase/v1
33         name: ipmi_admin_password
34         path: .
35 data:
36   hardware_profile: DELL_HP_Generic
37   oob:
38     type: 'ipmi'
39     network: 'oob'
40     account: 'Administrator'
41   primary_network: 'oam'
42   hardware_profile: DELL_HP_Generic
43   interfaces:
44     pxe:
45       device_link: pxe
46       slaves:
47         - 'eno1'
48       networks:
49         - 'pxe'
50     bond0:
51       device_link: bond0
52       slaves:
53         - 'ens3f0'
54         - 'ens3f1'
55       networks:
56         - 'oam'
57         - 'storage'
58         - 'overlay'
59         - 'calico'
60     p1p1:
61       slaves:
62         - 'sriov_nic01'
63       sriov:
64         vf_count: 32 # Currently ignored
65         trustedmode: false
66     p3p2:
67       slaves:
68         - 'sriov_nic02'
69       sriov:
70         vf_count: 32 # Currently ignored
71         trustedmode: false
72   storage:
73     physical_devices:
74       sdj:
75         labels:
76           bootdrive: 'true'
77         partitions:
78           - name: 'root'
79             size: '20g'
80             filesystem:
81               mountpoint: '/'
82               fstype: 'ext4'
83               mount_options: 'defaults'
84           - name: 'boot'
85             size: '1g'
86             filesystem:
87               mountpoint: '/boot'
88               fstype: 'ext4'
89               mount_options: 'defaults'
90           - name: 'var'
91             size: '>300g'
92             filesystem:
93               mountpoint: '/var'
94               fstype: 'ext4'
95               mount_options: 'defaults'
96       sdk:
97         partitions:
98           - name: 'nova'
99             size: '99%'
100             filesystem:
101               mountpoint: '/var/lib/nova'
102               fstype: 'ext4'
103               mount_options: 'defaults'
104   platform:
105     image: 'xenial'
106     kernel: 'hwe-16.04'
107     kernel_params:
108       console: 'ttyS1,115200n8'
109       intel_iommu: 'on'
110       iommu: 'pt'
111       amd_iommu: 'on'
112       transparent_hugepage: 'never'
113       hugepagesz: 'hardwareprofile:hugepages.dpdk.size'
114       hugepages: 'hardwareprofile:hugepages.dpdk.count'
115       default_hugepagesz: 'hardwareprofile:hugepages.dpdk.size'
116       isolcpus: 'hardwareprofile:cpuset.kvm'
117   metadata:
118     owner_data:
119       openstack-nova-compute: enabled
120       openvswitch: enabled
121       openstack-libvirt: kernel
122       sriov: enabled
123       beta.kubernetes.io/fluentd-ds-ready: 'true'
124 ...