taperole 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/README.md +2 -14
  4. data/lib/tape/installer.rb +0 -15
  5. data/roles/nginx/tasks/main.yml +1 -1
  6. data/roles/unicorn_activate/tasks/main.yml +9 -14
  7. data/taperole.gemspec +1 -1
  8. data/templates/base/omnibox.example.yml +1 -1
  9. data/templates/static_html/omnibox.example.yml +1 -1
  10. data/vendor/ANXS.postgresql/.gitignore +9 -0
  11. data/vendor/ANXS.postgresql/.travis.yml +18 -0
  12. data/vendor/ANXS.postgresql/LICENSE +21 -0
  13. data/vendor/ANXS.postgresql/README.md +64 -0
  14. data/vendor/ANXS.postgresql/Vagrantfile +16 -0
  15. data/vendor/ANXS.postgresql/defaults/main.yml +616 -0
  16. data/vendor/ANXS.postgresql/handlers/main.yml +6 -0
  17. data/vendor/ANXS.postgresql/meta/.galaxy_install_info +1 -0
  18. data/vendor/ANXS.postgresql/meta/main.yml +17 -0
  19. data/vendor/ANXS.postgresql/tasks/configure.yml +58 -0
  20. data/vendor/ANXS.postgresql/tasks/databases.yml +67 -0
  21. data/vendor/ANXS.postgresql/tasks/extensions/contrib.yml +11 -0
  22. data/vendor/ANXS.postgresql/tasks/extensions/dev_headers.yml +10 -0
  23. data/vendor/ANXS.postgresql/tasks/extensions/postgis.yml +14 -0
  24. data/vendor/ANXS.postgresql/tasks/extensions.yml +8 -0
  25. data/vendor/ANXS.postgresql/tasks/install.yml +34 -0
  26. data/vendor/ANXS.postgresql/tasks/main.yml +23 -0
  27. data/vendor/ANXS.postgresql/tasks/monit.yml +6 -0
  28. data/vendor/ANXS.postgresql/tasks/users.yml +18 -0
  29. data/vendor/ANXS.postgresql/tasks/users_privileges.yml +16 -0
  30. data/vendor/ANXS.postgresql/templates/etc_monit_conf.d_postgresql.j2 +6 -0
  31. data/vendor/ANXS.postgresql/templates/pg_hba.conf.j2 +39 -0
  32. data/vendor/ANXS.postgresql/templates/postgresql.conf.j2 +446 -0
  33. data/vendor/ANXS.postgresql/test.yml +8 -0
  34. data/vendor/ANXS.postgresql/vagrant-inventory +2 -0
  35. data/vendor/ANXS.postgresql/vars/test.yml +10 -0
  36. data/vendor/bennojoy.memcached/README.md +49 -0
  37. data/vendor/bennojoy.memcached/defaults/main.yml +8 -0
  38. data/vendor/bennojoy.memcached/handlers/main.yml +3 -0
  39. data/vendor/bennojoy.memcached/meta/.galaxy_install_info +1 -0
  40. data/vendor/bennojoy.memcached/meta/main.yml +26 -0
  41. data/vendor/bennojoy.memcached/tasks/main.yml +30 -0
  42. data/vendor/bennojoy.memcached/templates/memcached_debian.j2 +49 -0
  43. data/vendor/bennojoy.memcached/templates/memcached_redhat.j2 +5 -0
  44. data/vendor/bennojoy.memcached/vars/main.yml +14 -0
  45. data/vendor/jnv.unattended-upgrades/.gitignore +1 -0
  46. data/vendor/jnv.unattended-upgrades/.travis.yml +20 -0
  47. data/vendor/jnv.unattended-upgrades/LICENSE +339 -0
  48. data/vendor/jnv.unattended-upgrades/README.md +105 -0
  49. data/vendor/jnv.unattended-upgrades/Vagrantfile +22 -0
  50. data/vendor/jnv.unattended-upgrades/ansible.cfg +3 -0
  51. data/vendor/jnv.unattended-upgrades/defaults/main.yml +55 -0
  52. data/vendor/jnv.unattended-upgrades/files/auto-upgrades +4 -0
  53. data/vendor/jnv.unattended-upgrades/handlers/main.yml +2 -0
  54. data/vendor/jnv.unattended-upgrades/meta/.galaxy_install_info +1 -0
  55. data/vendor/jnv.unattended-upgrades/meta/main.yml +38 -0
  56. data/vendor/jnv.unattended-upgrades/role.yml +4 -0
  57. data/vendor/jnv.unattended-upgrades/tasks/main.yml +19 -0
  58. data/vendor/jnv.unattended-upgrades/templates/unattended-upgrades.j2 +78 -0
  59. data/vendor/jnv.unattended-upgrades/vars/Debian.yml +3 -0
  60. data/vendor/jnv.unattended-upgrades/vars/Ubuntu.yml +3 -0
  61. data/vendor/leonelgalan.node/.gitignore +2 -0
  62. data/vendor/leonelgalan.node/.travis.yml +13 -0
  63. data/vendor/leonelgalan.node/LICENSE +21 -0
  64. data/vendor/leonelgalan.node/README.md +50 -0
  65. data/vendor/leonelgalan.node/Vagrantfile +16 -0
  66. data/vendor/leonelgalan.node/defaults/main.yml +2 -0
  67. data/vendor/leonelgalan.node/handlers/main.yml +2 -0
  68. data/vendor/leonelgalan.node/meta/.galaxy_install_info +1 -0
  69. data/vendor/leonelgalan.node/meta/main.yml +21 -0
  70. data/vendor/leonelgalan.node/requirements.yml +3 -0
  71. data/vendor/leonelgalan.node/site.yml +8 -0
  72. data/vendor/leonelgalan.node/tasks/main.yml +35 -0
  73. data/vendor/leonelgalan.node/vars/main.yml +2 -0
  74. data/vendor/lxhunter.apt/.gitignore +41 -0
  75. data/vendor/lxhunter.apt/.travis.yml +12 -0
  76. data/vendor/lxhunter.apt/README.md +105 -0
  77. data/vendor/lxhunter.apt/Vagrantfile +16 -0
  78. data/vendor/lxhunter.apt/defaults/main.yml +7 -0
  79. data/vendor/lxhunter.apt/meta/.galaxy_install_info +1 -0
  80. data/vendor/lxhunter.apt/meta/main.yml +13 -0
  81. data/vendor/lxhunter.apt/tasks/main.yml +38 -0
  82. data/vendor/lxhunter.apt/templates/apt_10general.j2 +4 -0
  83. data/vendor/lxhunter.apt/test.yml +5 -0
  84. data/vendor/nodesource.node/Dockerfile +16 -0
  85. data/vendor/nodesource.node/LICENSE.md +11 -0
  86. data/vendor/nodesource.node/README.md +46 -0
  87. data/vendor/nodesource.node/defaults/main.yml +3 -0
  88. data/vendor/nodesource.node/handlers/main.yml +2 -0
  89. data/vendor/nodesource.node/meta/.galaxy_install_info +1 -0
  90. data/vendor/nodesource.node/meta/main.yml +18 -0
  91. data/vendor/nodesource.node/role.yml +6 -0
  92. data/vendor/nodesource.node/tasks/main.yml +26 -0
  93. data/vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2 +5 -0
  94. data/vendor/nodesource.node/tests/localhosts +2 -0
  95. data/vendor/nodesource.node/vars/main.yml +2 -0
  96. data/vendor/zzet.rbenv/.kitchen.yml +40 -0
  97. data/vendor/zzet.rbenv/.travis.yml +12 -0
  98. data/vendor/zzet.rbenv/README.md +100 -0
  99. data/vendor/zzet.rbenv/defaults/main.yml +20 -0
  100. data/vendor/zzet.rbenv/files/default-gems +1 -0
  101. data/vendor/zzet.rbenv/files/gemrc +4 -0
  102. data/vendor/zzet.rbenv/files/vars +1 -0
  103. data/vendor/zzet.rbenv/handlers/main.yml +5 -0
  104. data/vendor/zzet.rbenv/meta/.galaxy_install_info +1 -0
  105. data/vendor/zzet.rbenv/meta/main.yml +27 -0
  106. data/vendor/zzet.rbenv/role.yml +10 -0
  107. data/vendor/zzet.rbenv/tasks/apt_build_depends.yml +15 -0
  108. data/vendor/zzet.rbenv/tasks/homebrew_build_depends.yml +10 -0
  109. data/vendor/zzet.rbenv/tasks/main.yml +192 -0
  110. data/vendor/zzet.rbenv/tasks/pacman_build_depends.yml +2 -0
  111. data/vendor/zzet.rbenv/tasks/yum_build_depends.yml +15 -0
  112. data/vendor/zzet.rbenv/templates/rbenv.sh.j2 +11 -0
  113. data/vendor/zzet.rbenv/test/integration/default/serverspec/rbenv_spec.rb +26 -0
  114. data/vendor/zzet.rbenv/test/integration/helpers/serverspec/spec_helper.rb +10 -0
  115. data/vendor/zzet.rbenv/test/integration/site.yml +8 -0
  116. data/vendor/zzet.rbenv/vars/main.yml +1 -0
  117. data/vendor/zzet.rbenv/vars/system.yml +2 -0
  118. data/vendor/zzet.rbenv/vars/user.yml +2 -0
  119. metadata +111 -2
