X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=site_type%2Fovsdpdk-a13%2Ftemplates%2Fsoftware%2Fcharts%2Fucp%2Fceph%2Fceph-osd.j2;fp=site_type%2Fovsdpdk-a13%2Ftemplates%2Fsoftware%2Fcharts%2Fucp%2Fceph%2Fceph-osd.j2;h=02a614337fc70d2993e980585029a57402bd5ad4;hb=4ef0e0a733df21b39be32c773be73c688d4466af;hp=0000000000000000000000000000000000000000;hpb=267230d53447c489d10905f260f503f2e71d414f;p=yaml_builds.git diff --git a/site_type/ovsdpdk-a13/templates/software/charts/ucp/ceph/ceph-osd.j2 b/site_type/ovsdpdk-a13/templates/software/charts/ucp/ceph/ceph-osd.j2 new file mode 100644 index 0000000..02a6143 --- /dev/null +++ b/site_type/ovsdpdk-a13/templates/software/charts/ucp/ceph/ceph-osd.j2 @@ -0,0 +1,51 @@ +--- +# The purpose of this file is to define environment-specific parameters for +# ceph-osd +schema: armada/Chart/v1 +metadata: + schema: metadata/Document/v1 + name: ucp-ceph-osd + layeringDefinition: + abstract: false + layer: site + parentSelector: + name: ucp-ceph-osd-global + actions: + - method: replace + path: .values.conf.storage.osd + - method: merge + path: . + storagePolicy: cleartext +data: + values: + conf: + storage: + failure_domain: "rack" + # NEWSITE-CHANGEME: The OSD count and configuration here should not need + # to change if your HW matches the HW used in this environment. + # Otherwise you may need to add or subtract disks to this list. + # no need to create below jounal partitons as ceph charts will create them + # default size of journal partions is 10GB + osd: +{% for osd in yaml.storage.osds %} + - data: + type: block-logical + location: {{osd.data}} + journal: + type: block-logical + location: {{osd.journal}} +{% endfor %} + overrides: + ceph_osd: + hosts: + - name: {{yaml.genesis.name}} + conf: + storage: + failure_domain_name: "{{yaml.genesis.name}}_rack" +{% for server in yaml.masters %} + - name: {{server.name}} + conf: + storage: + failure_domain_name: "{{server.name}}_rack" +{% endfor %} +...