0008f74ca56afea890a438ffe5e44db7e0f339c9
[yaml_builds.git] / site_type / ovsdpdk-a13 / templates / profiles / host / dp_r720.j2
1 ---
2 # The data plane host profile for Airship for DELL R720s, and should
3 # not need to be altered if you are using matching HW. The host profile is setup
4 # for cpu isolation (for nova pinning), hugepages, and sr-iov.
5 schema: drydock/HostProfile/v1
6 metadata:
7   schema: metadata/Document/v1
8   name: dp_r720
9   storagePolicy: cleartext
10   layeringDefinition:
11     abstract: false
12     layer: site
13     parentSelector:
14       hosttype: dp-global
15     actions:
16       - method: replace
17         path: .interfaces
18       - method: replace
19         path: .storage
20       - method: merge
21         path: .
22 data:
23   hardware_profile: dell_r720
24
25   primary_network: oam
26   interfaces:
27     pxe:
28       device_link: pxe
29       slaves:
30         - pxe_nic01
31       networks:
32         - pxe
33     bond0:
34       device_link: data
35       slaves:
36         - data_nic01
37         - data_nic02
38       networks:
39         - oam
40         - storage
41         - overlay
42         - calico
43     dpdk:
44       device_link: dpdk
45       slaves:
46         - dpdk_nic01
47       networks:
48         - dpdk
49   storage:
50     physical_devices:
51 {% for disk in yaml.disks %}
52       {{disk.name}}:
53       {% if 'labels' in disk %}
54         labels:
55         {% for key, value in disk.labels.items() %}
56           {{key}}: '{{value}}'
57         {% endfor %}
58       {% endif %}
59         partitions:
60        {% for p in disk.partitions %}
61           - name: '{{p.name}}'
62             size: '{{p.size}}'
63             {% if 'bootable' in p %}
64             bootable: {{p.bootable}}
65             {% endif %}
66             filesystem:
67               mountpoint: '{{p.mountpoint}}'
68               fstype: 'ext4'
69               mount_options: 'defaults'
70       {% endfor %}
71 {% endfor %}
72
73   platform:
74     kernel: 'hwe-16.04'
75     kernel_params:
76 {% if 'platform' in yaml and 'kernel_params' in yaml.platform %}
77 {% for key, value in yaml.platform.kernel_params.items() %}
78       {{key}}: '{{value}}'
79 {% endfor %}
80 {% else %}
81       console: 'ttyS1,115200n8'
82       intel_iommu: 'on'
83       iommu: 'pt'
84       amd_iommu: 'on'
85       transparent_hugepage: 'never'
86 {% endif %}
87 {% if 'platform' in yaml and 'vcpu_pin_set' in yaml.platform %}
88       isolcpus: '{{yaml.platform.vcpu_pin_set}}'
89 {% endif %}
90 ...