@@ -0,0 +1,446 @@
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
+ data_directory = '{{postgresql_data_directory}}'
39
+
40
+ hba_file = '{{postgresql_hba_file}}'
41
+
42
+ ident_file = '{{postgresql_ident_file}}'
43
+
44
+ external_pid_file = '{{postgresql_external_pid_file}}'
45
+
46
+
47
+ #------------------------------------------------------------------------------
48
+ # CONNECTIONS AND AUTHENTICATION
49
+ #------------------------------------------------------------------------------
50
+
51
+ listen_addresses = '{{postgresql_listen_addresses|join(',')}}'
52
+ port = {{postgresql_port}}
53
+
54
+ max_connections = {{postgresql_max_connections}}
55
+ superuser_reserved_connections = {{postgresql_superuser_reserved_connections}}
56
+
57
+ unix_socket_directories = '{{postgresql_unix_socket_directories|join(',')}}'
58
+ unix_socket_group = '{{postgresql_unix_socket_group}}'
59
+ unix_socket_permissions = {{postgresql_unix_socket_permissions}}
60
+
61
+ bonjour = {{'on' if postgresql_bonjour else 'off'}}
62
+ bonjour_name = '{{postgresql_bonjour_name}}'
63
+
64
+
65
+ # - Security and Authentication -
66
+
67
+ authentication_timeout = {{postgresql_authentication_timeout}}
68
+ ssl = {{'on' if postgresql_ssl else 'off'}}
69
+ ssl_ciphers = '{{postgresql_ssl_ciphers|join(':')}}'
70
+ ssl_renegotiation_limit = {{postgresql_ssl_renegotiation_limit}}
71
+ ssl_cert_file = '{{postgresql_ssl_cert_file}}'
72
+ ssl_key_file = '{{postgresql_ssl_key_file}}'
73
+ ssl_ca_file = '{{postgresql_ssl_ca_file}}'
74
+ ssl_crl_file = '{{postgresql_ssl_crl_file}}'
75
+ password_encryption = {{'on' if postgresql_password_encryption else 'off'}}
76
+ db_user_namespace = {{'on' if postgresql_db_user_namespace else 'off'}}
77
+
78
+ # Kerberos and GSSAPI
79
+ krb_server_keyfile = '{{postgresql_krb_server_keyfile}}'
80
+ krb_srvname = '{{postgresql_krb_srvname}}'
81
+ krb_caseins_users = {{'on' if postgresql_db_user_namespace else 'off'}}
82
+
83
+ # TCP Keepalives, 0 selects the system default
84
+ tcp_keepalives_idle = {{postgresql_tcp_keepalives_idle}}
85
+ tcp_keepalives_interval = {{postgresql_tcp_keepalives_interval}}
86
+ tcp_keepalives_count = {{postgresql_tcp_keepalives_count}}
87
+
88
+
89
+ #------------------------------------------------------------------------------
90
+ # RESOURCE USAGE (except WAL)
91
+ #------------------------------------------------------------------------------
92
+
93
+ # - Memory -
94
+
95
+ shared_buffers = {{postgresql_shared_buffers}}
96
+ temp_buffers = {{postgresql_temp_buffers}}
97
+
98
+ max_prepared_transactions = {{postgresql_max_prepared_transactions}}
99
+
100
+ work_mem = {{postgresql_work_mem}}
101
+ maintenance_work_mem = {{postgresql_maintenance_work_mem}}
102
+ max_stack_depth = {{postgresql_max_stack_depth}}
103
+
104
+
105
+ # - Disk -
106
+
107
+ temp_file_limit = {{postgresql_temp_file_limit}}
108
+
109
+
110
+ # - Kernel Resource Usage -
111
+
112
+ max_files_per_process = {{postgresql_max_files_per_process}}
113
+ shared_preload_libraries = '{{postgresql_shared_preload_libraries|join(',')}}'
114
+
115
+
116
+ # - Cost-Based Vacuum Delay -
117
+
118
+ vacuum_cost_delay = {{postgresql_vacuum_cost_delay}}
119
+ vacuum_cost_page_hit = {{postgresql_vacuum_cost_page_hit}}
120
+ vacuum_cost_page_miss = {{postgresql_vacuum_cost_page_miss}}
121
+ vacuum_cost_page_dirty = {{postgresql_vacuum_cost_page_dirty}}
122
+ vacuum_cost_limit = {{postgresql_vacuum_cost_limit}}
123
+
124
+
125
+ # - Background Writer -
126
+
127
+ bgwriter_delay = {{postgresql_bgwriter_delay}}
128
+ bgwriter_lru_maxpages = {{postgresql_bgwriter_lru_maxpages}}
129
+ bgwriter_lru_multiplier = {{postgresql_bgwriter_lru_multiplier}}
130
+
131
+
132
+ # - Asynchronous Behavior -
133
+
134
+ effective_io_concurrency = {{postgresql_effective_io_concurrency}}
135
+
136
+
137
+ #------------------------------------------------------------------------------
138
+ # WRITE AHEAD LOG
139
+ #------------------------------------------------------------------------------
140
+
141
+ # - Settings -
142
+
143
+ wal_level = {{postgresql_wal_level}}
144
+ fsync = {{'on' if postgresql_fsync else 'off'}}
145
+
146
+ synchronous_commit = {{postgresql_synchronous_commit}}
147
+
148
+ wal_sync_method = {{postgresql_wal_sync_method}}
149
+
150
+ full_page_writes = {{'on' if postgresql_full_page_writes else 'off'}}
151
+
152
+ wal_buffers = {{postgresql_wal_buffers}}
153
+ wal_writer_delay = {{postgresql_wal_writer_delay}}
154
+ commit_delay = {{postgresql_commit_delay}}
155
+ commit_siblings = {{postgresql_commit_siblings}}
156
+
157
+
158
+ # - Checkpoints -
159
+
160
+ checkpoint_segments = {{postgresql_checkpoint_segments}}
161
+ checkpoint_timeout = {{postgresql_checkpoint_timeout}}
162
+ checkpoint_completion_target = {{postgresql_checkpoint_completion_target}}
163
+ checkpoint_warning = {{postgresql_checkpoint_warning}}
164
+
165
+
166
+ # - Archiving -
167
+
168
+ archive_mode = {{'on' if postgresql_archive_mode else 'off'}}
169
+ archive_command = '{{postgresql_archive_command}}'
170
+ archive_timeout = {{postgresql_archive_timeout}}
171
+
172
+
173
+ #------------------------------------------------------------------------------
174
+ # REPLICATION
175
+ #------------------------------------------------------------------------------
176
+
177
+ # - Sending Server(s) -
178
+
179
+ max_wal_senders = {{postgresql_max_wal_senders}}
180
+ wal_keep_segments = {{postgresql_wal_keep_segments}}
181
+ wal_sender_timeout = {{postgresql_wal_sender_timeout}}
182
+
183
+
184
+ # - Master Server -
185
+
186
+ synchronous_standby_names = '{{postgresql_synchronous_standby_names|join(',')}}'
187
+
188
+ vacuum_defer_cleanup_age = {{postgresql_vacuum_defer_cleanup_age}}
189
+
190
+
191
+ # - Standby Servers -
192
+
193
+ hot_standby = {{'on' if postgresql_hot_standby else 'off'}}
194
+ max_standby_archive_delay = {{postgresql_max_standby_archive_delay}}
195
+ max_standby_streaming_delay = {{postgresql_max_standby_streaming_delay}}
196
+ wal_receiver_status_interval = {{postgresql_wal_receiver_status_interval}}
197
+ hot_standby_feedback = {{'on' if postgresql_hot_standby_feedback or 'off'}}
198
+ wal_receiver_timeout = {{postgresql_wal_receiver_timeout}}
199
+
200
+
201
+ #------------------------------------------------------------------------------
202
+ # QUERY TUNING
203
+ #------------------------------------------------------------------------------
204
+
205
+ # - Planner Method Configuration -
206
+
207
+ enable_bitmapscan = {{'on' if postgresql_enable_bitmapscan else 'off'}}
208
+ enable_hashagg = {{'on' if postgresql_enable_hashagg else 'off'}}
209
+ enable_hashjoin = {{'on' if postgresql_enable_hashjoin else 'off'}}
210
+ enable_indexscan = {{'on' if postgresql_enable_indexscan else 'off'}}
211
+ enable_indexonlyscan = {{'on' if postgresql_enable_indexonlyscan else 'off'}}
212
+ enable_material = {{'on' if postgresql_enable_material else 'off'}}
213
+ enable_mergejoin = {{'on' if postgresql_enable_mergejoin else 'off'}}
214
+ enable_nestloop = {{'on' if postgresql_enable_nestloop else 'off'}}
215
+ enable_seqscan = {{'on' if postgresql_enable_seqscan else 'off'}}
216
+ enable_sort = {{'on' if postgresql_enable_sort else 'off'}}
217
+ enable_tidscan = {{'on' if postgresql_enable_tidscan else 'off'}}
218
+
219
+
220
+ # - Planner Cost Constants -
221
+
222
+ seq_page_cost = {{postgresql_seq_page_cost}}
223
+ random_page_cost = {{postgresql_random_page_cost}}
224
+ cpu_tuple_cost = {{postgresql_cpu_tuple_cost}}
225
+ cpu_index_tuple_cost = {{postgresql_cpu_index_tuple_cost}}
226
+ cpu_operator_cost = {{postgresql_cpu_operator_cost}}
227
+ effective_cache_size = {{postgresql_effective_cache_size}}
228
+
229
+
230
+ # - Genetic Query Optimizer -
231
+
232
+ geqo = {{'on' if postgresql_enable_tidscan else 'off'}}
233
+ geqo_threshold = {{postgresql_geqo_threshold}}
234
+ geqo_effort = {{postgresql_geqo_effort}}
235
+ geqo_pool_size = {{postgresql_geqo_pool_size}}
236
+ geqo_generations = {{postgresql_geqo_generations}}
237
+ geqo_selection_bias = {{postgresql_geqo_selection_bias}}
238
+ geqo_seed = {{postgresql_geqo_seed}}
239
+
240
+
241
+ # - Other Planner Options -
242
+
243
+ default_statistics_target = {{postgresql_default_statistics_target}}
244
+ constraint_exclusion = {{postgresql_constraint_exclusion}}
245
+ cursor_tuple_fraction = {{postgresql_cursor_tuple_fraction}}
246
+ from_collapse_limit = {{postgresql_from_collapse_limit}}
247
+ join_collapse_limit = {{postgresql_join_collapse_limit}}
248
+
249
+
250
+ #------------------------------------------------------------------------------
251
+ # ERROR REPORTING AND LOGGING
252
+ #------------------------------------------------------------------------------
253
+
254
+ # - Where to Log -
255
+
256
+ log_destination = '{{postgresql_log_destination}}'
257
+
258
+ logging_collector = {{'on' if postgresql_logging_collector else 'off'}}
259
+
260
+ log_directory = '{{postgresql_log_directory}}'
261
+ log_filename = '{{postgresql_log_filename}}'
262
+ log_file_mode = {{postgresql_log_file_mode}}
263
+ log_truncate_on_rotation = {{'on' if postgresql_log_truncate_on_rotation else 'off'}}
264
+ log_rotation_age = {{postgresql_log_rotation_age}}
265
+ log_rotation_size = {{postgresql_log_rotation_size}}
266
+
267
+ syslog_facility = '{{postgresql_syslog_facility}}'
268
+ syslog_ident = '{{postgresql_syslog_ident}}'
269
+
270
+ event_source = '{{postgresql_event_source}}'
271
+
272
+
273
+ # - When to Log -
274
+
275
+ client_min_messages = {{postgresql_client_min_messages}}
276
+
277
+ log_min_messages = {{postgresql_log_min_messages}}
278
+ log_min_error_statement = {{postgresql_log_min_error_statement}}
279
+ log_min_duration_statement = {{postgresql_log_min_duration_statement}}
280
+
281
+
282
+ # - What to Log -
283
+
284
+ debug_print_parse = {{'on' if postgresql_debug_print_parse else 'off'}}
285
+ debug_print_rewritten = {{'on' if postgresql_debug_print_rewritten else 'off'}}
286
+ debug_print_plan = {{'on' if postgresql_debug_print_plan else 'off'}}
287
+ debug_pretty_print = {{'on' if postgresql_debug_pretty_print else 'off'}}
288
+ log_checkpoints = {{'on' if postgresql_log_checkpoints else 'off'}}
289
+ log_connections = {{'on' if postgresql_log_connections else 'off'}}
290
+ log_disconnections = {{'on' if postgresql_log_disconnections else 'off'}}
291
+ log_duration = {{'on' if postgresql_log_duration else 'off'}}
292
+ log_error_verbosity = {{postgresql_log_error_verbosity}} # terse, default, or verbose messages
293
+ log_hostname = {{'on' if postgresql_log_duration else 'off'}}
294
+ log_line_prefix = '{{postgresql_log_line_prefix}}'
295
+ log_lock_waits = {{'on' if postgresql_log_lock_waits else 'off'}}
296
+ log_statement = '{{postgresql_log_statement}}'
297
+ log_temp_files = {{postgresql_log_temp_files}}
298
+ log_timezone = '{{postgresql_log_timezone}}'
299
+
300
+
301
+ #------------------------------------------------------------------------------
302
+ # RUNTIME STATISTICS
303
+ #------------------------------------------------------------------------------
304
+
305
+ # - Query/Index Statistics Collector -
306
+
307
+ track_activities = {{'on' if postgresql_track_activities else 'off'}}
308
+ track_counts = {{'on' if postgresql_track_counts else 'off'}}
309
+ track_io_timing = {{'on' if postgresql_track_io_timing else 'off'}}
310
+ track_functions = {{postgresql_track_functions}} # none, pl, all
311
+ track_activity_query_size = {{postgresql_track_activity_query_size}}
312
+ update_process_title = {{'on' if postgresql_update_process_title else 'off'}}
313
+ stats_temp_directory = '{{postgresql_stats_temp_directory}}'
314
+
315
+
316
+ # - Statistics Monitoring -
317
+
318
+ log_parser_stats = {{'on' if postgresql_log_parser_stats else 'off'}}
319
+ log_planner_stats = {{'on' if postgresql_log_planner_stats else 'off'}}
320
+ log_executor_stats = {{'on' if postgresql_log_executor_stats else 'off'}}
321
+ log_statement_stats = {{'on' if postgresql_log_statement_stats else 'off'}}
322
+
323
+
324
+ #------------------------------------------------------------------------------
325
+ # AUTOVACUUM PARAMETERS
326
+ #------------------------------------------------------------------------------
327
+
328
+ autovacuum = {{'on' if postgresql_autovacuum else 'off'}}
329
+ log_autovacuum_min_duration = {{postgresql_log_autovacuum_min_duration}}
330
+ autovacuum_max_workers = {{postgresql_autovacuum_max_workers}}
331
+ autovacuum_naptime = {{postgresql_autovacuum_naptime}}
332
+ autovacuum_vacuum_threshold = {{postgresql_autovacuum_vacuum_threshold}}
333
+ autovacuum_analyze_threshold = {{postgresql_autovacuum_analyze_threshold}}
334
+ autovacuum_vacuum_scale_factor = {{postgresql_autovacuum_vacuum_scale_factor}}
335
+ autovacuum_analyze_scale_factor = {{postgresql_autovacuum_analyze_scale_factor}}
336
+ autovacuum_freeze_max_age = {{postgresql_autovacuum_freeze_max_age}}
337
+ autovacuum_vacuum_cost_delay = {{postgresql_autovacuum_vacuum_cost_delay}}
338
+ autovacuum_vacuum_cost_limit = {{postgresql_autovacuum_vacuum_cost_limit}}
339
+
340
+
341
+ #------------------------------------------------------------------------------
342
+ # CLIENT CONNECTION DEFAULTS
343
+ #------------------------------------------------------------------------------
344
+
345
+ # - Statement Behavior -
346
+
347
+ search_path = '{{postgresql_search_path|join(',')}}'
348
+ default_tablespace = '{{postgresql_default_tablespace}}'
349
+ temp_tablespaces = '{{postgresql_temp_tablespaces|join(',')}}'
350
+
351
+ check_function_bodies = {{'on' if postgresql_check_function_bodies else 'off'}}
352
+ default_transaction_isolation = '{{postgresql_default_transaction_isolation}}'
353
+ default_transaction_read_only = {{'on' if postgresql_default_transaction_read_only else 'off'}}
354
+ default_transaction_deferrable = {{'on' if postgresql_default_transaction_deferrable else 'off'}}
355
+ session_replication_role = '{{postgresql_session_replication_role}}'
356
+
357
+ statement_timeout = {{postgresql_statement_timeout}}
358
+ lock_timeout = {{postgresql_lock_timeout}}
359
+ vacuum_freeze_min_age = {{postgresql_vacuum_freeze_min_age}}
360
+ vacuum_freeze_table_age = {{postgresql_vacuum_freeze_table_age}}
361
+
362
+ bytea_output = '{{postgresql_bytea_output}}'
363
+ xmlbinary = '{{postgresql_xmlbinary}}'
364
+ xmloption = '{{postgresql_xmloption}}'
365
+
366
+
367
+ # - Locale and Formatting -
368
+
369
+ datestyle = '{{postgresql_datestyle|join(',')}}'
370
+ intervalstyle = '{{postgresql_intervalstyle}}'
371
+ timezone = '{{postgresql_timezone}}'
372
+
373
+ timezone_abbreviations = '{{postgresql_timezone_abbreviations}}'
374
+
375
+ extra_float_digits = {{postgresql_extra_float_digits}}
376
+ client_encoding = {{postgresql_client_encoding}}
377
+
378
+ lc_messages = '{{postgresql_lc_messages}}'
379
+ lc_monetary = '{{postgresql_lc_monetary}}'
380
+ lc_numeric = '{{postgresql_lc_numeric}}'
381
+ lc_time = '{{postgresql_lc_time}}'
382
+
383
+ default_text_search_config = '{{postgresql_default_text_search_config}}'
384
+
385
+ dynamic_library_path = '{{postgresql_dynamic_library_path}}'
386
+ local_preload_libraries = '{{postgresql_local_preload_libraries|join(',')}}'
387
+
388
+
389
+ #------------------------------------------------------------------------------
390
+ # LOCK MANAGEMENT
391
+ #------------------------------------------------------------------------------
392
+
393
+ deadlock_timeout = {{postgresql_deadlock_timeout}}
394
+ max_locks_per_transaction = {{postgresql_max_locks_per_transaction}}
395
+
396
+ max_pred_locks_per_transaction = {{postgresql_max_pred_locks_per_transaction}}
397
+
398
+
399
+ #------------------------------------------------------------------------------
400
+ # VERSION/PLATFORM COMPATIBILITY
401
+ #------------------------------------------------------------------------------
402
+
403
+ # - Previous PostgreSQL Versions -
404
+
405
+ array_nulls = {{'on' if postgresql_array_nulls else 'off'}}
406
+ backslash_quote = {{postgresql_backslash_quote}} # on, off, or safe_encoding
407
+ default_with_oids = {{'on' if postgresql_default_with_oids else 'off'}}
408
+ escape_string_warning = {{'on' if postgresql_escape_string_warning else 'off'}}
409
+ lo_compat_privileges = {{'on' if postgresql_lo_compat_privileges else 'off'}}
410
+ quote_all_identifiers = {{'on' if postgresql_quote_all_identifiers else 'off'}}
411
+ sql_inheritance = {{'on' if postgresql_sql_inheritance else 'off'}}
412
+ standard_conforming_strings = {{'on' if postgresql_standard_conforming_strings else 'off'}}
413
+ synchronize_seqscans = {{'on' if postgresql_synchronize_seqscans else 'off'}}
414
+
415
+
416
+ # - Other Platforms and Clients -
417
+
418
+ transform_null_equals = {{'on' if postgresql_transform_null_equals else 'off'}}
419
+
420
+
421
+ #------------------------------------------------------------------------------
422
+ # ERROR HANDLING
423
+ #------------------------------------------------------------------------------
424
+
425
+ exit_on_error = {{'on' if postgresql_exit_on_error else 'off'}}
426
+ restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}}
427
+
428
+
429
+ #------------------------------------------------------------------------------
430
+ # CONFIG FILE INCLUDES
431
+ #------------------------------------------------------------------------------
432
+
433
+ # These options allow settings to be loaded from files other than the
434
+ # default postgresql.conf.
435
+
436
+ include_dir = 'conf.d' # include files ending in '.conf' from
437
+ # directory 'conf.d'
438
+ #include_if_exists = 'exists.conf' # include file only if it exists
439
+ #include = 'special.conf' # include file
440
+
441
+
442
+ #------------------------------------------------------------------------------
443
+ # CUSTOMIZED OPTIONS
444
+ #------------------------------------------------------------------------------
445
+
446
+ # Add settings for extensions here
@@ -0,0 +1,8 @@
1
+ - hosts: all
2
+ vars_files:
3
+ - defaults/main.yml
4
+ - vars/test.yml
5
+ tasks:
6
+ - include: tasks/main.yml
7
+ handlers:
8
+ - include: handlers/main.yml
@@ -0,0 +1,2 @@
1
+ [anxs]
2
+ anxs.local ansible_ssh_host=192.168.88.3 ansible_ssh_port=22
@@ -0,0 +1,10 @@
1
+ ---
2
+ blah: one
3
+ postgresql_databases:
4
+ - name: foobar
5
+ postgresql_users:
6
+ - name: baz
7
+ pass: pass
8
+ postgresql_user_privileges:
9
+ - name: baz
10
+ db: foobar
@@ -0,0 +1,49 @@
1
+ memcached
2
+ ========
3
+
4
+ This role helps to install a memcached server on the target host.
5
+
6
+ Requirements
7
+ ------------
8
+
9
+ This role requires Ansible 1.4 or higher, and platform requirements are listed
10
+ in the metadata file.
11
+
12
+ Role Variables
13
+ --------------
14
+
15
+ The variables that can be passed to this role and a brief description about
16
+ them are as follows:
17
+
18
+ memcached_port: 11211 # The port in which memcached server should be listening
19
+ memcached_listen_address: 0.0.0.0 # The IP address to listen on
20
+ memcached_max_conn: 1024 # The number of max concurrent connections it should accept
21
+ memcached_cache_size: 64 # The cache size
22
+ memcached_fs_file_max: 756024 # The kernel parameter for max number of file handles
23
+
24
+ Example
25
+ -------
26
+
27
+ The following play setup's memcached with a different port number and
28
+ available memory.
29
+
30
+ - hosts: all
31
+ sudo: true
32
+ roles:
33
+ - {role: bennojoy.memcached, memcached_port: 11244, memcached_cache_size: 512 }
34
+
35
+ Dependencies
36
+ ------------
37
+
38
+ None
39
+
40
+ License
41
+ -------
42
+
43
+ BSD
44
+
45
+ Author Information
46
+ ------------------
47
+
48
+ Benno Joy
49
+
@@ -0,0 +1,8 @@
1
+ ---
2
+
3
+ memcached_port: 11211
4
+ memcached_listen_address: 0.0.0.0
5
+ memcached_max_conn: 1024
6
+ memcached_cache_size: 64
7
+ memcached_fs_file_max: 756024
8
+
@@ -0,0 +1,3 @@
1
+ ---
2
+ - name: restart memcached
3
+ service: name=memcached state=restarted
@@ -0,0 +1 @@
1
+ {install_date: 'Fri Mar 20 18:33:18 2015', version: master}
@@ -0,0 +1,26 @@
1
+ ---
2
+ galaxy_info:
3
+ author: "Benno Joy"
4
+ company: AnsibleWorks
5
+ license: BSD
6
+ min_ansible_version: 1.4
7
+ platforms:
8
+ - name: EL
9
+ versions:
10
+ - 5
11
+ - 6
12
+ - name: Fedora
13
+ versions:
14
+ - 16
15
+ - 17
16
+ - 18
17
+ - name: Ubuntu
18
+ versions:
19
+ - precise
20
+ - quantal
21
+ - raring
22
+ - saucy
23
+ categories:
24
+ - web
25
+ dependencies: []
26
+
@@ -0,0 +1,30 @@
1
+ ---
2
+
3
+ - name: Install the memcached packages
4
+ yum: name={{ item }} state=present
5
+ with_items: memcached_redhat_pkgs
6
+ when: ansible_os_family == "RedHat"
7
+
8
+ - name: Install the memcached packages
9
+ apt: name={{ item }} state=present update_cache=yes
10
+ with_items: memcached_ubuntu_pkgs
11
+ environment: env
12
+ when: ansible_os_family == "Debian"
13
+
14
+ - name: Copy the client configuration file
15
+ template: src=memcached_redhat.j2 dest=/etc/sysconfig/memcached
16
+ notify:
17
+ - restart memcached
18
+ when: ansible_os_family == "RedHat"
19
+
20
+ - name: Copy the client configuration file
21
+ template: src=memcached_debian.j2 dest=/etc/memcached.conf
22
+ notify: restart memcached
23
+ when: ansible_os_family == "Debian"
24
+
25
+ - name: Set the max open file descriptors
26
+ sysctl: name=fs.file-max value={{ memcached_fs_file_max }} state=present ignoreerrors=yes
27
+
28
+ - name: start the memcached service
29
+ service: name=memcached state=started enabled=yes
30
+
@@ -0,0 +1,49 @@
1
+ # memcached default config file
2
+ # 2003 - Jay Bonci <jaybonci@debian.org>
3
+ # This configuration file is read by the start-memcached script provided as
4
+ # part of the Debian GNU/Linux distribution.
5
+
6
+ # Run memcached as a daemon. This command is implied, and is not needed for the
7
+ # daemon to run. See the README.Debian that comes with this package for more
8
+ # information.
9
+ -d
10
+
11
+ # Log memcached's output to /var/log/memcached
12
+ logfile /var/log/memcached.log
13
+
14
+ # Be verbose
15
+ # -v
16
+
17
+ # Be even more verbose (print client commands as well)
18
+ # -vv
19
+
20
+ # Start with a cap of 64 megs of memory. It's reasonable, and the daemon default
21
+ # Note that the daemon will grow to this size, but does not start out holding this much
22
+ # memory
23
+ -m {{ memcached_cache_size }}
24
+
25
+ # Default connection port is 11211
26
+ -p {{ memcached_port }}
27
+
28
+ # Run the daemon as root. The start-memcached will default to running as root if no
29
+ # -u command is present in this config file
30
+ -u memcache
31
+
32
+ # Specify which IP address to listen on. The default is to listen on all IP addresses
33
+ # This parameter is one of the only security measures that memcached has, so make sure
34
+ # it's listening on a firewalled interface.
35
+ -l {{ memcached_listen_address }}
36
+
37
+ # Limit the number of simultaneous incoming connections. The daemon default is 1024
38
+ -c {{ memcached_max_conn }}
39
+
40
+ # Lock down all paged memory. Consult with the README and homepage before you do this
41
+ # -k
42
+
43
+ # Return error when memory is exhausted (rather than removing items)
44
+ # -M
45
+
46
+ # Maximize core file limit
47
+ # -r
48
+
49
+
@@ -0,0 +1,5 @@
1
+ PORT={{ memcached_port }}
2
+ USER="memcached"
3
+ MAXCONN={{ memcached_max_conn }}
4
+ CACHESIZE={{ memcached_cache_size }}
5
+ OPTIONS="-l {{ memcached_listen_address }}"
@@ -0,0 +1,14 @@
1
+ ---
2
+
3
+ env:
4
+ RUNLEVEL: 1
5
+
6
+ memcached_redhat_pkgs:
7
+ - libselinux-python
8
+ - memcached
9
+
10
+ memcached_ubuntu_pkgs:
11
+ - python-selinux
12
+ - memcached
13
+
14
+
@@ -0,0 +1 @@
1
+ .vagrant/