taperole 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +7 -0
  3. data/CHANGELOG.md +12 -0
  4. data/README.md +7 -16
  5. data/config/style_guides/ruby.yml +238 -0
  6. data/lib/tape/ansible_runner.rb +41 -33
  7. data/lib/tape/installer.rb +56 -28
  8. data/lib/tape.rb +8 -0
  9. data/requirements.yml +5 -2
  10. data/roles/backend_install_essentials/meta/main.yml +1 -1
  11. data/roles/database_load/tasks/db_reset.yml +3 -3
  12. data/roles/deployer_user/tasks/keys.yml +3 -2
  13. data/roles/frontend_deploy/tasks/main.yml +5 -1
  14. data/roles/frontend_install_essentials/meta/main.yml +3 -0
  15. data/roles/general/meta/main.yml +2 -0
  16. data/roles/general/tasks/basic_packages.yml +3 -0
  17. data/roles/general/tasks/main.yml +11 -1
  18. data/roles/nginx/tasks/main.yml +6 -2
  19. data/taperole.gemspec +1 -1
  20. data/templates/base/hosts.example +1 -1
  21. data/templates/base/tape_vars.example.yml +0 -3
  22. data/templates/static_html/tape_vars.example.yml +0 -3
  23. data/vars/defaults.yml +5 -0
  24. data/vendor/ANXS.postgresql/.travis.yml +11 -6
  25. data/vendor/ANXS.postgresql/README.md +5 -1
  26. data/vendor/ANXS.postgresql/Vagrantfile +1 -1
  27. data/vendor/ANXS.postgresql/defaults/main.yml +35 -1
  28. data/vendor/ANXS.postgresql/meta/.galaxy_install_info +1 -1
  29. data/vendor/ANXS.postgresql/tasks/configure.yml +34 -3
  30. data/vendor/ANXS.postgresql/tasks/databases.yml +13 -0
  31. data/vendor/ANXS.postgresql/tasks/install.yml +22 -0
  32. data/vendor/ANXS.postgresql/tasks/users_privileges.yml +4 -4
  33. data/vendor/ANXS.postgresql/templates/etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2 +5 -0
  34. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.3.j2 +596 -0
  35. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.4.j2 +614 -0
  36. data/vendor/ANXS.postgresql/vagrant-inventory +1 -1
  37. data/vendor/bennojoy.memcached/meta/.galaxy_install_info +1 -1
  38. data/vendor/jnv.mosh/LICENSE +24 -0
  39. data/vendor/jnv.mosh/README.md +56 -0
  40. data/vendor/jnv.mosh/meta/.galaxy_install_info +1 -0
  41. data/vendor/jnv.mosh/meta/main.yml +96 -0
  42. data/vendor/jnv.mosh/tasks/main.yml +20 -0
  43. data/vendor/jnv.mosh/vars/main.yml +4 -0
  44. data/vendor/jnv.unattended-upgrades/meta/.galaxy_install_info +1 -1
  45. data/vendor/lxhunter.apt/.gitignore +1 -0
  46. data/vendor/lxhunter.apt/.kitchen.yml +67 -0
  47. data/vendor/lxhunter.apt/README.md +33 -25
  48. data/vendor/lxhunter.apt/defaults/main.yml +1 -5
  49. data/vendor/lxhunter.apt/meta/.galaxy_install_info +1 -1
  50. data/vendor/lxhunter.apt/tasks/main.yml +23 -23
  51. data/vendor/lxhunter.apt/test/integration/default/bats/simple.bats +35 -0
  52. data/vendor/lxhunter.apt/test/integration/default/default.yml +16 -0
  53. data/vendor/tersmitten.htop/.gitignore +29 -0
  54. data/vendor/tersmitten.htop/.travis.yml +75 -0
  55. data/vendor/tersmitten.htop/LICENSE.txt +19 -0
  56. data/vendor/tersmitten.htop/README.md +45 -0
  57. data/vendor/tersmitten.htop/Vagrantfile +71 -0
  58. data/vendor/tersmitten.htop/defaults/main.yml +8 -0
  59. data/vendor/tersmitten.htop/files/etc/skel/.config/htop/htoprc +23 -0
  60. data/vendor/tersmitten.htop/handlers/main.yml +2 -0
  61. data/vendor/tersmitten.htop/meta/.galaxy_install_info +1 -0
  62. data/vendor/tersmitten.htop/meta/main.yml +18 -0
  63. data/vendor/tersmitten.htop/tasks/main.yml +27 -0
  64. data/vendor/tersmitten.htop/templates/empty +0 -0
  65. data/vendor/tersmitten.htop/tests/inventory +1 -0
  66. data/vendor/tersmitten.htop/tests/test.yml +6 -0
  67. data/vendor/tersmitten.htop/tests/vagrant.yml +17 -0
  68. data/vendor/tersmitten.htop/vars/main.yml +2 -0
  69. data/vendor/williamyeh.nodejs/.gitignore +1 -0
  70. data/vendor/williamyeh.nodejs/LICENSE +22 -0
  71. data/vendor/williamyeh.nodejs/README.md +107 -0
  72. data/vendor/williamyeh.nodejs/Vagrantfile +33 -0
  73. data/vendor/williamyeh.nodejs/circle.yml +32 -0
  74. data/vendor/williamyeh.nodejs/defaults/main.yml +17 -0
  75. data/vendor/williamyeh.nodejs/files/nodesource.gpg.key +52 -0
  76. data/vendor/williamyeh.nodejs/meta/.galaxy_install_info +1 -0
  77. data/vendor/williamyeh.nodejs/meta/main.yml +27 -0
  78. data/vendor/williamyeh.nodejs/tasks/main.yml +19 -0
  79. data/vendor/williamyeh.nodejs/tasks/set-role-variables.yml +15 -0
  80. data/vendor/williamyeh.nodejs/tasks/use-apt.yml +88 -0
  81. data/vendor/williamyeh.nodejs/tasks/use-yum.yml +34 -0
  82. data/vendor/williamyeh.nodejs/test/Dockerfile-centos6 +29 -0
  83. data/vendor/williamyeh.nodejs/test/Dockerfile-centos7 +29 -0
  84. data/vendor/williamyeh.nodejs/test/Dockerfile-debian7 +29 -0
  85. data/vendor/williamyeh.nodejs/test/Dockerfile-debian8 +29 -0
  86. data/vendor/williamyeh.nodejs/test/Dockerfile-ubuntu12.04 +29 -0
  87. data/vendor/williamyeh.nodejs/test/Dockerfile-ubuntu14.04 +29 -0
  88. data/vendor/williamyeh.nodejs/test.yml +12 -0
  89. data/vendor/zzet.rbenv/.travis.yml +5 -2
  90. data/vendor/zzet.rbenv/README.md +1 -1
  91. data/vendor/zzet.rbenv/defaults/main.yml +3 -3
  92. data/vendor/zzet.rbenv/meta/.galaxy_install_info +1 -1
  93. data/vendor/zzet.rbenv/tasks/apt_build_depends.yml +7 -0
  94. data/vendor/zzet.rbenv/tasks/homebrew_build_depends.yml +4 -2
  95. data/vendor/zzet.rbenv/tasks/main.yml +5 -2
  96. metadata +53 -7
  97. data/lib/tape/vagrant_provisioner.rb +0 -42
  98. data/vendor/ANXS.postgresql/templates/postgresql.conf.j2 +0 -446
  99. data/vendor/lxhunter.apt/.travis.yml +0 -12
  100. data/vendor/lxhunter.apt/Vagrantfile +0 -16
  101. data/vendor/lxhunter.apt/templates/apt_10general.j2 +0 -4
