update sr-iov templates to openstack rocky
[yaml_builds.git] / site_type / sriov-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 {% if 'dpdk' in yaml %}
44     dpdk:
45       device_link: dpdk
46       slaves:
47         - dpdk_nic01
48       networks:
49         - dpdk
50 {% endif %}
51   storage:
52     physical_devices:
53 {% for disk in yaml.disks %}
54       {{disk.name}}:
55       {% if 'labels' in disk %}
56         labels:
57         {% for key, value in disk.labels.items() %}
58           {{key}}: '{{value}}'
59         {% endfor %}
60       {% endif %}
61         partitions:
62        {% for p in disk.partitions %}
63           - name: '{{p.name}}'
64             size: '{{p.size}}'
65             {% if 'bootable' in p %}
66             bootable: {{p.bootable}}
67             {% endif %}
68             filesystem:
69               mountpoint: '{{p.mountpoint}}'
70               fstype: 'ext4'
71               mount_options: 'defaults'
72       {% endfor %}
73 {% endfor %}
74
75   platform:
76     kernel: 'hwe-16.04'
77     kernel_params:
78 {% if 'platform' in yaml and 'kernel_params' in yaml.platform %}
79 {% for key, value in yaml.platform.kernel_params.items() %}
80       {{key}}: '{{value}}'
81 {% endfor %}
82 {% else %}
83       console: 'ttyS1,115200n8'
84       intel_iommu: 'on'
85       iommu: 'pt'
86       amd_iommu: 'on'
87       transparent_hugepage: 'never'
88 {% endif %}
89 {% if 'platform' in yaml and 'vcpu_pin_set' in yaml.platform %}
90       isolcpus: '{{yaml.platform.vcpu_pin_set}}'
91 {% endif %}
92 ...