summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-10-16 07:54:56 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-10-16 23:43:55 -0500
commitf1dfc0776d32dea2a2fe7e2cb2b15b1836a6b666 (patch)
treeb75bd8543a4ba5cc7919c43588b2522201c88c90 /ci/config_tpl/juju2/bundle_tpl/ceph.yaml
parent498d228be6d2bb1f68b5d63813e01ecd68b315cd (diff)
cmodfiied to add juju 2.0 support.
Change-Id: I3981f796cfb9ceb9f32522f4fed831d66e389c48 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/ceph.yaml')
-rw-r--r--ci/config_tpl/juju2/bundle_tpl/ceph.yaml77
1 files changed, 77 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
new file mode 100644
index 00000000..f700594b
--- /dev/null
+++ b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
@@ -0,0 +1,77 @@
+{% if opnfv.storage_dict.ceph is defined %}
+ ceph:
+ charm: "./{{ ubuntu.release }}/ceph"
+ num_units: {{ unit_ceph_qty() }}
+ options:
+ monitor-count: {{ unit_ceph_qty() }}
+ fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
+ monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
+{% if os.network.ipv6 %}
+ prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
+{% if opnfv.spaces_dict.storage is defined %}
+ #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
+{% endif %}
+ to:
+{% if os.hyperconverged %}
+{% for unit_id in to_select(unit_ceph_qty()) %}
+ - "lxd:nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+{% if os.ha.mode == 'ha' %}
+{% for unit_id in range(0, 3) %}
+ - "lxd:nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+ - "lxd:nodes/0"
+ - "lxd:nodes/0"
+ - "lxd:nodes/0"
+{% endif %}
+{% endif %}
+ ceph-osd:
+ charm: "./{{ ubuntu.release }}/ceph-osd"
+{% if os.hyperconverged %}
+ num_units: {{ opnfv.units }}
+{% else %}
+ num_units: 3
+{% endif %}
+ options:
+ osd-devices: {{ opnfv.storage_dict.ceph.disk }}
+ osd-reformat: 'yes'
+{% if os.network.ipv6 %}
+ prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
+ to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, opnfv.units) %}
+ - "nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+{% if os.ha.mode == 'ha' %}
+{% for unit_id in range(0, 3) %}
+ - "nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+ - "nodes/0"
+ - "nodes-compute/0"
+ - "nodes-compute/1"
+{% endif %}
+{% endif %}
+ ceph-radosgw:
+ charm: "./{{ ubuntu.release }}/ceph-radosgw"
+ num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
+ options:
+ region: {{ os.region }}
+ use-embedded-webserver: true
+ operator-roles: "Member,admin"
+{% if os.network.ipv6 %}
+ prefer-ipv6: {{ os.network.ipv6 }}
+{% endif %}
+{% if opnfv.storage_dict.ceph is defined %}
+ ceph-osd-replication-count: {{ unit_ceph_qty() }}
+{% endif %}
+ to:
+{% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
+ - "lxd:nodes/{{ unit_id }}"
+{% endfor %}
+{% endif %}