updated templates and scripts for Airship 1.3
[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
44   storage:
45     physical_devices:
46 {% for disk in yaml.disks %}
47       {{disk.name}}:
48       {% if 'labels' in disk %}
49         labels:
50         {% for key, value in disk.labels.items() %}
51           {{key}}: '{{value}}'
52         {% endfor %}
53       {% endif %}
54         partitions:
55        {% for p in disk.partitions %}
56           - name: '{{p.name}}'
57             size: '{{p.size}}'
58             {% if 'bootable' in p %}
59             bootable: {{p.bootable}}
60             {% endif %}
61             filesystem:
62               mountpoint: '{{p.mountpoint}}'
63               fstype: 'ext4'
64               mount_options: 'defaults'
65       {% endfor %}
66 {% endfor %}
67
68   platform:
69     kernel: 'hwe-16.04'
70     kernel_params:
71 {% if 'platform' in yaml and 'kernel_params' in yaml.platform %}
72 {% for key, value in yaml.platform.kernel_params.items() %}
73       {{key}}: '{{value}}'
74 {% endfor %}
75 {% else %}
76       console: 'ttyS1,115200n8'
77       intel_iommu: 'on'
78       iommu: 'pt'
79       amd_iommu: 'on'
80       transparent_hugepage: 'never'
81 {% endif %}
82 {% if 'platform' in yaml and 'vcpu_pin_set' in yaml.platform %}
83       isolcpus: '{{yaml.platform.vcpu_pin_set}}'
84 {% endif %}
85 ...