Browse Source

Use transport_url for Queens or later

Add a new template for Queens based on the Mitaka template.

Switch Queens and Rocky templates to use parts from openstack layer
for [DEFAULT]transport_url and remaining [oslo_messaging_rabbit]
HA and SSL configuration options.

Note that this service differs from others in that it did not
adopt standard oslo.messaging configuration sections until
Queens.

Change-Id: I988ef92bce127f075d062009d5f1ab43cf7cf4d0
Closes-Bug: 1817672
changes/91/639291/2
James Page 3 months ago
parent
commit
1938f5f8db
2 changed files with 407 additions and 1 deletions
  1. 404
    0
      src/templates/queens/designate.conf
  2. 3
    1
      src/templates/rocky/designate.conf

+ 404
- 0
src/templates/queens/designate.conf View File

@@ -0,0 +1,404 @@
1
+# Queens
2
+[DEFAULT]
3
+# Where an option is commented out, but filled in this shows the default
4
+# value of that optiona aaa
5
+
6
+########################
7
+## General Configuration
8
+########################
9
+# Show more verbose log output (sets INFO log level output)
10
+verbose = {{ options.verbose }}
11
+
12
+# Show debugging output in logs (sets DEBUG log level output)
13
+debug = {{ options.debug }}
14
+
15
+# Top-level directory for maintaining designate's state
16
+#state_path = /var/lib/designate
17
+
18
+# Log Configuration
19
+#log_config = None
20
+
21
+# Log directory
22
+#logdir = /var/log/designate
23
+
24
+# Use "sudo designate-rootwrap /etc/designate/rootwrap.conf" to use the real
25
+# root filter facility.
26
+# Change to "sudo" to skip the filtering and just run the comand directly
27
+#root_helper = sudo designate-rootwrap /etc/designate/rootwrap.conf
28
+
29
+# Which networking API to use, Defaults to neutron
30
+#network_api = neutron
31
+
32
+# SOA expire (integer value)
33
+default_soa_expire = {{ options.default_soa_expire }}
34
+
35
+{% include "parts/section-transport-url" %}
36
+
37
+#-----------------------
38
+# RabbitMQ Config
39
+#-----------------------
40
+{% include "parts/section-oslo-messaging-rabbit" %}
41
+
42
+########################
43
+## Service Configuration
44
+########################
45
+#-----------------------
46
+# Central Service
47
+#-----------------------
48
+[service:central]
49
+# Number of central worker processes to spawn
50
+workers = {{ options.workers }}
51
+
52
+# Number of central greenthreads to spawn
53
+#threads = 1000
54
+
55
+# Maximum domain name length
56
+#max_domain_name_len = 255
57
+
58
+# Maximum recordset name length
59
+#max_recordset_name_len = 255
60
+
61
+# Minimum TTL
62
+#min_ttl = None
63
+
64
+# The name of the default pool
65
+#default_pool_id = '794ccc2c-d751-44fe-b57f-8894c9f5c842'
66
+
67
+## Managed resources settings
68
+
69
+# Email to use for managed resources like domains created by the FloatingIP API
70
+#managed_resource_email = hostmaster@example.com.
71
+
72
+# Tenant ID to own all managed resources - like auto-created records etc.
73
+#managed_resource_tenant_id = 123456
74
+
75
+#-----------------------
76
+# API Service
77
+#-----------------------
78
+[service:api]
79
+# Number of api worker processes to spawn
80
+#workers = None
81
+
82
+# Number of api greenthreads to spawn
83
+#threads = 1000
84
+
85
+# Enable host request headers
86
+enable_host_header = true
87
+
88
+# The base uri used in responses
89
+api_base_uri = '{{ options.external_endpoints.designate_api.url }}'
90
+
91
+# Address to bind the API server
92
+# NOTE:tinwood - Listen on every interface; fix for BUG #1734156
93
+api_host = 0.0.0.0
94
+
95
+# Port the bind the API server to
96
+api_port = '{{ options.service_listen_info.designate_api.port }}'
97
+
98
+# Maximum line size of message headers to be accepted. max_header_line may
99
+# need to be increased when using large tokens (typically those generated by
100
+# the Keystone v3 API with big service catalogs).
101
+#max_header_line = 16384
102
+
103
+# Authentication strategy to use - can be either "noauth" or "keystone"
104
+#auth_strategy = keystone
105
+
106
+# Enable Version 1 API (deprecated)
107
+enable_api_v1 = True
108
+
109
+# Enabled API Version 1 extensions
110
+# Can be one or more of : diagnostics, quotas, reports, sync, touch
111
+#enabled_extensions_v1 =
112
+enabled_extensions_v1 = sync, touch
113
+
114
+# Enable Version 2 API
115
+enable_api_v2 = True
116
+
117
+# Enabled API Version 2 extensions
118
+#enabled_extensions_v2 =
119
+
120
+# Default per-page limit for the V2 API, a value of None means show all results
121
+# by default
122
+#default_limit_v2 = 20
123
+
124
+# Max page size in the V2 API
125
+#max_limit_v2 = 1000
126
+
127
+# Enable Admin API (experimental)
128
+#enable_api_admin = False
129
+enable_api_admin = {{ options.enable_admin_api }}
130
+
131
+# Enabled Admin API extensions
132
+# Can be one or more of : reports, quotas, counts, tenants, zones
133
+# zone export is in zones extension
134
+#enabled_extensions_admin =
135
+{% if options.enable_admin_api -%}
136
+enabled_extensions_admin = reports, quotas, counts, tenants, zones
137
+{%- endif %}
138
+
139
+# Default per-page limit for the Admin API, a value of None means show all results
140
+# by default
141
+#default_limit_admin = 20
142
+
143
+# Max page size in the Admin API
144
+#max_limit_admin = 1000
145
+
146
+# Show the pecan HTML based debug interface (v2 only)
147
+# This is only useful for development, and WILL break python-designateclient
148
+# if an error occurs
149
+#pecan_debug = False
150
+
151
+#-----------------------
152
+# Keystone Middleware
153
+#-----------------------
154
+{% include "parts/section-keystone-authtoken" %}
155
+
156
+#-----------------------
157
+# Sink Service
158
+#-----------------------
159
+[service:sink]
160
+# List of notification handlers to enable, configuration of these needs to
161
+# correspond to a [handler:my_driver] section below or else in the config
162
+# Can be one or more of : nova_fixed, neutron_floatingip
163
+enabled_notification_handlers = {{ options.notification_handlers }}
164
+
165
+#-----------------------
166
+# mDNS Service
167
+#-----------------------
168
+[service:mdns]
169
+# Number of mdns worker processes to spawn
170
+#workers = None
171
+
172
+# Number of mdns greenthreads to spawn
173
+#threads = 1000
174
+
175
+# mDNS Bind Host
176
+#host = 0.0.0.0
177
+
178
+# mDNS Port Number
179
+#port = 5354
180
+
181
+# mDNS TCP Backlog
182
+#tcp_backlog = 100
183
+
184
+# mDNS TCP Receive Timeout
185
+#tcp_recv_timeout = 0.5
186
+
187
+# Enforce all incoming queries (including AXFR) are TSIG signed
188
+#query_enforce_tsig = False
189
+
190
+# Send all traffic over TCP
191
+#all_tcp = False
192
+
193
+# Maximum message size to emit
194
+#max_message_size = 65535
195
+
196
+#-----------------------
197
+# Agent Service
198
+#-----------------------
199
+[service:agent]
200
+#workers = None
201
+#host = 0.0.0.0
202
+#port = 5358
203
+#tcp_backlog = 100
204
+#allow_notify = 127.0.0.1
205
+#masters = 127.0.0.1:5354
206
+#backend_driver = fake
207
+#transfer_source = None
208
+#notify_delay = 0
209
+
210
+#-----------------------
211
+# Zone Manager Service
212
+#-----------------------
213
+[service:zone_manager]
214
+# Number of Zone Manager worker processes to spawn
215
+#workers = None
216
+
217
+# Number of Zone Manager greenthreads to spawn
218
+#threads = 1000
219
+
220
+# List of Zone Manager tasks to enable, a value of None will enable all tasks.
221
+# Can be one or more of: periodic_exists
222
+#enabled_tasks = None
223
+
224
+# Whether to allow synchronous zone exports
225
+#export_synchronous = True
226
+
227
+#------------------------
228
+# Deleted domains purging
229
+#------------------------
230
+[zone_manager_task:domain_purge]
231
+# How frequently to purge deleted domains, in seconds
232
+#interval = 3600  # 1h
233
+
234
+# How many records to be deleted on each run
235
+#batch_size = 100
236
+
237
+# How old deleted records should be (deleted_at) to be purged, in seconds
238
+#time_threshold = 604800  # 7 days
239
+
240
+#-----------------------
241
+# Pool Manager Service
242
+#-----------------------
243
+[service:pool_manager]
244
+# Number of Pool Manager worker processes to spawn
245
+#workers = None
246
+
247
+# Number of Pool Manager greenthreads to spawn
248
+#threads = 1000
249
+
250
+# The ID of the pool managed by this instance of the Pool Manager
251
+pool_id = 794ccc2c-d751-44fe-b57f-8894c9f5c842
252
+
253
+# The percentage of servers requiring a successful update for a domain change
254
+# to be considered active
255
+#threshold_percentage = 100
256
+
257
+# The time to wait for a response from a server
258
+#poll_timeout = 30
259
+
260
+# The time between retrying to send a request and waiting for a response from a
261
+# server
262
+#poll_retry_interval = 15
263
+
264
+# The maximum number of times to retry sending a request and wait for a
265
+# response from a server
266
+#poll_max_retries = 10
267
+
268
+# The time to wait before sending the first request to a server
269
+#poll_delay = 5
270
+
271
+# Enable the recovery thread
272
+#enable_recovery_timer = True
273
+
274
+# The time between recovering from failures
275
+#periodic_recovery_interval = 120
276
+
277
+# Enable the sync thread
278
+#enable_sync_timer = True
279
+
280
+# The time between synchronizing the servers with storage
281
+#periodic_sync_interval = 1800
282
+
283
+# Zones Updated within last N seconds will be syncd. Use None to sync all zones
284
+#periodic_sync_seconds = None
285
+
286
+# The cache driver to use
287
+cache_driver = sqlalchemy
288
+
289
+###################################
290
+## Pool Manager Cache Configuration
291
+###################################
292
+#-----------------------
293
+# SQLAlchemy Pool Manager Cache
294
+#-----------------------
295
+[pool_manager_cache:sqlalchemy]
296
+connection = {{ shared_db.designate_pool_uri }}
297
+#connection = sqlite:///$state_path/designate_pool_manager.sqlite
298
+#connection_debug = 100
299
+#connection_trace = False
300
+#sqlite_synchronous = True
301
+#idle_timeout = 3600
302
+#max_retries = 10
303
+#retry_interval = 10
304
+
305
+#-----------------------
306
+# Memcache Pool Manager Cache
307
+#-----------------------
308
+[pool_manager_cache:memcache]
309
+#memcached_servers = None
310
+#expiration = 3600
311
+
312
+
313
+##############
314
+## Network API
315
+##############
316
+[network_api:neutron]
317
+# Comma separated list of values, formatted "<name>|<neutron_uri>"
318
+#endpoints = RegionOne|http://localhost:9696
319
+#endpoint_type = publicURL
320
+#timeout = 30
321
+#admin_username = designate
322
+#admin_password = designate
323
+#admin_tenant_name = designate
324
+#auth_url = http://localhost:35357/v2.0
325
+#insecure = False
326
+#auth_strategy = keystone
327
+#ca_certificates_file =
328
+
329
+########################
330
+## Storage Configuration
331
+########################
332
+#-----------------------
333
+# SQLAlchemy Storage
334
+#-----------------------
335
+[storage:sqlalchemy]
336
+# Database connection string - to configure options for a given implementation
337
+# like sqlalchemy or other see below
338
+#connection = sqlite:///$state_path/designate.sqlite
339
+connection = {{ shared_db.designate_uri }}
340
+#connection_debug = 0
341
+#connection_trace = False
342
+#sqlite_synchronous = True
343
+#idle_timeout = 3600
344
+#max_retries = 10
345
+#retry_interval = 10
346
+
347
+########################
348
+## Handler Configuration
349
+########################
350
+#-----------------------
351
+# Nova Fixed Handler
352
+#-----------------------
353
+#format = '%(hostname)s.%(domain)s'
354
+
355
+#############################
356
+## Agent Backend Configuration
357
+#############################
358
+[backend:agent:bind9]
359
+#rndc_config_file = /etc/rndc.conf
360
+#rndc_key_file = /etc/rndc.key
361
+#zone_file_path = $state_path/zones
362
+#query_destination = 127.0.0.1
363
+#
364
+[backend:agent:denominator]
365
+#name = dynect
366
+#config_file = /etc/denominator.conf
367
+
368
+########################
369
+## Library Configuration
370
+########################
371
+[oslo_concurrency]
372
+# Path for Oslo Concurrency to store lock files, defaults to the value
373
+# of the state_path setting.
374
+#lock_path = $state_path
375
+
376
+########################
377
+## Coordination
378
+########################
379
+[coordination]
380
+{% if coordinator_memcached.url -%}
381
+backend_url = {{ coordinator_memcached.url }}
382
+{%- endif %}
383
+
384
+########################
385
+## Hook Points
386
+########################
387
+# Hook Points are enabled when added to the config and there has been
388
+# a package that provides the corresponding named designate.hook_point
389
+# entry point.
390
+
391
+# [hook_point:name_of_hook_point]
392
+# some_param_for_hook = 42
393
+# Hooks can be disabled in the config
394
+# enabled = False
395
+
396
+# Hook can also be applied to the import path when the hook has not
397
+# been given an explicit name. The name is created from the hook
398
+# target function / method:
399
+#
400
+#   name = '%s.%s' % (func.__module__, func.__name__)
401
+
402
+# [hook_point:designate.api.v2.controllers.zones.get_one]
403
+
404
+{% include "parts/section-oslo-middleware" %}

+ 3
- 1
src/templates/rocky/designate.conf View File

@@ -29,10 +29,12 @@ debug = {{ options.debug }}
29 29
 # Which networking API to use, Defaults to neutron
30 30
 #network_api = neutron
31 31
 
32
+{% include "parts/section-transport-url" %}
33
+
32 34
 #-----------------------
33 35
 # RabbitMQ Config
34 36
 #-----------------------
35
-{% include "parts/section-rabbitmq-oslo" %}
37
+{% include "parts/section-oslo-messaging-rabbit" %}
36 38
 
37 39
 ########################
38 40
 ## Service Configuration

Loading…
Cancel
Save