summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-osa/files
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-08-15 08:59:08 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-15 08:59:08 +0000
commit5f2c78057f1a15ca90c5c25025f713a56a48dfc6 (patch)
treecd17d838ddfbeafe88a5fbb7ac9eab751e114559 /deploy/adapters/ansible/roles/config-osa/files
parent7afdbb1351729dffa7d4bba7a2c505ef707d10c9 (diff)
parent3fc9da6b7dd0e3dc2d1afd7b2dfad4f4189232d4 (diff)
Merge "Make the storage use ceph"
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa/files')
-rw-r--r--deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml b/deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml
new file mode 100644
index 00000000..9d5f13a9
--- /dev/null
+++ b/deploy/adapters/ansible/roles/config-osa/files/user_ceph.yml
@@ -0,0 +1,16 @@
+---
+# The OSA ceph_client role does not support loading IPs from an inventory group,
+# so we have to feed it a list of IPs
+# yamllint disable rule:line-length
+ceph_mons: "[ {% for host in groups[mon_group_name] %}'{{ hostvars[host]['ansible_host'] }}'{% if not loop.last %},{% endif %}{% endfor %} ]"
+# yamllint enable rule:line-length
+cinder_backends:
+ "RBD":
+ volume_driver: cinder.volume.drivers.rbd.RBDDriver
+ rbd_pool: volumes
+ rbd_ceph_conf: /etc/ceph/ceph.conf
+ rbd_store_chunk_size: 8
+ volume_backend_name: rbddriver
+ rbd_user: cinder
+ rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
+ report_discard_supported: true