Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give the possibility to pass extensions options to the config template #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nremond
Copy link

@nremond nremond commented Sep 26, 2016

No description provided.

@otakup0pe
Copy link
Member

Looks like test failing due to missing defaults ?

@nremond
Copy link
Author

nremond commented Sep 27, 2016

@otakup0pe yes, sorry. Just fixed that.

@@ -683,3 +683,6 @@ postgresql_pgdg_dists:
postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}"
postgresql_yum_repository_base_url: "http:https://yum.postgresql.org"
postgresql_yum_repository_url: "{{ postgresql_yum_repository_base_url }}/{{ postgresql_version }}/{{ ansible_os_family | lower }}/rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}/pgdg-{{ postgresql_pgdg_dists[ansible_distribution] }}{{ postgresql_version_terse }}-{{ postgresql_version }}-2.noarch.rpm"

# List of options from loaded extensions (optional)
postgresql_extensions_options: []
Copy link
Member

@otakup0pe otakup0pe Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is an example of this format? It looks like a free-form way of injecting config entries?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. My use-case is the following, I am using the pg_stat_statements extension and I would like to be able to add pg_stat_statements.track = all in the config.

Does this sound good to you or would you prefer passing something like { key: 'pg_stat_statements.track', value: 'all' } ?

@nremond
Copy link
Author

nremond commented Nov 3, 2016

I have updated my PR with a dictionary and an example of how to use it in the README.
What do you think of it @otakup0pe ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants