updated templates and scripts for Airship 1.3
[yaml_builds.git] / site_type / sriov-a13 / templates / software / charts / ucp / ceph / ceph-osd.j2
1 ---
2 # The purpose of this file is to define environment-specific parameters for
3 # ceph-osd
4 schema: armada/Chart/v1
5 metadata:
6   schema: metadata/Document/v1
7   name: ucp-ceph-osd
8   layeringDefinition:
9     abstract: false
10     layer: site
11     parentSelector:
12       name: ucp-ceph-osd-global
13     actions:
14       - method: replace
15         path: .values.conf.storage.osd
16       - method: merge
17         path: .
18   storagePolicy: cleartext
19 data:
20   values:
21     conf:
22       storage:
23         failure_domain: "rack"
24         # NEWSITE-CHANGEME: The OSD count and configuration here should not need
25         # to change if your HW matches the HW used in this environment.
26         # Otherwise you may need to add or subtract disks to this list.
27         # no need to create below jounal partitons as ceph charts will create them
28         # default size of  journal partions is 10GB
29         osd:
30 {% for osd in yaml.storage.osds %}
31           - data:
32               type: block-logical
33               location: {{osd.data}}
34             journal:
35               type: block-logical
36               location: {{osd.journal}}
37 {% endfor %}
38       overrides:
39         ceph_osd:
40           hosts:
41             - name: {{yaml.genesis.name}}
42               conf:
43                 storage:
44                   failure_domain_name: "{{yaml.genesis.name}}_rack"
45 {% for server in yaml.masters %}
46             - name: {{server.name}}
47               conf:
48                 storage:
49                   failure_domain_name: "{{server.name}}_rack"
50 {% endfor %}
51 ...