Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added custom options in postgresql.conf file
Allow custom options to be added to postgresql.conf file
  • Loading branch information
franzhcs committed Feb 9, 2018
commit 3eb29a25c3e0d9fa60a060664ec5c4920458ef7d
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,12 @@ postgresql_exit_on_error: off
# Reinitialize after backend crash?
postgresql_restart_after_crash: on

#------------------------------------------------------------------------------
# OTHER OPTIONS
#------------------------------------------------------------------------------

# Additional options in the form of list of dictionaries (key, value)
postgresql_custom_options: []

#------------------------------------------------------------------------------
# PGTUNE
Expand Down
6 changes: 6 additions & 0 deletions templates/postgresql.conf-9.1.j2
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,9 @@ restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}} # r
#------------------------------------------------------------------------------

#custom_variable_classes = '' # list of custom variable class names

{% for option in postgresql_custom_options %}
{% for k,v in option.items() %}
{{k}} = {{v}}
{% endfor %}
{% endfor %}
5 changes: 5 additions & 0 deletions templates/postgresql.conf-9.2.j2
Original file line number Diff line number Diff line change
Expand Up @@ -577,3 +577,8 @@ restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}} # r
#------------------------------------------------------------------------------

# Add settings for extensions here
{% for option in postgresql_custom_options %}
{% for k,v in option.items() %}
{{k}} = {{v}}
{% endfor %}
{% endfor %}
5 changes: 5 additions & 0 deletions templates/postgresql.conf-9.3.j2
Original file line number Diff line number Diff line change
Expand Up @@ -599,3 +599,8 @@ include_dir = 'conf.d' # include files ending in '.conf' from
#------------------------------------------------------------------------------

# Add settings for extensions here
{% for option in postgresql_custom_options %}
{% for k,v in option.items() %}
{{k}} = {{v}}
{% endfor %}
{% endfor %}
5 changes: 5 additions & 0 deletions templates/postgresql.conf-9.4.j2
Original file line number Diff line number Diff line change
Expand Up @@ -617,3 +617,8 @@ include_dir = 'conf.d' # include files ending in '.conf' from
#------------------------------------------------------------------------------

# Add settings for extensions here
{% for option in postgresql_custom_options %}
{% for k,v in option.items() %}
{{k}} = {{v}}
{% endfor %}
{% endfor %}
5 changes: 5 additions & 0 deletions templates/postgresql.conf-9.5.j2
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,8 @@ include_dir = 'conf.d' # include files ending in '.conf' from
#------------------------------------------------------------------------------

# Add settings for extensions here
{% for option in postgresql_custom_options %}
{% for k,v in option.items() %}
{{k}} = {{v}}
{% endfor %}
{% endfor %}
5 changes: 5 additions & 0 deletions templates/postgresql.conf-9.6.j2
Original file line number Diff line number Diff line change
Expand Up @@ -633,3 +633,8 @@ include_dir = 'conf.d' # include files ending in '.conf' from
#------------------------------------------------------------------------------

# Add settings for extensions here
{% for option in postgresql_custom_options %}
{% for k,v in option.items() %}
{{k}} = {{v}}
{% endfor %}
{% endfor %}