aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-controller/templates/cinder.conf
blob: 8b03565392812869492fe2406175a715c5c270ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{% set memcached_servers = [] %}
{% for host in haproxy_hosts.values() %}
{% set _ = memcached_servers.append('%s:11211'% host) %}
{% endfor %}
{% set memcached_servers = memcached_servers|join(',') %}
{% if ansible_processor_vcpus > 5 %}
{%  set api_workers = ansible_processor_vcpus // 5 %}
{% else %}
{%  set api_workers = 1 %}
{% endif %}

[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 = storage-volumes
verbose = {{ VERBOSE }}
debug = {{ DEBUG }}
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
notification_driver = cinder.openstack.common.notifier.rpc_notifier
volumes_dir = /var/lib/cinder/volumes
transport_url = rabbit://{{ RABBIT_USER }}:{{ RABBIT_PASS }}@{{ rabbit_host }}
log_file = /var/log/cinder/cinder.log

control_exchange = cinder
rpc_backend = rabbit
my_ip = {{ storage_controller_host }}

glance_host = {{ internal_vip.ip }}
glance_port = 9292
api_rate_limit = False
storage_availability_zone = nova

quota_volumes = 10
quota_gigabytes = 1000
quota_driver = cinder.quota.DbQuotaDriver

osapi_volume_listen = {{ storage_controller_host }}
osapi_volume_listen_port = 8776
osapi_volume_workers = {{ api_workers }}

db_backend = sqlalchemy
volume_name_template = volume-%s
snapshot_name_template = snapshot-%s

max_gigabytes = 10000

volume_clear = zero
volume_clear_size = 10

iscsi_ip_address = {{ storage_controller_host }}
iscsi_port = 3260
iscsi_helper = tgtadm

volumes_dir = /var/lib/cinder/volumes
volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver

[database]
connection = mysql://cinder:{{ CINDER_DBPASS }}@{{ db_host }}/cinder
idle_timeout = 30

[keystone_authtoken]
auth_uri = http://{{ internal_vip.ip }}:5000
auth_url = http://{{ internal_vip.ip }}:35357
memcached_servers = {{ memcached_servers }}
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = {{ CINDER_PASS }}

identity_uri = http://{{ internal_vip.ip }}:35357
admin_tenant_name = service
admin_user = cinder
admin_password = {{ CINDER_PASS }}

[keymgr]
encryption_auth_url=http://{{ internal_vip.ip }}:5000/v3

[oslo_messaging_rabbit]
rabbit_host = {{ rabbit_host }}
rabbit_port = 5672
rabbit_userid = {{ RABBIT_USER }}
rabbit_password = {{ RABBIT_PASS }}

[oslo_concurrency]
lock_path = /var/lib/cinder/tmp