This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
trove.conf
198 lines (169 loc) · 5.33 KB
/
trove.conf
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[DEFAULT]
{{#trove.verbose}}
# Show more verbose log output (sets INFO log level output)
verbose = {{trove.verbose}}
{{/trove.verbose}}
{{#trove.debug}}
# Show debugging output in logs (sets DEBUG log level output)
debug = {{trove.debug}}
{{/trove.debug}}
{{#haproxy}}
{{#stunnel.connect_host}}
bind_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_host = {{local-ipv4}}
{{/stunnel.connect_host}}
{{/haproxy}}
# TODO: host/port settings should be done in the same way as for other
# services, leaving it here for now to not break current behavior
{{^haproxy}}
{{^stunnel.connect_host}}
{{#trove.bind_host}}
# Address to bind the API server
bind_host = 0.0.0.0
{{/trove.bind_host}}
{{#trove.bind_port}}
# Port the bind the API server to
bind_port = {{trove.bind_port}}
{{/trove.bind_port}}
{{/stunnel.connect_host}}
{{/haproxy}}
{{#trove.api_workers}}
# Number of child processes to run
trove_api_workers = {{trove.api_workers}}
{{/trove.api_workers}}
{{#trove.default_datastore}}
default_datastore = {{trove.default_datastore}}
{{/trove.default_datastore}}
{{^trove.default_datastore}}
default_datastore = mysql
{{/trove.default_datastore}}
{{#trove.rabbit}}
# AMQP Connection info
{{#rabbit.host}}
rabbit_host = {{.}}
{{/rabbit.host}}
{{^rabbit.host}}
rabbit_hosts = {{rabbit.nodes}}
rabbit_ha_queues=true
{{/rabbit.host}}
{{#username_api}}
rabbit_userid = {{username_api}}
{{/username_api}}
{{^username_api}}
rabbit_userid = {{username}}
{{/username_api}}
{{#password_api}}
rabbit_password = {{password_api}}
{{/password_api}}
{{^password_api}}
rabbit_password = {{password}}
{{/password_api}}
rabbit_port = {{port}}
rabbit_use_ssl = {{use_ssl}}
rabbit_virtual_host = {{virtual_host}}
{{/trove.rabbit}}
# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
{{#trove.db_api}}
sql_connection = {{trove.db_api}}
{{/trove.db_api}}
{{^trove.db_api}}
sql_connection = {{trove.db}}
{{/trove.db_api}}
{{#trove.sql_idle_timeout}}
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
#
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
# before MySQL can drop the connection.
sql_idle_timeout = {{trove.sql_idle_timeout}}
{{/trove.sql_idle_timeout}}
{{#trove.api_extensions_path}}
api_extensions_path = {{trove.api_extensions_path}}
{{/trove.api_extensions_path}}
{{^trove.api_extensions_path}}
api_extensions_path = /opt/stack/trove/trove/extensions/routes
{{/trove.api_extensions_path}}
# Configuration options for talking to nova via the novaclient.
trove_auth_url = {{url.auth}}
nova_compute_url = {{url.compute}}
cinder_url = {{url.cinder}}
swift_url = {{url.swift}}
{{#trove.network_label}}
# Config option for showing the IP address that nova doles out
network_label_regex = {{trove.network_label}}
{{/trove.network_label}}
{{#trove.ip_regex}}
ip_regex = {{trove.ip_regex}}
{{/trove.ip_regex}}
{{#trove.volume_support}}
# Config options for enabling volume service
trove_volume_support = {{enabled}}
{{#block_device_mapping}}
block_device_mapping = {{block_device_mapping}}
{{/block_device_mapping}}
{{#device_path}}
device_path = {{device_path}}
{{/device_path}}
{{#mount_point}}
mount_point = {{mount_point}}
{{/mount_point}}
{{/trove.volume_support}}
# Maximum volume size for an instance
{{#trove.max_accepted_volume_size}}
max_accepted_volume_size = {{trove.max_accepted_volume_size}}
{{/trove.max_accepted_volume_size}}
{{#trove.max_instances_per_user}}
max_instances_per_user = {{trove.max_instances_per_user}}
{{/trove.max_instances_per_user}}
# Maximum volume capacity (in GB) spanning across all trove volumes per tenant
{{#trove.max_volumes_per_user}}
max_volumes_per_user = {{trove.max_volumes_per_user}}
{{/trove.max_volumes_per_user}}
{{#trove.max_backups_per_user}}
max_backups_per_user = {{trove.max_backups_per_user}}
{{/trove.max_backups_per_user}}
{{#trove.dns_support}}
# Trove DNS
trove_dns_support = {{enabled}}
dns_account_id = {{account_id}}
dns_auth_url = {{url.auth}}
dns_username = {{dns_username}}
dns_passkey = {{dns_passkey}}
dns_ttl = {{dns_ttl}}
dns_domain_name = {{dns_domain_name}}
dns_domain_id = {{dns_domain_id}}
dns_driver = {{dns_driver}}
dns_instance_entry_factory = {{dns_instance_entry_factory}}
dns_endpoint_url = {{dns_endpoint_url}}
dns_service_type = {{dns_service_type}}
{{/trove.dns_support}}
{{#trove.admin_roles}}
admin_roles = {{trove.admin_roles}}
{{/trove.admin_roles}}
{{#trove.control_exchange}}
control_exchange = {{trove.control_exchange}}
{{/trove.control_exchange}}
# ============ Logging information =============================
{{#trove.log_dir}}
log_dir = {{trove.log_dir}}
{{/trove.log_dir}}
log_file = trove-api.log
# ============ SSL configuration (and enablement) =============================
# In order to enable SSL for the trove api server, uncomment
# the cert_file and key_file - and of course have those files
# accessible. The existence of those setting and files will
# enable SSL.
{{#trove.ssl}}
[ssl]
cert_file = {{cert_file}}
key_file = {{key_file}}
{{#ca_file}}
ca_file = {{ca_file}}
{{/ca_file}}
{{/trove.ssl}}