update ceph-common to 10.2.11-0ubuntu0.16.04.2
[yaml_builds.git] / site_type / sriov-a13 / templates / profiles / host / cp_r720.j2
1 ---
2 # The primary control plane host profile for Airship for DELL R720s, and
3 # should not need to be altered if you are using matching HW. The active
4 # participants in the Ceph cluster run on this profile. Other control plane
5 # services are not affected by primary vs secondary designation.
6 schema: drydock/HostProfile/v1
7 metadata:
8   schema: metadata/Document/v1
9   name: cp_r720-primary
10   storagePolicy: cleartext
11   layeringDefinition:
12     abstract: false
13     layer: site
14     parentSelector:
15       hosttype: cp-global
16     actions:
17       - method: replace
18         path: .interfaces
19       - method: replace
20         path: .storage
21       - method: merge
22         path: .
23 data:
24   hardware_profile: dell_r720
25
26   primary_network: oam
27   interfaces:
28     pxe:
29       device_link: pxe
30       slaves:
31         - pxe_nic01
32       networks:
33         - pxe
34     bond0:
35       device_link: data
36       slaves:
37         - data_nic01
38         - data_nic02
39       networks:
40         - oam
41         - storage
42         - overlay
43         - calico
44
45   storage:
46     physical_devices:
47 {% for disk in yaml.disks %}
48       {{disk.name}}:
49       {% if 'labels' in disk %}
50         labels:
51         {% for key, value in disk.labels.items() %}
52           {{key}}: '{{value}}'
53         {% endfor %}
54       {% endif %}
55         partitions:
56        {% for p in disk.partitions %}
57           - name: '{{p.name}}'
58             size: '{{p.size}}'
59             {% if 'bootable' in p %}
60             bootable: {{p.bootable}}
61             {% endif %}
62             filesystem:
63               mountpoint: '{{p.mountpoint}}'
64               fstype: 'ext4'
65               mount_options: 'defaults'
66       {% endfor %}
67 {% endfor %}
68
69   platform:
70     kernel: 'hwe-16.04'
71     kernel_params:
72 {% if 'platform' in yaml and 'kernel_params' in yaml.platform %}
73 {% for key, value in yaml.platform.kernel_params.items() %}
74       {{key}}: '{{value}}'
75 {% endfor %}
76 {% else %}
77       console: 'ttyS1,115200n8'
78       intel_iommu: 'on'
79       iommu: 'pt'
80       amd_iommu: 'on'
81       transparent_hugepage: 'never'
82 {% endif %}
83 {% if 'platform' in yaml and 'vcpu_pin_set' in yaml.platform %}
84       isolcpus: '{{yaml.platform.vcpu_pin_set}}'
85 {% endif %}
86
87   metadata:
88     owner_data:
89       openstack-l3-agent: enabled
90 ...
91 ---
92 schema: drydock/HostProfile/v1
93 metadata:
94   schema: metadata/Document/v1
95   name: cp_r740-secondary
96   storagePolicy: cleartext
97   layeringDefinition:
98     abstract: false
99     layer: site
100     parentSelector:
101       hosttype: cp-global
102     actions:
103       - method: replace
104         path: .interfaces
105       - method: replace
106         path: .storage
107       - method: replace
108         path: .metadata.owner_data
109       - method: merge
110         path: .
111 data:
112   hardware_profile: dell_r720
113
114   primary_network: oam
115   interfaces:
116     pxe:
117       device_link: pxe
118       slaves:
119         - pxe_nic01
120       networks:
121         - pxe
122     bond0:
123       device_link: data
124       slaves:
125         - data_nic01
126         - data_nic02
127       networks:
128         - oam
129         - storage
130         - overlay
131         - calico
132
133   storage:
134     physical_devices:
135 {% for disk in yaml.disks %}
136       {{disk.name}}:
137       {% if 'labels' in disk %}
138         labels:
139         {% for key, value in disk.labels.items() %}
140           {{key}}: '{{value}}'
141         {% endfor %}
142       {% endif %}
143         partitions:
144        {% for p in disk.partitions %}
145           - name: '{{p.name}}'
146             size: '{{p.size}}'
147             {% if 'bootable' in p %}
148             bootable: {{p.bootable}}
149             {% endif %}
150             filesystem:
151               mountpoint: '{{p.mountpoint}}'
152               fstype: 'ext4'
153               mount_options: 'defaults'
154       {% endfor %}
155 {% endfor %}
156
157   platform:
158     kernel: 'hwe-16.04'
159     kernel_params:
160 {% if 'platform' in yaml and 'kernel_params' in yaml.platform %}
161 {% for key, value in yaml.platform.kernel_params.items() %}
162       {{key}}: '{{value}}'
163 {% endfor %}
164 {% else %}
165       console: 'ttyS1,115200n8'
166       intel_iommu: 'on'
167       iommu: 'pt'
168       amd_iommu: 'on'
169       transparent_hugepage: 'never'
170 {% endif %}
171 {% if 'platform' in yaml and 'vcpu_pin_set' in yaml.platform %}
172       isolcpus: '{{yaml.platform.vcpu_pin_set}}'
173 {% endif %}
174
175   metadata:
176     owner_data:
177       control-plane: enabled
178       ucp-control-plane: enabled
179       openstack-control-plane: enabled
180       openstack-heat: enabled
181       openstack-keystone: enabled
182       openstack-rabbitmq: enabled
183       openstack-dns-helper: enabled
184       openstack-mariadb: enabled
185       openstack-nova-control: enabled
186       # openstack-etcd: enabled
187       openstack-mistral: enabled
188       openstack-memcached: enabled
189       openstack-glance: enabled
190       openstack-horizon: enabled
191       openstack-cinder-control: enabled
192       openstack-cinder-volume: control
193       openstack-neutron: enabled
194       openvswitch: enabled
195       ucp-barbican: enabled
196       # ceph-mon: enabled
197       ceph-mgr: enabled
198       ceph-osd: enabled
199       ceph-mds: enabled
200       ceph-rgw: enabled
201       ucp-maas: enabled
202       kube-dns: enabled
203       tenant-ceph-control-plane: enabled
204       # tenant-ceph-mon: enabled
205       tenant-ceph-rgw: enabled
206       tenant-ceph-mgr: enabled
207       kubernetes-apiserver: enabled
208       kubernetes-controller-manager: enabled
209       # kubernetes-etcd: enabled
210       kubernetes-scheduler: enabled
211       tiller-helm: enabled
212       # kube-etcd: enabled
213       calico-policy: enabled
214       calico-node: enabled
215       # calico-etcd: enabled
216       ucp-armada: enabled
217       ucp-drydock: enabled
218       ucp-deckhand: enabled
219       ucp-shipyard: enabled
220       IAM: enabled
221       ucp-promenade: enabled
222       prometheus-server: enabled
223       prometheus-client: enabled
224       fluentd: enabled
225       influxdb: enabled
226       kibana: enabled
227       elasticsearch-client: enabled
228       elasticsearch-master: enabled
229       elasticsearch-data: enabled
230       postgresql: enabled
231       kube-ingress: enabled
232       beta.kubernetes.io/fluentd-ds-ready: 'true'
233       node-exporter: enabled
234 ...