@@ -0,0 +1,596 @@
1
+ # -----------------------------
2
+ # PostgreSQL configuration file
3
+ # -----------------------------
4
+ #
5
+ # This file consists of lines of the form:
6
+ #
7
+ # name = value
8
+ #
9
+ # (The "=" is optional.) Whitespace may be used. Comments are introduced with
10
+ # "#" anywhere on a line. The complete list of parameter names and allowed
11
+ # values can be found in the PostgreSQL documentation.
12
+ #
13
+ # The commented-out settings shown in this file represent the default values.
14
+ # Re-commenting a setting is NOT sufficient to revert it to the default value;
15
+ # you need to reload the server.
16
+ #
17
+ # This file is read on server startup and when the server receives a SIGHUP
18
+ # signal. If you edit the file on a running system, you have to SIGHUP the
19
+ # server for the changes to take effect, or use "pg_ctl reload". Some
20
+ # parameters, which are marked below, require a server shutdown and restart to
21
+ # take effect.
22
+ #
23
+ # Any parameter can also be given as a command-line option to the server, e.g.,
24
+ # "postgres -c log_connections=on". Some parameters can be changed at run time
25
+ # with the "SET" SQL command.
26
+ #
27
+ # Memory units: kB = kilobytes Time units: ms = milliseconds
28
+ # MB = megabytes s = seconds
29
+ # GB = gigabytes min = minutes
30
+ # h = hours
31
+ # d = days
32
+
33
+
34
+ #------------------------------------------------------------------------------
35
+ # FILE LOCATIONS
36
+ #------------------------------------------------------------------------------
37
+
38
+ # The default values of these variables are driven from the -D command-line
39
+ # option or PGDATA environment variable, represented here as ConfigDir.
40
+
41
+ data_directory = '{{postgresql_data_directory}}' # use data in another directory
42
+ # (change requires restart)
43
+ hba_file = '{{postgresql_hba_file}}' # host-based authentication file
44
+ # (change requires restart)
45
+ ident_file = '{{postgresql_ident_file}}' # ident configuration file
46
+ # (change requires restart)
47
+
48
+ # If external_pid_file is not explicitly set, no extra PID file is written.
49
+ external_pid_file = '{{postgresql_external_pid_file}}' # write an extra PID file
50
+ # (change requires restart)
51
+
52
+
53
+ #------------------------------------------------------------------------------
54
+ # CONNECTIONS AND AUTHENTICATION
55
+ #------------------------------------------------------------------------------
56
+
57
+ # - Connection Settings -
58
+
59
+ listen_addresses = '{{postgresql_listen_addresses|join(',')}}' # what IP address(es) to listen on;
60
+ # comma-separated list of addresses;
61
+ # defaults to 'localhost'; use '*' for all
62
+ # (change requires restart)
63
+ port = {{postgresql_port}} # (change requires restart)
64
+ max_connections = {{postgresql_max_connections}} # (change requires restart)
65
+ # Note: Increasing max_connections costs ~400 bytes of shared memory per
66
+ # connection slot, plus lock space (see max_locks_per_transaction).
67
+ superuser_reserved_connections = {{postgresql_superuser_reserved_connections}} # (change requires restart)
68
+ unix_socket_directories = '{{postgresql_unix_socket_directories|join(',')}}' # comma-separated list of directories
69
+ # (change requires restart)
70
+ unix_socket_group = '{{postgresql_unix_socket_group}}' # (change requires restart)
71
+ unix_socket_permissions = {{postgresql_unix_socket_permissions}} # begin with 0 to use octal notation
72
+ # (change requires restart)
73
+ bonjour = {{'on' if postgresql_bonjour else 'off'}} # advertise server via Bonjour
74
+ # (change requires restart)
75
+ bonjour_name = '{{postgresql_bonjour_name}}' # defaults to the computer name
76
+ # (change requires restart)
77
+
78
+ # - Security and Authentication -
79
+
80
+ authentication_timeout = {{postgresql_authentication_timeout}} # 1s-600s
81
+ ssl = {{'on' if postgresql_ssl else 'off'}} # (change requires restart)
82
+ ssl_ciphers = '{{postgresql_ssl_ciphers|join(':')}}' # allowed SSL ciphers
83
+ # (change requires restart)
84
+ ssl_renegotiation_limit = {{postgresql_ssl_renegotiation_limit}} # amount of data between renegotiations
85
+ ssl_cert_file = '{{postgresql_ssl_cert_file}}' # (change requires restart)
86
+ ssl_key_file = '{{postgresql_ssl_key_file}}' # (change requires restart)
87
+ ssl_ca_file = '{{postgresql_ssl_ca_file}}' # (change requires restart)
88
+ ssl_crl_file = '{{postgresql_ssl_crl_file}}' # (change requires restart)
89
+ password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
90
+ db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
91
+
92
+ # Kerberos and GSSAPI
93
+ krb_server_keyfile = '{{postgresql_krb_server_keyfile}}'
94
+ krb_srvname = '{{postgresql_krb_srvname}}' # (Kerberos only)
95
+ krb_caseins_users = {{'on' if postgresql_db_user_namespace else 'off'}}
96
+
97
+ # - TCP Keepalives -
98
+ # see "man 7 tcp" for details
99
+
100
+ tcp_keepalives_idle = {{postgresql_tcp_keepalives_idle}} # TCP_KEEPIDLE, in seconds;
101
+ # 0 selects the system default
102
+ tcp_keepalives_interval = {{postgresql_tcp_keepalives_interval}} # TCP_KEEPINTVL, in seconds;
103
+ # 0 selects the system default
104
+ tcp_keepalives_count = {{postgresql_tcp_keepalives_count}} # TCP_KEEPCNT;
105
+ # 0 selects the system default
106
+
107
+
108
+ #------------------------------------------------------------------------------
109
+ # RESOURCE USAGE (except WAL)
110
+ #------------------------------------------------------------------------------
111
+
112
+ # - Memory -
113
+
114
+ shared_buffers = {{postgresql_shared_buffers}} # min 128kB
115
+ # (change requires restart)
116
+ temp_buffers = {{postgresql_temp_buffers}} # min 800kB
117
+ max_prepared_transactions = {{postgresql_max_prepared_transactions}} # zero disables the feature
118
+ # (change requires restart)
119
+ # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
120
+ # per transaction slot, plus lock space (see max_locks_per_transaction).
121
+ # It is not advisable to set max_prepared_transactions nonzero unless you
122
+ # actively intend to use prepared transactions.
123
+ work_mem = {{postgresql_work_mem}} # min 64kB
124
+ maintenance_work_mem = {{postgresql_maintenance_work_mem}} # min 1MB
125
+ max_stack_depth = {{postgresql_max_stack_depth}} # min 100kB
126
+
127
+ # - Disk -
128
+
129
+ temp_file_limit = {{postgresql_temp_file_limit}} # limits per-session temp file space
130
+ # in kB, or -1 for no limit
131
+
132
+ # - Kernel Resource Usage -
133
+
134
+ max_files_per_process = {{postgresql_max_files_per_process}} # min 25
135
+ # (change requires restart)
136
+ shared_preload_libraries = '{{postgresql_shared_preload_libraries|join(',')}}' # (change requires restart)
137
+
138
+ # - Cost-Based Vacuum Delay -
139
+
140
+ vacuum_cost_delay = {{postgresql_vacuum_cost_delay}} # 0-100 milliseconds
141
+ vacuum_cost_page_hit = {{postgresql_vacuum_cost_page_hit}} # 0-10000 credits
142
+ vacuum_cost_page_miss = {{postgresql_vacuum_cost_page_miss}} # 0-10000 credits
143
+ vacuum_cost_page_dirty = {{postgresql_vacuum_cost_page_dirty}} # 0-10000 credits
144
+ vacuum_cost_limit = {{postgresql_vacuum_cost_limit}} # 1-10000 credits
145
+
146
+ # - Background Writer -
147
+
148
+ bgwriter_delay = {{postgresql_bgwriter_delay}} # 10-10000ms between rounds
149
+ bgwriter_lru_maxpages = {{postgresql_bgwriter_lru_maxpages}} # 0-1000 max buffers written/round
150
+ bgwriter_lru_multiplier = {{postgresql_bgwriter_lru_multiplier}} # 0-10.0 multipler on buffers scanned/round
151
+
152
+ # - Asynchronous Behavior -
153
+
154
+ effective_io_concurrency = {{postgresql_effective_io_concurrency}} # 1-1000; 0 disables prefetching
155
+
156
+
157
+ #------------------------------------------------------------------------------
158
+ # WRITE AHEAD LOG
159
+ #------------------------------------------------------------------------------
160
+
161
+ # - Settings -
162
+
163
+ wal_level = {{postgresql_wal_level}} # minimal, archive, or hot_standby
164
+ # (change requires restart)
165
+ fsync = {{'on' if postgresql_fsync else 'off'}} # turns forced synchronization on or off
166
+ synchronous_commit = {{postgresql_synchronous_commit}} # synchronization level;
167
+ # off, local, remote_write, or on
168
+ wal_sync_method = {{postgresql_wal_sync_method}} # the default is the first option
169
+ # supported by the operating system:
170
+ # open_datasync
171
+ # fdatasync (default on Linux)
172
+ # fsync
173
+ # fsync_writethrough
174
+ # open_sync
175
+ full_page_writes = {{'on' if postgresql_full_page_writes else 'off'}} # recover from partial page writes
176
+ wal_buffers = {{postgresql_wal_buffers}} # min 32kB, -1 sets based on shared_buffers
177
+ # (change requires restart)
178
+ wal_writer_delay = {{postgresql_wal_writer_delay}} # 1-10000 milliseconds
179
+
180
+ commit_delay = {{postgresql_commit_delay}} # range 0-100000, in microseconds
181
+ commit_siblings = {{postgresql_commit_siblings}} # range 1-1000
182
+
183
+ # - Checkpoints -
184
+
185
+ checkpoint_segments = {{postgresql_checkpoint_segments}} # in logfile segments, min 1, 16MB each
186
+ checkpoint_timeout = {{postgresql_checkpoint_timeout}} # range 30s-1h
187
+ checkpoint_completion_target = {{postgresql_checkpoint_completion_target}} # checkpoint target duration, 0.0 - 1.0
188
+ checkpoint_warning = {{postgresql_checkpoint_warning}} # 0 disables
189
+
190
+ # - Archiving -
191
+
192
+ archive_mode = {{'on' if postgresql_archive_mode else 'off'}} # allows archiving to be done
193
+ # (change requires restart)
194
+ archive_command = '{{postgresql_archive_command}}' # command to use to archive a logfile segment
195
+ # placeholders: %p = path of file to archive
196
+ # %f = file name only
197
+ # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
198
+ archive_timeout = {{postgresql_archive_timeout}} # force a logfile segment switch after this
199
+ # number of seconds; 0 disables
200
+
201
+
202
+ #------------------------------------------------------------------------------
203
+ # REPLICATION
204
+ #------------------------------------------------------------------------------
205
+
206
+ # - Sending Server(s) -
207
+
208
+ # Set these on the master and on any standby that will send replication data.
209
+
210
+ max_wal_senders = {{postgresql_max_wal_senders}} # max number of walsender processes
211
+ # (change requires restart)
212
+ wal_keep_segments = {{postgresql_wal_keep_segments}} # in logfile segments, 16MB each; 0 disables
213
+ wal_sender_timeout = {{postgresql_wal_sender_timeout}} # in milliseconds; 0 disables
214
+
215
+ # - Master Server -
216
+
217
+ # These settings are ignored on a standby server.
218
+
219
+ synchronous_standby_names = '{{postgresql_synchronous_standby_names|join(',')}}' # standby servers that provide sync rep
220
+ # comma-separated list of application_name
221
+ # from standby(s); '*' = all
222
+ vacuum_defer_cleanup_age = {{postgresql_vacuum_defer_cleanup_age}} # number of xacts by which cleanup is delayed
223
+
224
+ # - Standby Servers -
225
+
226
+ # These settings are ignored on a master server.
227
+
228
+ hot_standby = {{'on' if postgresql_hot_standby else 'off'}} # "on" allows queries during recovery
229
+ # (change requires restart)
230
+ max_standby_archive_delay = {{postgresql_max_standby_archive_delay}} # max delay before canceling queries
231
+ # when reading WAL from archive;
232
+ # -1 allows indefinite delay
233
+ max_standby_streaming_delay = {{postgresql_max_standby_streaming_delay}} # max delay before canceling queries
234
+ # when reading streaming WAL;
235
+ # -1 allows indefinite delay
236
+ wal_receiver_status_interval = {{postgresql_wal_receiver_status_interval}} # send replies at least this often
237
+ # 0 disables
238
+ hot_standby_feedback = {{'on' if postgresql_hot_standby_feedback or 'off'}} # send info from standby to prevent
239
+ # query conflicts
240
+ wal_receiver_timeout = {{postgresql_wal_receiver_timeout}} # time that receiver waits for
241
+ # communication from master
242
+ # in milliseconds; 0 disables
243
+
244
+
245
+ #------------------------------------------------------------------------------
246
+ # QUERY TUNING
247
+ #------------------------------------------------------------------------------
248
+
249
+ # - Planner Method Configuration -
250
+
251
+ enable_bitmapscan = {{'on' if postgresql_enable_bitmapscan else 'off'}}
252
+ enable_hashagg = {{'on' if postgresql_enable_hashagg else 'off'}}
253
+ enable_hashjoin = {{'on' if postgresql_enable_hashjoin else 'off'}}
254
+ enable_indexscan = {{'on' if postgresql_enable_indexscan else 'off'}}
255
+ enable_indexonlyscan = {{'on' if postgresql_enable_indexonlyscan else 'off'}}
256
+ enable_material = {{'on' if postgresql_enable_material else 'off'}}
257
+ enable_mergejoin = {{'on' if postgresql_enable_mergejoin else 'off'}}
258
+ enable_nestloop = {{'on' if postgresql_enable_nestloop else 'off'}}
259
+ enable_seqscan = {{'on' if postgresql_enable_seqscan else 'off'}}
260
+ enable_sort = {{'on' if postgresql_enable_sort else 'off'}}
261
+ enable_tidscan = {{'on' if postgresql_enable_tidscan else 'off'}}
262
+
263
+ # - Planner Cost Constants -
264
+
265
+ seq_page_cost = {{postgresql_seq_page_cost}} # measured on an arbitrary scale
266
+ random_page_cost = {{postgresql_random_page_cost}} # same scale as above
267
+ cpu_tuple_cost = {{postgresql_cpu_tuple_cost}} # same scale as above
268
+ cpu_index_tuple_cost = {{postgresql_cpu_index_tuple_cost}} # same scale as above
269
+ cpu_operator_cost = {{postgresql_cpu_operator_cost}} # same scale as above
270
+ effective_cache_size = {{postgresql_effective_cache_size}}
271
+
272
+ # - Genetic Query Optimizer -
273
+
274
+ geqo = {{'on' if postgresql_enable_tidscan else 'off'}}
275
+ geqo_threshold = {{postgresql_geqo_threshold}}
276
+ geqo_effort = {{postgresql_geqo_effort}} # range 1-10
277
+ geqo_pool_size = {{postgresql_geqo_pool_size}} # selects default based on effort
278
+ geqo_generations = {{postgresql_geqo_generations}} # selects default based on effort
279
+ geqo_selection_bias = {{postgresql_geqo_selection_bias}} # range 1.5-2.0
280
+ geqo_seed = {{postgresql_geqo_seed}} # range 0.0-1.0
281
+
282
+ # - Other Planner Options -
283
+
284
+ default_statistics_target = {{postgresql_default_statistics_target}} # range 1-10000
285
+ constraint_exclusion = {{postgresql_constraint_exclusion}} # on, off, or partition
286
+ cursor_tuple_fraction = {{postgresql_cursor_tuple_fraction}} # range 0.0-1.0
287
+ from_collapse_limit = {{postgresql_from_collapse_limit}}
288
+ join_collapse_limit = {{postgresql_join_collapse_limit}} # 1 disables collapsing of explicit
289
+ # JOIN clauses
290
+
291
+
292
+ #------------------------------------------------------------------------------
293
+ # ERROR REPORTING AND LOGGING
294
+ #------------------------------------------------------------------------------
295
+
296
+ # - Where to Log -
297
+
298
+ log_destination = '{{postgresql_log_destination}}' # Valid values are combinations of
299
+ # stderr, csvlog, syslog, and eventlog,
300
+ # depending on platform. csvlog
301
+ # requires logging_collector to be on.
302
+
303
+ # This is used when logging to stderr:
304
+ logging_collector = {{'on' if postgresql_logging_collector else 'off'}} # Enable capturing of stderr and csvlog
305
+ # into log files. Required to be on for
306
+ # csvlogs.
307
+ # (change requires restart)
308
+
309
+ # These are only used if logging_collector is on:
310
+ log_directory = '{{postgresql_log_directory}}' # directory where log files are written,
311
+ # can be absolute or relative to PGDATA
312
+ log_filename = '{{postgresql_log_filename}}' # log file name pattern,
313
+ # can include strftime() escapes
314
+ log_file_mode = {{postgresql_log_file_mode}} # creation mode for log files,
315
+ # begin with 0 to use octal notation
316
+ log_truncate_on_rotation = {{'on' if postgresql_log_truncate_on_rotation else 'off'}} # If on, an existing log file with the
317
+ # same name as the new log file will be
318
+ # truncated rather than appended to.
319
+ # But such truncation only occurs on
320
+ # time-driven rotation, not on restarts
321
+ # or size-driven rotation. Default is
322
+ # off, meaning append to existing files
323
+ # in all cases.
324
+ log_rotation_age = {{postgresql_log_rotation_age}} # Automatic rotation of logfiles will
325
+ # happen after that time. 0 disables.
326
+ log_rotation_size = {{postgresql_log_rotation_size}} # Automatic rotation of logfiles will
327
+ # happen after that much log output.
328
+ # 0 disables.
329
+
330
+ # These are relevant when logging to syslog:
331
+ syslog_facility = '{{postgresql_syslog_facility}}'
332
+ syslog_ident = '{{postgresql_syslog_ident}}'
333
+
334
+ # This is only relevant when logging to eventlog (win32):
335
+ event_source = '{{postgresql_event_source}}'
336
+
337
+ # - When to Log -
338
+
339
+ client_min_messages = {{postgresql_client_min_messages}} # values in order of decreasing detail:
340
+ # debug5
341
+ # debug4
342
+ # debug3
343
+ # debug2
344
+ # debug1
345
+ # log
346
+ # notice
347
+ # warning
348
+ # error
349
+
350
+ log_min_messages = {{postgresql_log_min_messages}} # values in order of decreasing detail:
351
+ # debug5
352
+ # debug4
353
+ # debug3
354
+ # debug2
355
+ # debug1
356
+ # info
357
+ # notice
358
+ # warning
359
+ # error
360
+ # log
361
+ # fatal
362
+ # panic
363
+ #
364
+ log_min_error_statement = {{postgresql_log_min_error_statement}} # values in order of decreasing detail:
365
+ # debug5
366
+ # debug4
367
+ # debug3
368
+ # debug2
369
+ # debug1
370
+ # info
371
+ # notice
372
+ # warning
373
+ # error
374
+ # log
375
+ # fatal
376
+ # panic (effectively off)
377
+
378
+ log_min_duration_statement = {{postgresql_log_min_duration_statement}} # -1 is disabled, 0 logs all statements
379
+ # and their durations, > 0 logs only
380
+ # statements running at least this number
381
+ # of milliseconds
382
+
383
+
384
+ # - What to Log -
385
+
386
+ debug_print_parse = {{'on' if postgresql_debug_print_parse else 'off'}}
387
+ debug_print_rewritten = {{'on' if postgresql_debug_print_rewritten else 'off'}}
388
+ debug_print_plan = {{'on' if postgresql_debug_print_plan else 'off'}}
389
+ debug_pretty_print = {{'on' if postgresql_debug_pretty_print else 'off'}}
390
+ log_checkpoints = {{'on' if postgresql_log_checkpoints else 'off'}}
391
+ log_connections = {{'on' if postgresql_log_connections else 'off'}}
392
+ log_disconnections = {{'on' if postgresql_log_disconnections else 'off'}}
393
+ log_duration = {{'on' if postgresql_log_duration else 'off'}}
394
+ log_error_verbosity = {{postgresql_log_error_verbosity}} # terse, default, or verbose messages
395
+ log_hostname = {{'on' if postgresql_log_duration else 'off'}}
396
+ log_line_prefix = '{{postgresql_log_line_prefix}}' # special values:
397
+ # %a = application name
398
+ # %u = user name
399
+ # %d = database name
400
+ # %r = remote host and port
401
+ # %h = remote host
402
+ # %p = process ID
403
+ # %t = timestamp without milliseconds
404
+ # %m = timestamp with milliseconds
405
+ # %i = command tag
406
+ # %e = SQL state
407
+ # %c = session ID
408
+ # %l = session line number
409
+ # %s = session start timestamp
410
+ # %v = virtual transaction ID
411
+ # %x = transaction ID (0 if none)
412
+ # %q = stop here in non-session
413
+ # processes
414
+ # %% = '%'
415
+ # e.g. '<%u%%%d> '
416
+ log_lock_waits = {{'on' if postgresql_log_lock_waits else 'off'}} # log lock waits >= deadlock_timeout
417
+ log_statement = '{{postgresql_log_statement}}' # none, ddl, mod, all
418
+ log_temp_files = {{postgresql_log_temp_files}} # log temporary files equal or larger
419
+ # than the specified size in kilobytes;
420
+ # -1 disables, 0 logs all temp files
421
+ log_timezone = '{{postgresql_log_timezone}}'
422
+
423
+
424
+ #------------------------------------------------------------------------------
425
+ # RUNTIME STATISTICS
426
+ #------------------------------------------------------------------------------
427
+
428
+ # - Query/Index Statistics Collector -
429
+
430
+ track_activities = {{'on' if postgresql_track_activities else 'off'}}
431
+ track_counts = {{'on' if postgresql_track_counts else 'off'}}
432
+ track_io_timing = {{'on' if postgresql_track_io_timing else 'off'}}
433
+ track_functions = {{postgresql_track_functions}} # none, pl, all
434
+ track_activity_query_size = {{postgresql_track_activity_query_size}} # (change requires restart)
435
+ update_process_title = {{'on' if postgresql_update_process_title else 'off'}}
436
+ stats_temp_directory = '{{postgresql_stats_temp_directory}}'
437
+
438
+
439
+ # - Statistics Monitoring -
440
+
441
+ log_parser_stats = {{'on' if postgresql_log_parser_stats else 'off'}}
442
+ log_planner_stats = {{'on' if postgresql_log_planner_stats else 'off'}}
443
+ log_executor_stats = {{'on' if postgresql_log_executor_stats else 'off'}}
444
+ log_statement_stats = {{'on' if postgresql_log_statement_stats else 'off'}}
445
+
446
+
447
+ #------------------------------------------------------------------------------
448
+ # AUTOVACUUM PARAMETERS
449
+ #------------------------------------------------------------------------------
450
+
451
+ autovacuum = {{'on' if postgresql_autovacuum else 'off'}} # Enable autovacuum subprocess? 'on'
452
+ # requires track_counts to also be on.
453
+ log_autovacuum_min_duration = {{postgresql_log_autovacuum_min_duration}} # -1 disables, 0 logs all actions and
454
+ # their durations, > 0 logs only
455
+ # actions running at least this number
456
+ # of milliseconds.
457
+ autovacuum_max_workers = {{postgresql_autovacuum_max_workers}} # max number of autovacuum subprocesses
458
+ # (change requires restart)
459
+ autovacuum_naptime = {{postgresql_autovacuum_naptime}} # time between autovacuum runs
460
+ autovacuum_vacuum_threshold = {{postgresql_autovacuum_vacuum_threshold}} # min number of row updates before
461
+ # vacuum
462
+ autovacuum_analyze_threshold = {{postgresql_autovacuum_analyze_threshold}} # min number of row updates before
463
+ # analyze
464
+ autovacuum_vacuum_scale_factor = {{postgresql_autovacuum_vacuum_scale_factor}} # fraction of table size before vacuum
465
+ autovacuum_analyze_scale_factor = {{postgresql_autovacuum_analyze_scale_factor}} # fraction of table size before analyze
466
+ autovacuum_freeze_max_age = {{postgresql_autovacuum_freeze_max_age}} # maximum XID age before forced vacuum
467
+ # (change requires restart)
468
+ autovacuum_multixact_freeze_max_age = {{postgresql_autovacuum_multixact_freeze_max_age}} # maximum Multixact age
469
+ # before forced vacuum
470
+ # (change requires restart)
471
+ autovacuum_vacuum_cost_delay = {{postgresql_autovacuum_vacuum_cost_delay}} # default vacuum cost delay for
472
+ # autovacuum, in milliseconds;
473
+ # -1 means use vacuum_cost_delay
474
+ autovacuum_vacuum_cost_limit = {{postgresql_autovacuum_vacuum_cost_limit}} # default vacuum cost limit for
475
+ # autovacuum, -1 means use
476
+ # vacuum_cost_limit
477
+
478
+
479
+ #------------------------------------------------------------------------------
480
+ # CLIENT CONNECTION DEFAULTS
481
+ #------------------------------------------------------------------------------
482
+
483
+ # - Statement Behavior -
484
+
485
+ search_path = '{{postgresql_search_path|join(',')}}' # schema names
486
+ default_tablespace = '{{postgresql_default_tablespace}}' # a tablespace name, '' uses the default
487
+ temp_tablespaces = '{{postgresql_temp_tablespaces|join(',')}}' # a list of tablespace names, '' uses
488
+ # only default tablespace
489
+ check_function_bodies = {{'on' if postgresql_check_function_bodies else 'off'}}
490
+ default_transaction_isolation = '{{postgresql_default_transaction_isolation}}'
491
+ default_transaction_read_only = {{'on' if postgresql_default_transaction_read_only else 'off'}}
492
+ default_transaction_deferrable = {{'on' if postgresql_default_transaction_deferrable else 'off'}}
493
+ session_replication_role = '{{postgresql_session_replication_role}}'
494
+ statement_timeout = {{postgresql_statement_timeout}} # in milliseconds, 0 is disabled
495
+ lock_timeout = {{postgresql_lock_timeout}} # in milliseconds, 0 is disabled
496
+ vacuum_freeze_min_age = {{postgresql_vacuum_freeze_min_age}}
497
+ vacuum_freeze_table_age = {{postgresql_vacuum_freeze_table_age}}
498
+ vacuum_multixact_freeze_min_age = {{postgresql_vacuum_multixact_freeze_min_age}}
499
+ vacuum_multixact_freeze_table_age = {{postgresql_vacuum_multixact_freeze_table_age}}
500
+ bytea_output = '{{postgresql_bytea_output}}' # hex, escape
501
+ xmlbinary = '{{postgresql_xmlbinary}}'
502
+ xmloption = '{{postgresql_xmloption}}'
503
+
504
+ # - Locale and Formatting -
505
+
506
+ datestyle = '{{postgresql_datestyle|join(',')}}'
507
+ intervalstyle = '{{postgresql_intervalstyle}}'
508
+ timezone = '{{postgresql_timezone}}'
509
+ timezone_abbreviations = '{{postgresql_timezone_abbreviations}}' # Select the set of available time zone
510
+ # abbreviations. Currently, there are
511
+ # Default
512
+ # Australia
513
+ # India
514
+ # You can create your own file in
515
+ # share/timezonesets/.
516
+ extra_float_digits = {{postgresql_extra_float_digits}} # min -15, max 3
517
+ client_encoding = {{postgresql_client_encoding}} # actually, defaults to database
518
+ # encoding
519
+
520
+ # These settings are initialized by initdb, but they can be changed.
521
+ lc_messages = '{{postgresql_lc_messages}}' # locale for system error message
522
+ # strings
523
+ lc_monetary = '{{postgresql_lc_monetary}}' # locale for monetary formatting
524
+ lc_numeric = '{{postgresql_lc_numeric}}' # locale for number formatting
525
+ lc_time = '{{postgresql_lc_time}}' # locale for time formatting
526
+
527
+ # default configuration for text search
528
+ default_text_search_config = '{{postgresql_default_text_search_config}}'
529
+
530
+ # - Other Defaults -
531
+
532
+ dynamic_library_path = '{{postgresql_dynamic_library_path}}'
533
+ local_preload_libraries = '{{postgresql_local_preload_libraries|join(',')}}'
534
+
535
+
536
+ #------------------------------------------------------------------------------
537
+ # LOCK MANAGEMENT
538
+ #------------------------------------------------------------------------------
539
+
540
+ deadlock_timeout = {{postgresql_deadlock_timeout}}
541
+ max_locks_per_transaction = {{postgresql_max_locks_per_transaction}} # min 10
542
+ # (change requires restart)
543
+ # Note: Each lock table slot uses ~270 bytes of shared memory, and there are
544
+ # max_locks_per_transaction * (max_connections + max_prepared_transactions)
545
+ # lock table slots.
546
+ max_pred_locks_per_transaction = {{postgresql_max_pred_locks_per_transaction}} # min 10
547
+ # (change requires restart)
548
+
549
+
550
+ #------------------------------------------------------------------------------
551
+ # VERSION/PLATFORM COMPATIBILITY
552
+ #------------------------------------------------------------------------------
553
+
554
+ # - Previous PostgreSQL Versions -
555
+
556
+ array_nulls = {{'on' if postgresql_array_nulls else 'off'}}
557
+ backslash_quote = {{postgresql_backslash_quote}} # on, off, or safe_encoding
558
+ default_with_oids = {{'on' if postgresql_default_with_oids else 'off'}}
559
+ escape_string_warning = {{'on' if postgresql_escape_string_warning else 'off'}}
560
+ lo_compat_privileges = {{'on' if postgresql_lo_compat_privileges else 'off'}}
561
+ quote_all_identifiers = {{'on' if postgresql_quote_all_identifiers else 'off'}}
562
+ sql_inheritance = {{'on' if postgresql_sql_inheritance else 'off'}}
563
+ standard_conforming_strings = {{'on' if postgresql_standard_conforming_strings else 'off'}}
564
+ synchronize_seqscans = {{'on' if postgresql_synchronize_seqscans else 'off'}}
565
+
566
+ # - Other Platforms and Clients -
567
+
568
+ transform_null_equals = {{'on' if postgresql_transform_null_equals else 'off'}}
569
+
570
+
571
+ #------------------------------------------------------------------------------
572
+ # ERROR HANDLING
573
+ #------------------------------------------------------------------------------
574
+
575
+ exit_on_error = {{'on' if postgresql_exit_on_error else 'off'}} # terminate session on any error?
576
+ restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}} # reinitialize after backend crash?
577
+
578
+
579
+ #------------------------------------------------------------------------------
580
+ # CONFIG FILE INCLUDES
581
+ #------------------------------------------------------------------------------
582
+
583
+ # These options allow settings to be loaded from files other than the
584
+ # default postgresql.conf.
585
+
586
+ include_dir = 'conf.d' # include files ending in '.conf' from
587
+ # directory 'conf.d'
588
+ #include_if_exists = 'exists.conf' # include file only if it exists
589
+ #include = 'special.conf' # include file
590
+
591
+
592
+ #------------------------------------------------------------------------------
593
+ # CUSTOMIZED OPTIONS
594
+ #------------------------------------------------------------------------------
595
+
596
+ # Add settings for extensions here