~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/config_tpl/juju2/bundlek8_tpl/ceph.yaml

  • Committer: Narinder Gupta
  • Date: 2017-11-01 03:07:28 UTC
  • Revision ID: git-v1:7f23c5d78d7fac02849438d5d45f43e0f42217c4
adding ceph support for Kubernetes.

Change-Id: If7cf0add214da153daf39967fac15ba027cc3885
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
    ceph-mon:
 
3
      charm: "./{{ ubuntu.release }}/ceph-mon"
 
4
      num_units: {{ unit_ceph_qty() }}
 
5
{% if os.service.bindings %}
 
6
      bindings:
 
7
        "": *oam-space
 
8
        public: *ceph-public-space
 
9
        cluster: *ceph-cluster-space
 
10
{% endif %}
 
11
      options:
 
12
        expected-osd-count: {{ unit_ceph_qty() }}
 
13
      to:
 
14
{% for unit_id in to_select(unit_ceph_qty()) %}
 
15
        - "lxd:nodes/{{ unit_id }}"
 
16
{% endfor %}
 
17
 
 
18
    ceph-osd:
 
19
      charm: "./{{ ubuntu.release }}/ceph-osd"
 
20
      num_units: {{ opnfv.units }}
 
21
{% if os.service.bindings %}
 
22
      bindings:
 
23
        "": *oam-space
 
24
        public: *ceph-public-space
 
25
        cluster: *ceph-cluster-space
 
26
{% endif %}
 
27
      options:
 
28
        osd-devices: *osd-devices
 
29
        osd-journal: *osd-journal
 
30
        osd-reformat: 'yes'
 
31
      to:
 
32
 {% for unit_id in range(0, opnfv.units) %}
 
33
         - "nodes/{{ unit_id }}"
 
34
 {% endfor %}
 
35