apollon 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.gemspec +35 -0
  3. data/.gitignore +5 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +87 -0
  6. data/LICENSE +21 -0
  7. data/README.md +100 -0
  8. data/Rakefile +20 -0
  9. data/TODO.md +22 -0
  10. data/Vagrantfile +92 -0
  11. data/WHATS_IN.md +55 -0
  12. data/artifacts/.gitkeepme +1 -0
  13. data/clean.sh +3 -0
  14. data/lib/apollon/app/app.rb +1 -0
  15. data/lib/apollon/core/core.rb +8 -0
  16. data/lib/apollon/helpers/helpers.rb +28 -0
  17. data/lib/{lib.rb → apollon/lib.rb} +0 -0
  18. data/lib/apollon/provisions/provisions.rb +8 -0
  19. data/lib/apollon/provisions/puppet.rb +1 -0
  20. data/lib/apollon/version.rb +5 -0
  21. data/lib/apollon.rb +1 -0
  22. data/packs/README.md +15 -0
  23. data/packs/core/README.md +3 -0
  24. data/packs/core/pack-digitalocean.sh +8 -0
  25. data/packs/core/pack-vagrant.sh +16 -0
  26. data/packs/core/packer.json +82 -0
  27. data/packs/core/provision.sh +9 -0
  28. data/packs/core/scripts/provision-digitalocean.sh +11 -0
  29. data/packs/examples/aws/pack.sh +6 -0
  30. data/packs/examples/aws/packer.json +18 -0
  31. data/packs/examples/digitalocean/data/images.json +344 -0
  32. data/packs/examples/digitalocean/data/regions.json +22 -0
  33. data/packs/examples/digitalocean/data/sizes.json +92 -0
  34. data/packs/examples/digitalocean/pack.sh +4 -0
  35. data/packs/examples/digitalocean/packer.json +18 -0
  36. data/packs/examples/virtualbox-iso/pack.sh +15 -0
  37. data/packs/examples/virtualbox-iso/packer.json +49 -0
  38. data/packs/examples/virtualbox-iso/provision.sh +3 -0
  39. data/puppet/environment.conf +7 -0
  40. data/puppet/manifests/all.pp +10 -0
  41. data/puppet/manifests/core.pp +3 -0
  42. data/puppet/manifests/db.pp +3 -0
  43. data/puppet/manifests/default.pp +3 -0
  44. data/puppet/manifests/dev.pp +3 -0
  45. data/puppet/manifests/ops.pp +3 -0
  46. data/puppet/manifests/sites/apollocrawler.com.pp +5 -0
  47. data/puppet/manifests/web.pp +5 -0
  48. data/puppet/modules/apache2/files/apache2.conf +221 -0
  49. data/puppet/modules/apache2/files/envvars +47 -0
  50. data/puppet/modules/apache2/files/magic +935 -0
  51. data/puppet/modules/apache2/files/ports.conf +15 -0
  52. data/puppet/modules/apache2/manifests/init.pp +46 -0
  53. data/puppet/modules/clang/manifests/init.pp +11 -0
  54. data/puppet/modules/cmake/manifests/init.pp +11 -0
  55. data/puppet/modules/core/files/sources.list +62 -0
  56. data/puppet/modules/core/manifests/init.pp +63 -0
  57. data/puppet/modules/couchdb/files/local.ini +98 -0
  58. data/puppet/modules/couchdb/manifests/init.pp +25 -0
  59. data/puppet/modules/db/manifests/init.pp +13 -0
  60. data/puppet/modules/dev/manifests/init.pp +20 -0
  61. data/puppet/modules/elasticsearch/files/elasticsearch.yml +377 -0
  62. data/puppet/modules/elasticsearch/files/logging.yml +56 -0
  63. data/puppet/modules/elasticsearch/manifests/init.pp +45 -0
  64. data/puppet/modules/erlang/manifests/init.pp +11 -0
  65. data/puppet/modules/ghc/manifests/init.pp +11 -0
  66. data/puppet/modules/git/manifests/init.pp +11 -0
  67. data/puppet/modules/golang/manifests/init.pp +11 -0
  68. data/puppet/modules/htop/manifests/init.pp +11 -0
  69. data/puppet/modules/java/files/accept-java-license.sh +4 -0
  70. data/puppet/modules/java/files/install-java7.sh +7 -0
  71. data/puppet/modules/java/files/install-java8.sh +7 -0
  72. data/puppet/modules/java/manifests/init.pp +86 -0
  73. data/puppet/modules/links/manifests/init.pp +11 -0
  74. data/puppet/modules/llvm/manifests/init.pp +11 -0
  75. data/puppet/modules/lynx/manifests/init.pp +11 -0
  76. data/puppet/modules/mc/manifests/init.pp +11 -0
  77. data/puppet/modules/memcache/files/memcached.conf +47 -0
  78. data/puppet/modules/memcache/manifests/init.pp +24 -0
  79. data/puppet/modules/mongodb/files/mongodb.conf +102 -0
  80. data/puppet/modules/mongodb/manifests/init.pp +24 -0
  81. data/puppet/modules/mosh/manifests/init.pp +11 -0
  82. data/puppet/modules/mysql/files/conf.d/mysqld_safe_syslog.cnf +2 -0
  83. data/puppet/modules/mysql/files/debian.cnf +12 -0
  84. data/puppet/modules/mysql/files/my.cnf +127 -0
  85. data/puppet/modules/mysql/manifests/init.pp +45 -0
  86. data/puppet/modules/nginx/manifests/init.pp +16 -0
  87. data/puppet/modules/nodejs/manifests/init.pp +41 -0
  88. data/puppet/modules/octave/manifests/init.pp +11 -0
  89. data/puppet/modules/ops/manifests/init.pp +12 -0
  90. data/puppet/modules/php5/manifests/init.pp +11 -0
  91. data/puppet/modules/postgresql/files/9.3/main/environment +7 -0
  92. data/puppet/modules/postgresql/files/9.3/main/pg_ctl.conf +5 -0
  93. data/puppet/modules/postgresql/files/9.3/main/pg_hba.conf +99 -0
  94. data/puppet/modules/postgresql/files/9.3/main/pg_ident.conf +42 -0
  95. data/puppet/modules/postgresql/files/9.3/main/postgresql.conf +598 -0
  96. data/puppet/modules/postgresql/files/9.3/main/start.conf +9 -0
  97. data/puppet/modules/postgresql/files/create-postgresql-user.sh +4 -0
  98. data/puppet/modules/postgresql/files/sql/bootstrap.sh +1 -0
  99. data/puppet/modules/postgresql/files/sql/create-extension-adminpack.sql +1 -0
  100. data/puppet/modules/postgresql/files/sql/create-extension-postgis.sql +11 -0
  101. data/puppet/modules/postgresql/manifests/init.pp +145 -0
  102. data/puppet/modules/python/manifests/init.pp +11 -0
  103. data/puppet/modules/r/manifests/init.pp +11 -0
  104. data/puppet/modules/rabbitmq/files/enable-user-management.sh +3 -0
  105. data/puppet/modules/rabbitmq/manifests/init.pp +36 -0
  106. data/puppet/modules/redis/files/memcached.conf +47 -0
  107. data/puppet/modules/redis/manifests/init.pp +19 -0
  108. data/puppet/modules/ruby/manifests/init.pp +11 -0
  109. data/puppet/modules/rvm/manifests/init.pp +33 -0
  110. data/puppet/modules/science/manifests/init.pp +8 -0
  111. data/puppet/modules/squid/manifests/init.pp +16 -0
  112. data/puppet/modules/svn/manifests/init.pp +11 -0
  113. data/puppet/modules/tomcat7/files/tomcat-users.xml +6 -0
  114. data/puppet/modules/tomcat7/manifests/init.pp +24 -0
  115. data/puppet/modules/varnish/manifests/init.pp +11 -0
  116. data/puppet/modules/web/manifests/init.pp +10 -0
  117. data/puppet/modules/zookeeper/files/conf/configuration.xsl +24 -0
  118. data/puppet/modules/zookeeper/files/conf/environment +20 -0
  119. data/puppet/modules/zookeeper/files/conf/log4j.properties +51 -0
  120. data/puppet/modules/zookeeper/files/conf/zoo.cfg +51 -0
  121. data/puppet/modules/zookeeper/manifests/init.pp +27 -0
  122. data/tmp/.gitkeepme +1 -0
  123. data/vagrant/profiles/default.json +53 -0
  124. metadata +156 -35
