Skip to content

Commit

Permalink
postgresql_subscription: new module (ansible#63661)
Browse files Browse the repository at this point in the history
* 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
Andersson007 authored and gundalow committed Nov 6, 2019
1 parent da25c2b commit 22fe622
Show file tree
Hide file tree
Showing 14 changed files with 1,761 additions and 0 deletions.
731 changes: 731 additions & 0 deletions lib/ansible/modules/database/postgresql/postgresql_subscription.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions test/integration/targets/postgresql_subscription/aliases
@@ -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 test/integration/targets/postgresql_subscription/defaults/main.yml
@@ -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
@@ -0,0 +1,2 @@
dependencies:
- setup_postgresql_replication
@@ -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'

0 comments on commit 22fe622

Please sign in to comment.