diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-08-06 00:03:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-06 00:03:42 +0000 |
commit | 0f81e81552bdf0053fc0303c53dff455c17d56a6 (patch) | |
tree | 53b0f53d58692fd54a55b9674c4719d61515e987 /ci/config_tpl/bundle_tpl/ceph.yaml | |
parent | a56fce4f323d8a6a232f0205e03c6f601b7eefb5 (diff) | |
parent | 5cc5559348a8a18a41cfd25cce446955d63afb83 (diff) |
Merge "New scripts for configs generation, based on jinja2"
Diffstat (limited to 'ci/config_tpl/bundle_tpl/ceph.yaml')
-rw-r--r-- | ci/config_tpl/bundle_tpl/ceph.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ci/config_tpl/bundle_tpl/ceph.yaml b/ci/config_tpl/bundle_tpl/ceph.yaml new file mode 100644 index 00000000..82cfd283 --- /dev/null +++ b/ci/config_tpl/bundle_tpl/ceph.yaml @@ -0,0 +1,36 @@ +{% if opnfv.storage_dict.ceph is defined %} + ceph: + charm: "local:{{ 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 opnfv.spaces_dict.storage is defined %} + #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }} +{% endif %} + to: +{% for unit_id in to_select(unit_ceph_qty()) %} + - "lxc:nodes={{ unit_id }}" +{% endfor %} + ceph-osd: + charm: "local:{{ ubuntu.release }}/ceph-osd" + num_units: {{ opnfv.units }} + options: + osd-devices: {{ opnfv.storage_dict.ceph.disk }} + osd-reformat: 'yes' + to: +{% for unit_id in range(0, opnfv.units) %} + - "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 %} +{% endif %} |