diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 494790e6bc..64c9370ece 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -378,6 +378,9 @@ gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}" ################################# cinder_backend_ceph: "{{ enable_ceph }}" cinder_volume_group: "cinder-volumes" +cinder_backup_driver: "nfs" +cinder_backup_share: "" +cinder_backup_mount_options_nfs: "" ####################### # Cloudkitty options diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2 index f940585e10..6c888cec6c 100644 --- a/ansible/roles/cinder/templates/cinder.conf.j2 +++ b/ansible/roles/cinder/templates/cinder.conf.j2 @@ -32,6 +32,19 @@ backup_ceph_pool = {{ ceph_cinder_backup_pool_name }} backup_ceph_stripe_unit = 0 backup_ceph_stripe_count = 0 restore_discard_excess_bytes = true +{% elif cinder_backup_driver == "nfs"%} +backup_driver = cinder.backup.drivers.nfs +backup_mount_options = {{ cinder_backup_mount_options_nfs }} +backup_mount_point_base = /var/lib/cinder/backup +backup_share = {{ cinder_backup_share }} +backup_file_size = 327680000 +{% elif cinder_backup_driver == "swift"%} +backup_driver = cinder.backup.drivers.swift +backup_swift_url = http://{{ kolla_internal_vip_address }}:{{ swift_proxy_server_port }}/v1/AUTH_ +backup_swift_auth = per_user +backup_swift_auth_version = 1 +backup_swift_user = +backup_swift_key = {% endif %} osapi_volume_listen = {{ api_interface_address }} diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml index 2e13289802..4e73ac7016 100644 --- a/etc/kolla/globals.yml +++ b/etc/kolla/globals.yml @@ -213,9 +213,10 @@ kolla_internal_vip_address: "10.10.10.254" ################################# # Enable / disable Cinder backends #cinder_backend_ceph: "{{ enable_ceph }}" - #cinder_volume_group: "cinder-volumes" - +#cinder_backup_driver: "nfs" +#cinder_backup_share: "" +#cinder_backup_mount_options_nfs: "" ######################### # Nova - Compute Options