diff --git a/templates/icehouse/cinder.conf b/templates/icehouse/cinder.conf new file mode 100644 index 00000000..17c95687 --- /dev/null +++ b/templates/icehouse/cinder.conf @@ -0,0 +1,66 @@ +############################################################################### +# [ WARNING ] +# cinder configuration file maintained by Juju +# local changes may be overwritten. +############################################################################### +[DEFAULT] +rootwrap_config = /etc/cinder/rootwrap.conf +api_paste_confg = /etc/cinder/api-paste.ini +iscsi_helper = tgtadm +volume_name_template = volume-%s +volume_group = cinder-volumes +verbose = True +use_syslog = {{ use_syslog }} +auth_strategy = keystone +state_path = /var/lib/cinder +lock_path = /var/lock/cinder +volumes_dir = /var/lib/cinder/volumes + +{% if rabbitmq_host or rabbitmq_hosts -%} +notification_driver = cinder.openstack.common.notifier.rpc_notifier +control_exchange = cinder +rabbit_userid = {{ rabbitmq_user }} +rabbit_password = {{ rabbitmq_password }} +rabbit_virtual_host = {{ rabbitmq_virtual_host }} +{% if rabbitmq_hosts -%} +rabbit_hosts = {{ rabbitmq_hosts }} +{% if rabbitmq_ha_queues -%} +rabbit_ha_queues = true +rabbit_durable_queues = false +{% endif %} +{% else %} +rabbit_host = {{ rabbitmq_host }} +{% endif -%} +{% endif -%} + +{% if volume_driver -%} +volume_driver = {{ volume_driver }} +{% endif -%} + +{% if rbd_pool -%} +rbd_pool = {{ rbd_pool }} +host = {{ host }} +rbd_user = {{ rbd_user }} +{% endif -%} + +{% if osapi_volume_listen_port -%} +osapi_volume_listen_port = {{ osapi_volume_listen_port }} +{% endif -%} + +{% if glance_api_servers -%} +glance_api_servers = {{ glance_api_servers }} +{% endif -%} +{% if glance_api_version -%} +glance_api_version = {{ glance_api_version }} +{% endif -%} + +{% if user_config_flags -%} +{% for key, value in user_config_flags.iteritems() -%} +{{ key }} = {{ value }} +{% endfor -%} +{% endif -%} + +{% if database_host -%} +[database] +connection = mysql://{{ database_user }}:{{ database_password }}@{{ database_host }}/{{ database }} +{% endif -%}