pglift 3.3.0__tar.gz → 3.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pglift-3.3.0 → pglift-3.4.0}/PKG-INFO +3 -3
- {pglift-3.3.0 → pglift-3.4.0}/pyproject.toml +2 -2
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/_compat.py +7 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/helpers.py +12 -6
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/conftest.py +2 -2
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_30_patroni.py +2 -1
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_cmd.py +1 -1
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_task.py +2 -3
- {pglift-3.3.0 → pglift-3.4.0}/.gitignore +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/README.md +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/hatch.toml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/pytest.ini +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/conftest.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/abc.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/ansible.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/api.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/annotations/cli.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/backup.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/conf.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/databases.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/deps.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/diff.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/exceptions.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/extensions.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/etcd.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/functional.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/types.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/fixtures/unit.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/hba.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/hookspecs.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/instances.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/logrotate/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/configuration.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/hba.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/manager/instance.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/system.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/testing.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/types.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/models/validators.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/passfile.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/dcs.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/impl.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/logrotate.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/logrotate.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/build.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/common.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/models/system.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/patroni.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/patroni/patroni.yaml.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/base.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/logrotate.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/logrotate.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/models/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/models/interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/models/system.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/pgbackrest.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/pgbackrest.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/repo_host_ssh.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/repo_host_tls.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/repo_path.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/server.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pgbackrest/server.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/pm.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/ctl.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/logrotate.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/logrotate.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/models.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_hba.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_hba.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_ident.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pg_ident.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pgbackrest.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pgbackrest.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql-rsyslog.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql-rsyslog.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/postgresql.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/pq.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/psqlrc +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/psqlrc.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/rsyslog.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/postgresql/rsyslog.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/impl.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/models/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/powa/models/interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/privileges.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/profiles.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/impl.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/models/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/models/interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/models/system.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/postgres_exporter.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/prometheus/postgres_exporter.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/publications.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/py.typed +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/replication_slots.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/roles.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/rsyslog/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/schemas.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_api.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_cli.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_logrotate.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_patroni.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_pgbackrest.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_postgresql.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_powa.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_prometheus.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_rsyslog.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_systemd.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/_temboard.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/settings/base.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/sql/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/sql/queries.sql +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/sql/queries.sql.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/subscriptions.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/cmd.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/command.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/db.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/dryrun.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/fs.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/imfs.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/install.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/system/svc.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.service +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.service.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.timer +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-backup@.timer.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-patroni@.service +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-patroni@.service.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-pgbackrest.service +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-pgbackrest.service.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgres_exporter@.service +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgres_exporter@.service.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgresql@.service +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-postgresql@.service.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-temboard_agent@.service +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-temboard_agent@.service.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-tmpfiles.d.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/pglift-tmpfiles.d.conf.license +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/scheduler.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/service_manager.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/systemd/tmpfilesd.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/task.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/impl.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/models/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/models/interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/temboard/models/system.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/testutil.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/types.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/ui.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/src/pglift/util.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/README.md +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/cmd.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/base/postgresql/16/psqlrc +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/base/postgresql/pg_hba.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/peer/postgresql/16/psqlrc +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/peer/postgresql/pg_hba.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/data/peer/postgresql/pg_ident.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/pgbackrest.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/ssh.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_00_site.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_10_instances.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_10_standby.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_databases.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_privileges.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_profiles.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_replication_slots.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_11_roles.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_backup.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_pgbackrest.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_powa.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_prometheus.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_20_temboard.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_40_promote_demote.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_40_reconfigure.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_41_upgrade.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/func/test_99_drop.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/__init__.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/conftest.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/config/postgresql/18/pg_ident.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/config/postgresql/18/postgresql.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/config/postgresql/pgbackrest.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-database.json +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-instance.json +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-postgresexporter.json +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-argspec-role.json +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/database.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/instance.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/postgresexporter.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/ansible-examples/role.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-15-updated.diff +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-15-upgraded.diff +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-15.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-18-updated.diff +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-18-upgraded.diff +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/patroni-18.yaml +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/pg_hba.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/pg_ident.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/postgresql.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/postgresql.merged.conf +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/expected/queries.json +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/data/postgresql.conf.sample +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_annotations_cli.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_ansible.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_backup.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_conf.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_databases.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_diff.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_exceptions.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_hba.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_hooks.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_instances.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_logrotate.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_main.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_helpers.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_interface.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_system.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_models_validators.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_passfile.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_patroni.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_pgbackrest.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_pm.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_postgresql.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_prometheus.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_roles.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_rsyslog.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_settings.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_sql.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_db.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_fs.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_imfs.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_system_install.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_systemd.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_temboard.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_testutil.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_types.py +0 -0
- {pglift-3.3.0 → pglift-3.4.0}/tests/unit/test_util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pglift
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Summary: Life-cycle management of production-ready PostgreSQL instances
|
|
5
5
|
Project-URL: Documentation, https://pglift.readthedocs.io/
|
|
6
6
|
Project-URL: Source, https://gitlab.com/dalibo/pglift/
|
|
@@ -33,12 +33,12 @@ Requires-Dist: pgtoolkit>=0.33.0
|
|
|
33
33
|
Requires-Dist: pluggy
|
|
34
34
|
Requires-Dist: psutil
|
|
35
35
|
Requires-Dist: psycopg>=3.1
|
|
36
|
-
Requires-Dist: pydantic!=2.14.0b2,>=2.10.2
|
|
37
36
|
Requires-Dist: pydantic-settings
|
|
37
|
+
Requires-Dist: pydantic>=2.10.2
|
|
38
38
|
Requires-Dist: python-dotenv
|
|
39
39
|
Requires-Dist: pyyaml>=6.0.1
|
|
40
40
|
Requires-Dist: tenacity!=8.4.0,>=8.2.0
|
|
41
|
-
Requires-Dist: typing-extensions
|
|
41
|
+
Requires-Dist: typing-extensions>=4.13.0
|
|
42
42
|
Requires-Dist: tzlocal
|
|
43
43
|
Provides-Extra: api
|
|
44
44
|
Requires-Dist: pglift-api; extra == 'api'
|
|
@@ -47,11 +47,11 @@ dependencies = [
|
|
|
47
47
|
"pluggy",
|
|
48
48
|
"psycopg >= 3.1",
|
|
49
49
|
"psutil",
|
|
50
|
-
"pydantic >= 2.10.2
|
|
50
|
+
"pydantic >= 2.10.2",
|
|
51
51
|
"pydantic-settings",
|
|
52
52
|
"python-dotenv",
|
|
53
53
|
"tenacity >=8.2.0, != 8.4.0",
|
|
54
|
-
"typing-extensions",
|
|
54
|
+
"typing-extensions >= 4.13.0",
|
|
55
55
|
"tzlocal",
|
|
56
56
|
"PyYAML >= 6.0.1",
|
|
57
57
|
]
|
|
@@ -29,8 +29,15 @@ else:
|
|
|
29
29
|
return None
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
if sys.version_info[:2] >= (3, 15):
|
|
33
|
+
from typing import TypeForm
|
|
34
|
+
else:
|
|
35
|
+
from typing_extensions import TypeForm
|
|
36
|
+
|
|
37
|
+
|
|
32
38
|
__all__ = [
|
|
33
39
|
"Self",
|
|
40
|
+
"TypeForm",
|
|
34
41
|
"assert_never",
|
|
35
42
|
"assert_type",
|
|
36
43
|
"datetime_fromisoformat",
|
|
@@ -8,12 +8,12 @@ import typing
|
|
|
8
8
|
from collections.abc import Mapping
|
|
9
9
|
from datetime import datetime
|
|
10
10
|
from types import NoneType, UnionType
|
|
11
|
-
from typing import Any, Union
|
|
11
|
+
from typing import Any, TypeGuard, Union
|
|
12
12
|
|
|
13
13
|
import pydantic
|
|
14
14
|
import pydantic_core
|
|
15
15
|
|
|
16
|
-
from .._compat import assert_never
|
|
16
|
+
from .._compat import TypeForm, assert_never
|
|
17
17
|
from ..annotations import ansible
|
|
18
18
|
from ..types import field_annotation
|
|
19
19
|
from ..util import lenient_issubclass
|
|
@@ -22,6 +22,11 @@ from .types import Port
|
|
|
22
22
|
ModelType = type[pydantic.BaseModel]
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
def is_model_type(value: Any) -> TypeGuard[ModelType]:
|
|
26
|
+
"""Return whether value is a concrete Pydantic model class."""
|
|
27
|
+
return isinstance(value, type) and issubclass(value, pydantic.BaseModel)
|
|
28
|
+
|
|
29
|
+
|
|
25
30
|
def is_optional(t: Any) -> bool:
|
|
26
31
|
"""Return True if the field info is an optional type.
|
|
27
32
|
|
|
@@ -56,7 +61,7 @@ def optional_type(t: Any) -> type:
|
|
|
56
61
|
assert_never(a)
|
|
57
62
|
|
|
58
63
|
|
|
59
|
-
PYDANTIC2ANSIBLE: Mapping[
|
|
64
|
+
PYDANTIC2ANSIBLE: Mapping[TypeForm[Any] | str, ansible.ArgSpec] = {
|
|
60
65
|
bool: {"type": "bool"},
|
|
61
66
|
float: {"type": "float"},
|
|
62
67
|
Port: {"type": "int"},
|
|
@@ -93,7 +98,8 @@ def argspec_from_model(model_type: ModelType) -> dict[str, ansible.ArgSpec]:
|
|
|
93
98
|
if origin_type is typing.Annotated:
|
|
94
99
|
ftype = typing.get_args(ftype)[0]
|
|
95
100
|
assert ftype is not None
|
|
96
|
-
|
|
101
|
+
model_candidate = origin_type or ftype
|
|
102
|
+
is_model = lenient_issubclass(model_candidate, pydantic.BaseModel)
|
|
97
103
|
is_list = lenient_issubclass(origin_type or ftype, list)
|
|
98
104
|
is_dict = lenient_issubclass(origin_type or ftype, Mapping)
|
|
99
105
|
|
|
@@ -104,10 +110,10 @@ def argspec_from_model(model_type: ModelType) -> dict[str, ansible.ArgSpec]:
|
|
|
104
110
|
try:
|
|
105
111
|
arg_spec.update(PYDANTIC2ANSIBLE[ftype])
|
|
106
112
|
except KeyError:
|
|
107
|
-
if
|
|
113
|
+
if is_model_type(model_candidate):
|
|
108
114
|
arg_spec = {
|
|
109
115
|
"type": "dict",
|
|
110
|
-
"options": argspec_from_model(
|
|
116
|
+
"options": argspec_from_model(model_candidate),
|
|
111
117
|
"description": description_list(field.description or fname),
|
|
112
118
|
}
|
|
113
119
|
elif origin_type is typing.Literal: # const or enum
|
|
@@ -296,7 +296,7 @@ def pgbackrest_repo_host(
|
|
|
296
296
|
logpath.mkdir()
|
|
297
297
|
hostname = socket.getfqdn()
|
|
298
298
|
if option == "tls":
|
|
299
|
-
repo_cert = cert_factory(common_name=hostname)
|
|
299
|
+
repo_cert = cert_factory(hostname, common_name=hostname)
|
|
300
300
|
with PgbackrestRepoHostTLS(
|
|
301
301
|
client_configpath=repo_path / "pgbackrest.conf",
|
|
302
302
|
server_configpath=repo_path / "server.conf",
|
|
@@ -554,7 +554,7 @@ def settings(
|
|
|
554
554
|
hostname = socket.getfqdn()
|
|
555
555
|
if isinstance(pgbackrest_repo_host, PgbackrestRepoHostTLS):
|
|
556
556
|
pgbackrest_dbhost_cert = cert_factory(
|
|
557
|
-
common_name=pgbackrest_repo_host.dbhost_cn
|
|
557
|
+
hostname, common_name=pgbackrest_repo_host.dbhost_cn
|
|
558
558
|
)
|
|
559
559
|
pgbackrest_repository = {
|
|
560
560
|
"mode": "host-tls",
|
|
@@ -359,10 +359,11 @@ async def instance2_manifest(
|
|
|
359
359
|
etcd_credentials: tuple[str, str],
|
|
360
360
|
) -> interface.Instance:
|
|
361
361
|
name = "test2"
|
|
362
|
+
host = local_host()
|
|
362
363
|
extras = {}
|
|
363
364
|
if settings.pgbackrest:
|
|
364
365
|
extras = {"pgbackrest": {"stanza": "patroni"}}
|
|
365
|
-
replication_cert = cert_factory(common_name="replication")
|
|
366
|
+
replication_cert = cert_factory(host, common_name="replication")
|
|
366
367
|
return instance_manifest_factory(
|
|
367
368
|
settings,
|
|
368
369
|
name,
|
|
@@ -100,7 +100,7 @@ def test_execute_program(caplog: pytest.LogCaptureFixture) -> None:
|
|
|
100
100
|
cmd.execute_program(command, env={"X": "Y"})
|
|
101
101
|
execve.assert_called_once_with("/c", command, {"X": "Y"}) # type: ignore[unreachable]
|
|
102
102
|
assert not execv.called
|
|
103
|
-
with (
|
|
103
|
+
with (
|
|
104
104
|
patch("os.execve", autospec=True) as execve,
|
|
105
105
|
patch("os.execv", autospec=True) as execv,
|
|
106
106
|
caplog.at_level(logging.DEBUG, logger="pglift.cmd"),
|
|
@@ -149,9 +149,8 @@ def test_transaction_state() -> None:
|
|
|
149
149
|
@pytest.mark.anyio
|
|
150
150
|
async def test_async_transaction_state() -> None:
|
|
151
151
|
with pytest.raises(RuntimeError, match="inconsistent task state"):
|
|
152
|
-
async with task.async_transaction():
|
|
153
|
-
|
|
154
|
-
pass
|
|
152
|
+
async with task.async_transaction(), task.async_transaction():
|
|
153
|
+
pass
|
|
155
154
|
|
|
156
155
|
with pytest.raises(ValueError, match="expected"):
|
|
157
156
|
async with task.async_transaction():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|