summaryrefslogtreecommitdiffstats
path: root/ci/bundle_tpl/ceph.yaml
diff options
context:
space:
mode:
authorDavid Blaisonneau <david.blaisonneau@orange.com>2016-06-30 18:43:58 +0200
committerDavid Blaisonneau <david.blaisonneau@orange.com>2016-06-30 18:44:23 +0200
commit8cc46e65c20745e241b68b3d960fc3c96d64b970 (patch)
tree04f110498124cab3108d4992dc465146102e21ed /ci/bundle_tpl/ceph.yaml
parent498d246c5b7398627d929cb50274eb55cba930cf (diff)
[JOID] generate bundle using jinja templates
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
Diffstat (limited to 'ci/bundle_tpl/ceph.yaml')
-rw-r--r--ci/bundle_tpl/ceph.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/ci/bundle_tpl/ceph.yaml b/ci/bundle_tpl/ceph.yaml
new file mode 100644
index 00000000..725ac705
--- /dev/null
+++ b/ci/bundle_tpl/ceph.yaml
@@ -0,0 +1,40 @@
+{% if opnfv.storage_dict.ceph is defined %}
+ ceph:
+ charm: "local:{{ ubuntu.release }}/ceph"
+ num_units: {{ unit_qty() }}
+ options:
+ monitor-count: {{ unit_qty() }}
+ fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
+ monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
+ osd-reformat: {{ opnfv.storage_dict.ceph.reformat }}
+{% if opnfv.spaces_dict.storage is defined %}
+ ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
+{% endif %}
+# ceph-public-network: 192.168.0.0/24
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ ceph-osd:
+ charm: "local:{{ ubuntu.release }}/ceph-osd"
+ num_units: {{ unit_qty() }}
+ options:
+ osd-devices: {{ opnfv.storage_dict.ceph.disk }}
+ osd-reformat: 'yes'
+ to:
+{% for unit_id in to_select() %}
+ - "nodes={{ unit_id }}"
+{% endfor %}
+ ceph-radosgw:
+ charm: "local:{{ ubuntu.release }}/ceph-radosgw"
+ num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
+ options:
+ use-embedded-webserver: true
+ operator-roles: "Member,admin"
+ to:
+{% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ cinder-ceph:
+ charm: "local:{{ ubuntu.release }}/cinder-ceph"
+{% endif %}