Comments (12)
@scottanderson42 this seems like a good time to fork and adjust your own copy to taste. Not sure it makes sense to generate configurations for older versions of the software, but that may just be me?
from postgresql.
It seems to me that one could use Ansible's version_compare()
filter in the postgresql.conf.j2
template and conditionally not put the offending configuration directives for older versions of PostgreSQL.
http://docs.ansible.com/playbooks_variables.html#version-comparison-filters
from postgresql.
Always an option, sure. There's a cost/benefit tradeoff in that, though, plus more permutations to test and verify going forward. Just thought I'd chime in on a months old issue is all.
from postgresql.
If Ansible is used to bootstrap a system that's ok to forget old versions of PostgreSQL. But if playbooks are run from time to time on hosts running different versions of Pg, this is nice to support at least the last versions. A workaround would be to checkout this role several times on different commits following the versions we need to support... but it's a bit ugly, I think.
from postgresql.
@rud since there's a "version" option, users expect several versions to be installable. If only some versions are, it must be clear and not fail with an obscure error message.
@sebalix there are still enough servers deployed in production with older versions to make it a valid use case IMHO. When an old PG is part of a officially supported stack (ie. Odoo v7 officially targets PG 9.1) and PG works well enough, operators will be reluctant to upgrade.
from postgresql.
We are in the same case, we manage PostgreSQL from version 9.1 to 9.4 (and some 8.X too, but it's not a problem if we don't support them via Ansible).
from postgresql.
Just starting out with this recipe and PostgreSQL 9.2, LOG: unrecognized configuration parameter "unix_socket_directories" in file "/etc/postgresql/9.2/main/postgresql.conf" line 57
etc ...
from postgresql.
I think a PR to fix this is welcome 🌟
from postgresql.
We would almost certainly merge an PR around a good implementation of this fix, such as is being discussed.
from postgresql.
It has already be done for PostgreSQL 9.3 and 9.4: #66
We just need to add postgresql.conf files related to the 9.2 version and update available options:
- add the upstream
postgresql.conf-9.2.orig
(from the Debian package for instance) - make a diff between the
9.3.orig
and9.2.orig
- copy
postgresql.conf-9.3.j2
topostgresql.conf-9.2.j2
and adapt it following the previous diff - update
default/main.yml
- update
.travis.yml
to test this version
I can do it if you want.
from postgresql.
I started to work on the support of 9.1 and 9.2 versions. There is some conflicts with the PostgreSQL pre-installed by Travis, I try to fix them and I will make a PR.
from postgresql.
@sebalix Thanks man!
from postgresql.
Related Issues (20)
- Is this repo dead? HOT 27
- When I use psql in the root directory, there is an error HOT 5
- Move us to travis-ci.com ASAP. HOT 12
- run big transaction procedure seem like be blocked HOT 1
- when select (fn_return_record()).* is called, fn_return_record is executed repeatedly HOT 1
- Wrong postgresql_yum_repository_baseurl HOT 3
- New release HOT 3
- Postgis not working. HOT 2
- postgis missing dependencies in RHEL 7.9 HOT 1
- Postgresql 14 support HOT 3
- No package matching 'python-psycopg2' is available HOT 5
- Release new version to ansible galaxy HOT 2
- PostgreSQL 15 support? HOT 6
- Help Wanted! HOT 2
- Postgresql requires restart if a new locale was used
- Problem with defaults/main.yml syntax HOT 1
- Latest Version (v1.15.0) Not Reflected in ansible-galaxy for anxs.postgresql HOT 5
- support PostgreSQL 16 HOT 5
- Postgresql 11 is unavailable since 2023-01-05 HOT 2
- PostgreSQL 16 : Unable to create the XXXXXXXX table (permission denied for schema public HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgresql.