Skip to content

Commit beab4ef

Browse files
committed
[WIP] Add option to create second cinder backend in hci
1 parent 52d01a3 commit beab4ef

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

hooks/playbooks/templates/config_ceph_backends.yaml.j2

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,28 @@ patches:
6565
backend_host=hostgroup
6666
rbd_secret_uuid={{ cifmw_ceph_fsid }}
6767

68+
{% if cifmw_hci_second_backend | default('false') | bool -%}
69+
- op: add
70+
path: /spec/cinder/template/cinderVolumes/volume2
71+
value:
72+
customServiceConfig: |
73+
[DEFAULT]
74+
enabled_backends=ceph2
75+
[ceph2]
76+
volume_backend_name=ceph
77+
volume_driver=cinder.volume.drivers.rbd.RBDDriver
78+
rbd_ceph_conf=/etc/ceph/ceph.conf
79+
rbd_user=openstack
80+
rbd_pool=volumes
81+
rbd_flatten_volume_from_snapshot=False
82+
report_discard_supported=True
83+
backend_host=hostgroup
84+
rbd_secret_uuid={{ cifmw_ceph_fsid }}
85+
networkAttachments:
86+
- storage
87+
replicas: 1
88+
{% endif %}
89+
6890
- op: replace
6991
path: /spec/glance/template/glanceAPIs/default/replicas
7092
value: {{ cifmw_services_glance_apis_replicas | default(1) }}

0 commit comments

Comments
 (0)