summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-08-15 13:28:22 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2017-08-15 14:02:27 -0500
commite9a56336b664f4575194c2317aa747652a2ecb6f (patch)
treeb05ae1c0cd57c9a8d6fcd33f6ee947229895f216 /ci/config_tpl/juju2/bundle_tpl/ceph.yaml
parentdc5adfcfe2f4c2534ad512f8d3b811d86a473089 (diff)
modified templates and added variable to easlity understand the
templates and added support for multiple networks. Change-Id: I1074c722c9007bd12c711dbfc58afa1a098d2a17 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.yaml53
1 files changed, 16 insertions, 37 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
index 5dd544ed..0d4866d7 100644
--- a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
+++ b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml
@@ -4,20 +4,14 @@
num_units: {{ unit_ceph_qty() }}
{% if os.service.bindings %}
bindings:
- "": internal-api
-{% if opnfv.spaces_dict.storage is defined %}
- cluster: storage-cluster
-{% endif %}
+ "": *oam-space
+ public: *ceph-public-space
{% endif %}
options:
monitor-count: {{ unit_ceph_qty() }}
fsid: ecbb8960-0e21-11e2-b495-83a88f44db01
monitor-secret: AQD1P2xQiKglDhAA4NGUF5j38Mhq56qwz+45wg==
-{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
- source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
-{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
- source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
-{% endif %}
+ source: *openstack-origin
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
@@ -50,23 +44,15 @@
{% endif %}
{% if os.service.bindings %}
bindings:
- "": internal-api
-{% if opnfv.spaces_dict.storage is defined %}
- cluster: storage-cluster
-{% endif %}
+ "": *oam-space
+ public: *ceph-public-space
+ cluster: *ceph-cluster-space
{% endif %}
options:
-{% if os.lxd %}
- osd-devices: /srv/ceph-osd
-{% else %}
- osd-devices: {{ opnfv.storage_dict.ceph.disk }}
-{% endif %}
+ osd-devices: *osd-devices
+ osd-journal: *osd-journal
osd-reformat: 'yes'
-{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
- source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
-{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
- source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
-{% endif %}
+ source: *openstack-origin
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
@@ -97,23 +83,16 @@
num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
{% if os.service.bindings %}
bindings:
- "": internal-api
- internal: internal-api
- admin: internal-api
-{% if opnfv.spaces_dict.public is defined %}
- public: public-api
-{% else %}
- public: internal-api
-{% endif %}
+ "": *oam-space
+ public: *public-space
+ admin: *admin-space
+ internal: *internal-space
+ mon: *ceph-public-space
{% endif %}
options:
- region: {{ os.region }}
+ region: *openstack-region
operator-roles: "Member,admin"
-{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
- source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
-{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
- source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
-{% endif %}
+ source: *openstack-origin
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}