@@ -0,0 +1,598 @@
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 = '/var/lib/postgresql/9.3/main' # use data in another directory
42
+ # (change requires restart)
43
+ hba_file = '/etc/postgresql/9.3/main/pg_hba.conf' # host-based authentication file
44
+ # (change requires restart)
45
+ ident_file = '/etc/postgresql/9.3/main/pg_ident.conf' # 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 = '/var/run/postgresql/9.3-main.pid' # 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 = 'localhost' # 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
+ listen_addresses = '*'
64
+ port = 5432 # (change requires restart)
65
+ max_connections = 100 # (change requires restart)
66
+ # Note: Increasing max_connections costs ~400 bytes of shared memory per
67
+ # connection slot, plus lock space (see max_locks_per_transaction).
68
+ #superuser_reserved_connections = 3 # (change requires restart)
69
+ unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
70
+ # (change requires restart)
71
+ #unix_socket_group = '' # (change requires restart)
72
+ #unix_socket_permissions = 0777 # begin with 0 to use octal notation
73
+ # (change requires restart)
74
+ #bonjour = off # advertise server via Bonjour
75
+ # (change requires restart)
76
+ #bonjour_name = '' # defaults to the computer name
77
+ # (change requires restart)
78
+
79
+ # - Security and Authentication -
80
+
81
+ #authentication_timeout = 1min # 1s-600s
82
+ ssl = true # (change requires restart)
83
+ #ssl_ciphers = 'DEFAULT:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
84
+ # (change requires restart)
85
+ #ssl_renegotiation_limit = 512MB # amount of data between renegotiations
86
+ ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem' # (change requires restart)
87
+ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' # (change requires restart)
88
+ #ssl_ca_file = '' # (change requires restart)
89
+ #ssl_crl_file = '' # (change requires restart)
90
+ #password_encryption = on
91
+ #db_user_namespace = off
92
+
93
+ # Kerberos and GSSAPI
94
+ #krb_server_keyfile = ''
95
+ #krb_srvname = 'postgres' # (Kerberos only)
96
+ #krb_caseins_users = off
97
+
98
+ # - TCP Keepalives -
99
+ # see "man 7 tcp" for details
100
+
101
+ #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
102
+ # 0 selects the system default
103
+ #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
104
+ # 0 selects the system default
105
+ #tcp_keepalives_count = 0 # TCP_KEEPCNT;
106
+ # 0 selects the system default
107
+
108
+
109
+ #------------------------------------------------------------------------------
110
+ # RESOURCE USAGE (except WAL)
111
+ #------------------------------------------------------------------------------
112
+
113
+ # - Memory -
114
+
115
+ shared_buffers = 128MB # min 128kB
116
+ # (change requires restart)
117
+ #temp_buffers = 8MB # min 800kB
118
+ #max_prepared_transactions = 0 # zero disables the feature
119
+ # (change requires restart)
120
+ # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
121
+ # per transaction slot, plus lock space (see max_locks_per_transaction).
122
+ # It is not advisable to set max_prepared_transactions nonzero unless you
123
+ # actively intend to use prepared transactions.
124
+ #work_mem = 1MB # min 64kB
125
+ #maintenance_work_mem = 16MB # min 1MB
126
+ #max_stack_depth = 2MB # min 100kB
127
+
128
+ # - Disk -
129
+
130
+ #temp_file_limit = -1 # limits per-session temp file space
131
+ # in kB, or -1 for no limit
132
+
133
+ # - Kernel Resource Usage -
134
+
135
+ #max_files_per_process = 1000 # min 25
136
+ # (change requires restart)
137
+ #shared_preload_libraries = '' # (change requires restart)
138
+
139
+ # - Cost-Based Vacuum Delay -
140
+
141
+ #vacuum_cost_delay = 0 # 0-100 milliseconds
142
+ #vacuum_cost_page_hit = 1 # 0-10000 credits
143
+ #vacuum_cost_page_miss = 10 # 0-10000 credits
144
+ #vacuum_cost_page_dirty = 20 # 0-10000 credits
145
+ #vacuum_cost_limit = 200 # 1-10000 credits
146
+
147
+ # - Background Writer -
148
+
149
+ #bgwriter_delay = 200ms # 10-10000ms between rounds
150
+ #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
151
+ #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
152
+
153
+ # - Asynchronous Behavior -
154
+
155
+ #effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
156
+
157
+
158
+ #------------------------------------------------------------------------------
159
+ # WRITE AHEAD LOG
160
+ #------------------------------------------------------------------------------
161
+
162
+ # - Settings -
163
+
164
+ #wal_level = minimal # minimal, archive, or hot_standby
165
+ # (change requires restart)
166
+ #fsync = on # turns forced synchronization on or off
167
+ #synchronous_commit = on # synchronization level;
168
+ # off, local, remote_write, or on
169
+ #wal_sync_method = fsync # the default is the first option
170
+ # supported by the operating system:
171
+ # open_datasync
172
+ # fdatasync (default on Linux)
173
+ # fsync
174
+ # fsync_writethrough
175
+ # open_sync
176
+ #full_page_writes = on # recover from partial page writes
177
+ #wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers
178
+ # (change requires restart)
179
+ #wal_writer_delay = 200ms # 1-10000 milliseconds
180
+
181
+ #commit_delay = 0 # range 0-100000, in microseconds
182
+ #commit_siblings = 5 # range 1-1000
183
+
184
+ # - Checkpoints -
185
+
186
+ #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
187
+ #checkpoint_timeout = 5min # range 30s-1h
188
+ #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
189
+ #checkpoint_warning = 30s # 0 disables
190
+
191
+ # - Archiving -
192
+
193
+ #archive_mode = off # allows archiving to be done
194
+ # (change requires restart)
195
+ #archive_command = '' # command to use to archive a logfile segment
196
+ # placeholders: %p = path of file to archive
197
+ # %f = file name only
198
+ # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
199
+ #archive_timeout = 0 # force a logfile segment switch after this
200
+ # number of seconds; 0 disables
201
+
202
+
203
+ #------------------------------------------------------------------------------
204
+ # REPLICATION
205
+ #------------------------------------------------------------------------------
206
+
207
+ # - Sending Server(s) -
208
+
209
+ # Set these on the master and on any standby that will send replication data.
210
+
211
+ #max_wal_senders = 0 # max number of walsender processes
212
+ # (change requires restart)
213
+ #wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
214
+ #wal_sender_timeout = 60s # in milliseconds; 0 disables
215
+
216
+ # - Master Server -
217
+
218
+ # These settings are ignored on a standby server.
219
+
220
+ #synchronous_standby_names = '' # standby servers that provide sync rep
221
+ # comma-separated list of application_name
222
+ # from standby(s); '*' = all
223
+ #vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
224
+
225
+ # - Standby Servers -
226
+
227
+ # These settings are ignored on a master server.
228
+
229
+ #hot_standby = off # "on" allows queries during recovery
230
+ # (change requires restart)
231
+ #max_standby_archive_delay = 30s # max delay before canceling queries
232
+ # when reading WAL from archive;
233
+ # -1 allows indefinite delay
234
+ #max_standby_streaming_delay = 30s # max delay before canceling queries
235
+ # when reading streaming WAL;
236
+ # -1 allows indefinite delay
237
+ #wal_receiver_status_interval = 10s # send replies at least this often
238
+ # 0 disables
239
+ #hot_standby_feedback = off # send info from standby to prevent
240
+ # query conflicts
241
+ #wal_receiver_timeout = 60s # time that receiver waits for
242
+ # communication from master
243
+ # in milliseconds; 0 disables
244
+
245
+
246
+ #------------------------------------------------------------------------------
247
+ # QUERY TUNING
248
+ #------------------------------------------------------------------------------
249
+
250
+ # - Planner Method Configuration -
251
+
252
+ #enable_bitmapscan = on
253
+ #enable_hashagg = on
254
+ #enable_hashjoin = on
255
+ #enable_indexscan = on
256
+ #enable_indexonlyscan = on
257
+ #enable_material = on
258
+ #enable_mergejoin = on
259
+ #enable_nestloop = on
260
+ #enable_seqscan = on
261
+ #enable_sort = on
262
+ #enable_tidscan = on
263
+
264
+ # - Planner Cost Constants -
265
+
266
+ #seq_page_cost = 1.0 # measured on an arbitrary scale
267
+ #random_page_cost = 4.0 # same scale as above
268
+ #cpu_tuple_cost = 0.01 # same scale as above
269
+ #cpu_index_tuple_cost = 0.005 # same scale as above
270
+ #cpu_operator_cost = 0.0025 # same scale as above
271
+ #effective_cache_size = 128MB
272
+
273
+ # - Genetic Query Optimizer -
274
+
275
+ #geqo = on
276
+ #geqo_threshold = 12
277
+ #geqo_effort = 5 # range 1-10
278
+ #geqo_pool_size = 0 # selects default based on effort
279
+ #geqo_generations = 0 # selects default based on effort
280
+ #geqo_selection_bias = 2.0 # range 1.5-2.0
281
+ #geqo_seed = 0.0 # range 0.0-1.0
282
+
283
+ # - Other Planner Options -
284
+
285
+ #default_statistics_target = 100 # range 1-10000
286
+ #constraint_exclusion = partition # on, off, or partition
287
+ #cursor_tuple_fraction = 0.1 # range 0.0-1.0
288
+ #from_collapse_limit = 8
289
+ #join_collapse_limit = 8 # 1 disables collapsing of explicit
290
+ # JOIN clauses
291
+
292
+
293
+ #------------------------------------------------------------------------------
294
+ # ERROR REPORTING AND LOGGING
295
+ #------------------------------------------------------------------------------
296
+
297
+ # - Where to Log -
298
+
299
+ #log_destination = 'stderr' # Valid values are combinations of
300
+ # stderr, csvlog, syslog, and eventlog,
301
+ # depending on platform. csvlog
302
+ # requires logging_collector to be on.
303
+
304
+ # This is used when logging to stderr:
305
+ #logging_collector = off # Enable capturing of stderr and csvlog
306
+ # into log files. Required to be on for
307
+ # csvlogs.
308
+ # (change requires restart)
309
+
310
+ # These are only used if logging_collector is on:
311
+ #log_directory = 'pg_log' # directory where log files are written,
312
+ # can be absolute or relative to PGDATA
313
+ #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
314
+ # can include strftime() escapes
315
+ #log_file_mode = 0600 # creation mode for log files,
316
+ # begin with 0 to use octal notation
317
+ #log_truncate_on_rotation = off # If on, an existing log file with the
318
+ # same name as the new log file will be
319
+ # truncated rather than appended to.
320
+ # But such truncation only occurs on
321
+ # time-driven rotation, not on restarts
322
+ # or size-driven rotation. Default is
323
+ # off, meaning append to existing files
324
+ # in all cases.
325
+ #log_rotation_age = 1d # Automatic rotation of logfiles will
326
+ # happen after that time. 0 disables.
327
+ #log_rotation_size = 10MB # Automatic rotation of logfiles will
328
+ # happen after that much log output.
329
+ # 0 disables.
330
+
331
+ # These are relevant when logging to syslog:
332
+ #syslog_facility = 'LOCAL0'
333
+ #syslog_ident = 'postgres'
334
+
335
+ # This is only relevant when logging to eventlog (win32):
336
+ #event_source = 'PostgreSQL'
337
+
338
+ # - When to Log -
339
+
340
+ #client_min_messages = notice # values in order of decreasing detail:
341
+ # debug5
342
+ # debug4
343
+ # debug3
344
+ # debug2
345
+ # debug1
346
+ # log
347
+ # notice
348
+ # warning
349
+ # error
350
+
351
+ #log_min_messages = warning # values in order of decreasing detail:
352
+ # debug5
353
+ # debug4
354
+ # debug3
355
+ # debug2
356
+ # debug1
357
+ # info
358
+ # notice
359
+ # warning
360
+ # error
361
+ # log
362
+ # fatal
363
+ # panic
364
+
365
+ #log_min_error_statement = error # values in order of decreasing detail:
366
+ # debug5
367
+ # debug4
368
+ # debug3
369
+ # debug2
370
+ # debug1
371
+ # info
372
+ # notice
373
+ # warning
374
+ # error
375
+ # log
376
+ # fatal
377
+ # panic (effectively off)
378
+
379
+ #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements
380
+ # and their durations, > 0 logs only
381
+ # statements running at least this number
382
+ # of milliseconds
383
+
384
+
385
+ # - What to Log -
386
+
387
+ #debug_print_parse = off
388
+ #debug_print_rewritten = off
389
+ #debug_print_plan = off
390
+ #debug_pretty_print = on
391
+ #log_checkpoints = off
392
+ #log_connections = off
393
+ #log_disconnections = off
394
+ #log_duration = off
395
+ #log_error_verbosity = default # terse, default, or verbose messages
396
+ #log_hostname = off
397
+ log_line_prefix = '%t ' # special values:
398
+ # %a = application name
399
+ # %u = user name
400
+ # %d = database name
401
+ # %r = remote host and port
402
+ # %h = remote host
403
+ # %p = process ID
404
+ # %t = timestamp without milliseconds
405
+ # %m = timestamp with milliseconds
406
+ # %i = command tag
407
+ # %e = SQL state
408
+ # %c = session ID
409
+ # %l = session line number
410
+ # %s = session start timestamp
411
+ # %v = virtual transaction ID
412
+ # %x = transaction ID (0 if none)
413
+ # %q = stop here in non-session
414
+ # processes
415
+ # %% = '%'
416
+ # e.g. '<%u%%%d> '
417
+ #log_lock_waits = off # log lock waits >= deadlock_timeout
418
+ #log_statement = 'none' # none, ddl, mod, all
419
+ #log_temp_files = -1 # log temporary files equal or larger
420
+ # than the specified size in kilobytes;
421
+ # -1 disables, 0 logs all temp files
422
+ log_timezone = 'UTC'
423
+
424
+
425
+ #------------------------------------------------------------------------------
426
+ # RUNTIME STATISTICS
427
+ #------------------------------------------------------------------------------
428
+
429
+ # - Query/Index Statistics Collector -
430
+
431
+ #track_activities = on
432
+ #track_counts = on
433
+ #track_io_timing = off
434
+ #track_functions = none # none, pl, all
435
+ #track_activity_query_size = 1024 # (change requires restart)
436
+ #update_process_title = on
437
+ #stats_temp_directory = 'pg_stat_tmp'
438
+
439
+
440
+ # - Statistics Monitoring -
441
+
442
+ #log_parser_stats = off
443
+ #log_planner_stats = off
444
+ #log_executor_stats = off
445
+ #log_statement_stats = off
446
+
447
+
448
+ #------------------------------------------------------------------------------
449
+ # AUTOVACUUM PARAMETERS
450
+ #------------------------------------------------------------------------------
451
+
452
+ #autovacuum = on # Enable autovacuum subprocess? 'on'
453
+ # requires track_counts to also be on.
454
+ #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
455
+ # their durations, > 0 logs only
456
+ # actions running at least this number
457
+ # of milliseconds.
458
+ #autovacuum_max_workers = 3 # max number of autovacuum subprocesses
459
+ # (change requires restart)
460
+ #autovacuum_naptime = 1min # time between autovacuum runs
461
+ #autovacuum_vacuum_threshold = 50 # min number of row updates before
462
+ # vacuum
463
+ #autovacuum_analyze_threshold = 50 # min number of row updates before
464
+ # analyze
465
+ #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
466
+ #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
467
+ #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
468
+ # (change requires restart)
469
+ #autovacuum_multixact_freeze_max_age = 400000000 # maximum Multixact age
470
+ # before forced vacuum
471
+ # (change requires restart)
472
+ #autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
473
+ # autovacuum, in milliseconds;
474
+ # -1 means use vacuum_cost_delay
475
+ #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
476
+ # autovacuum, -1 means use
477
+ # vacuum_cost_limit
478
+
479
+
480
+ #------------------------------------------------------------------------------
481
+ # CLIENT CONNECTION DEFAULTS
482
+ #------------------------------------------------------------------------------
483
+
484
+ # - Statement Behavior -
485
+
486
+ #search_path = '"$user",public' # schema names
487
+ #default_tablespace = '' # a tablespace name, '' uses the default
488
+ #temp_tablespaces = '' # a list of tablespace names, '' uses
489
+ # only default tablespace
490
+ #check_function_bodies = on
491
+ #default_transaction_isolation = 'read committed'
492
+ #default_transaction_read_only = off
493
+ #default_transaction_deferrable = off
494
+ #session_replication_role = 'origin'
495
+ #statement_timeout = 0 # in milliseconds, 0 is disabled
496
+ #lock_timeout = 0 # in milliseconds, 0 is disabled
497
+ #vacuum_freeze_min_age = 50000000
498
+ #vacuum_freeze_table_age = 150000000
499
+ #vacuum_multixact_freeze_min_age = 5000000
500
+ #vacuum_multixact_freeze_table_age = 150000000
501
+ #bytea_output = 'hex' # hex, escape
502
+ #xmlbinary = 'base64'
503
+ #xmloption = 'content'
504
+
505
+ # - Locale and Formatting -
506
+
507
+ datestyle = 'iso, mdy'
508
+ #intervalstyle = 'postgres'
509
+ timezone = 'UTC'
510
+ #timezone_abbreviations = 'Default' # Select the set of available time zone
511
+ # abbreviations. Currently, there are
512
+ # Default
513
+ # Australia
514
+ # India
515
+ # You can create your own file in
516
+ # share/timezonesets/.
517
+ #extra_float_digits = 0 # min -15, max 3
518
+ #client_encoding = sql_ascii # actually, defaults to database
519
+ # encoding
520
+
521
+ # These settings are initialized by initdb, but they can be changed.
522
+ lc_messages = 'en_US.UTF-8' # locale for system error message
523
+ # strings
524
+ lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
525
+ lc_numeric = 'en_US.UTF-8' # locale for number formatting
526
+ lc_time = 'en_US.UTF-8' # locale for time formatting
527
+
528
+ # default configuration for text search
529
+ default_text_search_config = 'pg_catalog.english'
530
+
531
+ # - Other Defaults -
532
+
533
+ #dynamic_library_path = '$libdir'
534
+ #local_preload_libraries = ''
535
+
536
+
537
+ #------------------------------------------------------------------------------
538
+ # LOCK MANAGEMENT
539
+ #------------------------------------------------------------------------------
540
+
541
+ #deadlock_timeout = 1s
542
+ #max_locks_per_transaction = 64 # min 10
543
+ # (change requires restart)
544
+ # Note: Each lock table slot uses ~270 bytes of shared memory, and there are
545
+ # max_locks_per_transaction * (max_connections + max_prepared_transactions)
546
+ # lock table slots.
547
+ #max_pred_locks_per_transaction = 64 # min 10
548
+ # (change requires restart)
549
+
550
+
551
+ #------------------------------------------------------------------------------
552
+ # VERSION/PLATFORM COMPATIBILITY
553
+ #------------------------------------------------------------------------------
554
+
555
+ # - Previous PostgreSQL Versions -
556
+
557
+ #array_nulls = on
558
+ #backslash_quote = safe_encoding # on, off, or safe_encoding
559
+ #default_with_oids = off
560
+ #escape_string_warning = on
561
+ #lo_compat_privileges = off
562
+ #quote_all_identifiers = off
563
+ #sql_inheritance = on
564
+ #standard_conforming_strings = on
565
+ #synchronize_seqscans = on
566
+
567
+ # - Other Platforms and Clients -
568
+
569
+ #transform_null_equals = off
570
+
571
+
572
+ #------------------------------------------------------------------------------
573
+ # ERROR HANDLING
574
+ #------------------------------------------------------------------------------
575
+
576
+ #exit_on_error = off # terminate session on any error?
577
+ #restart_after_crash = on # reinitialize after backend crash?
578
+
579
+
580
+ #------------------------------------------------------------------------------
581
+ # CONFIG FILE INCLUDES
582
+ #------------------------------------------------------------------------------
583
+
584
+ # These options allow settings to be loaded from files other than the
585
+ # default postgresql.conf.
586
+
587
+ #include_dir = 'conf.d' # include files ending in '.conf' from
588
+ # directory 'conf.d'
589
+ #include_if_exists = 'exists.conf' # include file only if it exists
590
+ #include = 'special.conf' # include file
591
+
592
+
593
+ #------------------------------------------------------------------------------
594
+ # CUSTOMIZED OPTIONS
595
+ #------------------------------------------------------------------------------
596
+
597
+ # Add settings for extensions here
598
+ # tcpip_socket = true
@@ -0,0 +1,9 @@
1
+ # Automatic startup configuration
2
+ # auto: automatically start/stop the cluster in the init script
3
+ # manual: do not start/stop in init scripts, but allow manual startup with
4
+ # pg_ctlcluster
5
+ # disabled: do not allow manual startup with pg_ctlcluster (this can be easily
6
+ # circumvented and is only meant to be a small protection for
7
+ # accidents).
8
+
9
+ auto
@@ -0,0 +1,4 @@
1
+ #! /usr/bin/env bash
2
+
3
+ /usr/bin/createuser -s -d -r -e -P vagrant
4
+ /usr/bin/psql -U postgres -d postgres -c "alter user vagrant with password 'vagrant';"
@@ -0,0 +1 @@
1
+ alter user vagrant with password 'vagrant';
@@ -0,0 +1 @@
1
+ CREATE EXTENSION adminpack;
@@ -0,0 +1,11 @@
1
+ -- Enable PostGIS (includes raster)
2
+ CREATE EXTENSION postgis;
3
+
4
+ -- Enable Topology
5
+ CREATE EXTENSION postgis_topology;
6
+
7
+ -- fuzzy matching needed for Tiger
8
+ CREATE EXTENSION fuzzystrmatch;
9
+
10
+ -- Enable US Tiger Geocoder
11
+ CREATE EXTENSION postgis_tiger_geocoder;