forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
postgresql_subscription: new module (ansible#63661)
* postgresql_subscription: setup master-standby cluster into one container * postgresql_subscription: setup master-standby cluster into one container, fix * postgresql_subscription: setup master-standby cluster into one container, set up publication * postgresql_subscription: setup master-standby cluster into one container, add module template * postgresql_subscription: setup master-standby cluster into one container, fix tests * postgresql_subscription: setup master-standby cluster into one container, create subscr via shell * postgresql_subscription: setup replication, state stat * postgresql_subscription: add basic present mode * postgresql_subscription: add assertions * postgresql_subscription: add samples * postgresql_subscription: state absent, cascade * postgresql_subscription: add owner param * postgresql_subscription: update * postgresql_subscription: refresh * postgresql_subscription: doc, warns * postgresql_subscription: relinfo * postgresql_subscription: fixes * postgresql_subscription: fix CI tests
- Loading branch information
1 parent
da25c2b
commit 22fe622
Showing
14 changed files
with
1,761 additions
and
0 deletions.
There are no files selected for viewing
731 changes: 731 additions & 0 deletions
731
lib/ansible/modules/database/postgresql/postgresql_subscription.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
destructive | ||
shippable/posix/group1 | ||
skip/osx | ||
skip/centos | ||
skip/freebsd | ||
skip/rhel | ||
skip/opensuse | ||
skip/fedora |
15 changes: 15 additions & 0 deletions
15
test/integration/targets/postgresql_subscription/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pg_user: postgres | ||
db_default: postgres | ||
master_port: 5433 | ||
replica_port: 5434 | ||
|
||
test_table1: acme1 | ||
test_pub: first_publication | ||
test_pub2: second_publication | ||
replication_role: logical_replication | ||
replication_pass: alsdjfKJKDf1# | ||
test_db: acme_db | ||
test_subscription: test | ||
test_role1: alice | ||
test_role2: bob | ||
conn_timeout: 100 |
2 changes: 2 additions & 0 deletions
2
test/integration/targets/postgresql_subscription/meta/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- setup_postgresql_replication |
7 changes: 7 additions & 0 deletions
7
test/integration/targets/postgresql_subscription/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Initial tests of postgresql_subscription module: | ||
|
||
- import_tasks: setup_publication.yml | ||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '18' | ||
|
||
- import_tasks: postgresql_subscription_initial.yml | ||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '18' |
Oops, something went wrong.