Commit 32d8865
Extended and adapted to install PostgreSQL 10 for CentOS and Ubuntu (#267)
* Extended and adapted to install PostgreSQL 10 for CentOS and Ubuntu
Tested with ansible 2.4.1 for Ubuntu 16.04 and CentOS-7.4
- replaced deprecated 'include:' by 'include_tasks:' for ansible 2.4.1
- added config and config template for postgresql 10
- adapted defaults.yml
- adapted templates/etc_systemd_system_postgresql.service.d_custom.conf.j2
for PostgreSQL 10 the template outputs the wrong line:
ExecStartPre=/usr/pgsql-10/bin/postgresql10-check-db-dir
the correct one must include an additional '-':
ExecStartPre=/usr/pgsql-10/bin/postgresql-10-check-db-dir
* Removed tabs from defaults/main.yml.
* Adapted .travis.yml and yml files to run tests successfully for all given ansible versions.
- added a test for ansible 2.4.2.0/posgresql 10.
- replaced newer 'include_task' by 'include' again so that the role can be used with older
ansible versions. NOTE: 'include' is deprecated and will be removed in ansible 2.8.
- commeted out docker based tests because they do not run successfully and I do not know
docker ;-)
* Bug fix. Removed remains for my local teste in test/playbook.yml.
* Bug fix and refinement for postgresql.conf-10.* .
- added max_parallel_workers to postgresql.conf-10.j2 (forgotten/deleted in previous version)
- hard coded value for wal_retrieve_retry_interval in postgresql.conf-10.j2 replaced by ansible variable
Changes to be committed:
modified: Vagrantfile
modified: defaults/main.yml
modified: templates/postgresql.conf-10.j2
modified: vagrant-inventory
* Added suggestions from gclough.
Changes to be committed:
modified: Vagrantfile
modified: defaults/main.yml
modified: templates/HOWTO.postgresql.conf
modified: templates/etc_systemd_system_postgresql.service.d_custom.conf.j2
modified: tests/playbook.yml
modified: tests/vars.yml
modified: vagrant-inventory
* Replaced vagrant setup by project's master branch.
* Updated tests/docker/group_vars/all.yml to include version 10.
* Uncommented 'no_log: true' in users.yml.
* Uncommented user baz in tests/docker/group_vars/postgresql.yml.
* Recreated user baz but without passwd. We need him as database owner :-).
* Added encrypted passwd for user baz.
* Commented need for encrypted password if version >= 10.
* Reenabled no_log: true for task PostgreSQL | Make sure the PostgreSQL users are present
Fixed text in templates/HOWTO.posgresql.conf
* Just to trigger a new build on github. Added blank in README.md.
* Second try to trigger a rebuild. Blank in README.md deleted.1 parent 7b75bec commit 32d8865
File tree
8 files changed
+1390
-16
lines changed- defaults
- templates
- tests
- docker/group_vars
8 files changed
+1390
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
322 | 333 | | |
323 | 334 | | |
324 | 335 | | |
| |||
347 | 358 | | |
348 | 359 | | |
349 | 360 | | |
350 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
351 | 364 | | |
352 | 365 | | |
353 | 366 | | |
| |||
499 | 512 | | |
500 | 513 | | |
501 | 514 | | |
| 515 | + | |
502 | 516 | | |
503 | 517 | | |
504 | 518 | | |
505 | 519 | | |
506 | 520 | | |
| 521 | + | |
507 | 522 | | |
508 | 523 | | |
509 | 524 | | |
| |||
588 | 603 | | |
589 | 604 | | |
590 | 605 | | |
| 606 | + | |
591 | 607 | | |
592 | 608 | | |
593 | 609 | | |
| |||
639 | 655 | | |
640 | 656 | | |
641 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
642 | 663 | | |
643 | 664 | | |
644 | 665 | | |
| |||
713 | 734 | | |
714 | 735 | | |
715 | 736 | | |
| 737 | + | |
716 | 738 | | |
717 | 739 | | |
718 | 740 | | |
| |||
721 | 743 | | |
722 | 744 | | |
723 | 745 | | |
| 746 | + | |
724 | 747 | | |
725 | 748 | | |
726 | 749 | | |
| |||
729 | 752 | | |
730 | 753 | | |
731 | 754 | | |
| 755 | + | |
732 | 756 | | |
733 | 757 | | |
734 | 758 | | |
| |||
737 | 761 | | |
738 | 762 | | |
739 | 763 | | |
| 764 | + | |
740 | 765 | | |
741 | 766 | | |
742 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | | - | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
17 | 28 | | |
18 | 29 | | |
19 | 30 | | |
20 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
21 | 34 | | |
22 | | - | |
| 35 | + | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
| 14 | + | |
0 commit comments