Skip to content

Conversation

@MichaelConrad
Copy link
Contributor

@MichaelConrad MichaelConrad commented Oct 3, 2016

  • Add configuration template for PostgreSQL 9.6
  • Update variables and comments in defaults/main.yml
  • Update test.yml to use 9.6
  • Add role options for 9.6 to .travis.yml
  • Update the 2.x version of Ansible in .travis.yml to 2.1.2.0
  • Use specific release numbers for each distribution / version

@MichaelConrad
Copy link
Contributor Author

Fixing issues with the yum repo URL...

postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}"
postgresql_yum_repository_base_url: "http://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"
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 }}-{{ postgresql_pgdg_releases.get(postgresql_pgdg_dists[ansible_distribution]).get(postgresql_version) }}.noarch.rpm"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a fan of this approach, but it works better than using "-2.noarch.rpm" in all cases (especially since 9.6 does not have a '2' release for Red Hat).

@MichaelConrad
Copy link
Contributor Author

Resolves issue #203.

Copy link

@arturmartins arturmartins left a comment

Choose a reason for hiding this comment

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

Could you add [*] as default value of postgresql_synchronous_standby_names, please?


# These settings are ignored on a standby server.

synchronous_standby_names = '{{postgresql_synchronous_standby_num_sync}} ({{postgresql_synchronous_standby_names|join(',')}})' # standby servers that provide sync rep

Choose a reason for hiding this comment

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

With the current default values, this line becomes:

synchronous_standby_names = '1 ()' # standby servers that provide sync rep

Unfortunately, it breaks postgres service.

Copy link

@arturmartins arturmartins Oct 10, 2016

Choose a reason for hiding this comment

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

This parameter specifies a list of standby servers using either of the following syntaxes:

num_sync ( standby_name [, ...] )   # >= 9.6
standby_name [, ...]                # < 9.6

https://www.postgresql.org/docs/9.6/static/runtime-config-replication.html

# standby servers that provide sync rep.
# number of sync standbys (>= 9.6) and comma-separated list of application_name from standby(s)
postgresql_synchronous_standby_num_sync: 1
postgresql_synchronous_standby_names: [] # '*' means 'all'

Choose a reason for hiding this comment

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

Would make sense to add '*' as default value?

@matthieudolci
Copy link

Hi guys,

When can we expect this PR to be merged?

Thanks!

@MichaelConrad
Copy link
Contributor Author

Sorry, I need to reopen this pull request from a different fork of the repo.

I'll make the requested changes and will open a new PR asap.

@MichaelConrad
Copy link
Contributor Author

#212 is the new PR.

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.

4 participants