summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/database/postgresql/postgresql_ext.py
Commit message (Collapse)AuthorAgeFilesLines
* Migrated to community.generalAnsible Core Team2020-03-231-415/+0
|
* Misc documentation fixes (#67863)Abhijeet Kasurde2020-03-011-2/+2
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* postgresql_ext: use query_params (#64994)Andrey Klychkov2019-12-021-10/+17
| | | | | | * postgresql_ext: use query_params * added changelog
* postgresql modules: add seealso section (#61368)Andrey Klychkov2019-08-271-0/+13
|
* postgresql modules: fix by flake8 (#59497)Andrey Klychkov2019-07-241-1/+0
|
* postgresql_ext: add version parameter (#58381)Andrey Klychkov2019-07-021-22/+169
| | | | | | | | | | | | | | | | * postgresql_ext: add version new option * postgresql_ext: add version new option, fix ssl tests * postgresql_ext: add version new option, fix tests * postgresql_ext: add version new option, fix examples * postgresql_ext: add version new option, fix the doc * postgresql_ext: add version new option, fix examples * postgresql_ext: add version new option, fix typo in tests
* Postgres module_utils: add get_connect_params + unit tests (#58067)Andrey Klychkov2019-06-191-2/+7
| | | | | | * add get_conn_params * add get_conn_params: add to the modules
* PostgreSQL modules: move params mapping from main to connect_to_db() ↵Andrey Klychkov2019-04-291-48/+11
| | | | | | | | | | function (#55799) * PostgreSQL modules: move params mapping from main to connect_to_db() function * PostgreSQL modules: fix postgresql_db * PostgreSQL modules: fixes
* Revert "postgres modules: move params mapping from main to connect_to_db ↵Matt Clay2019-04-251-10/+48
| | | | | | (#55549)" This reverts commit 2250257809baf77dd6d63d56e4eca10b2952250a.
* postgres modules: move params mapping from main to connect_to_db (#55549)Andrey Klychkov2019-04-251-48/+10
| | | * params mapping to connect_to_db
* postgresql modules: move connect_to_db and get_pg_version to ↵Andrey Klychkov2019-04-181-20/+3
| | | | | | | | | | module_utils/postgres.py (#55514) * postgresql modules: move connect_to_db, get_pg_version to module_utils * postgresql modules: move connect_to_db, get_pg_version to module_utils 2 * postgresql modules: move connect_to_db, get_pg_version to module_utils 3
* Postgresql docs fragments 2 (#55363)Andrey Klychkov2019-04-171-44/+22
| | | | * Postgres to use docsfragments * Postgres to use docsfragments: redefined options in postgresql_user
* postgresql_user: fix doc formatting, added return value, aliases, misc code ↵Andrey Klychkov2019-04-041-8/+8
| | | | | | | | | | | | | | | | changes (#54768) * postgresql_user: refactoring * postgresql_user: removed line from ignore.txt * postgresql_user: removed lines from ignore.txt * postgresql_user: removed lines from ignore.txt, fixes * postgresql_user: removed lines from ignore.txt, fixes * postgresql_user: removed lines from ignore.txt, fixes
* standardize TLS connection properties (#54315)James Cassell2019-03-281-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * openstack: standardize tls params * tower: tower_verify_ssl->validate_certs * docker: use standard tls config params - cacert_path -> ca_cert - cert_path -> client_cert - key_path -> client_key - tls_verify -> validate_certs * k8s: standardize tls connection params - verify_ssl -> validate_certs - ssl_ca_cert -> ca_cert - cert_file -> client_cert - key_file -> client_key * ingate: verify_ssl -> validate_certs * manageiq: standardize tls params - verify_ssl -> validate_certs - ca_bundle_path -> ca_cert * mysql: standardize tls params - ssl_ca -> ca_cert - ssl_cert -> client_cert - ssl_key -> client_key * nios: ssl_verify -> validate_certs * postgresql: ssl_rootcert -> ca_cert * rabbitmq: standardize tls params - cacert -> ca_cert - cert -> client_cert - key -> client_key * rackspace: verify_ssl -> validate_certs * vca: verify_certs -> validate_certs * kubevirt_cdi_upload: upload_host_verify_ssl -> upload_host_validate_certs * lxd: standardize tls params - key_file -> client_key - cert_file -> client_cert * get_certificate: ca_certs -> ca_cert * get_certificate.py: clarify one or more certs in a file Co-Authored-By: jamescassell <code@james.cassell.me> * zabbix: tls_issuer -> ca_cert * bigip_device_auth_ldap: standardize tls params - ssl_check_peer -> validate_certs - ssl_client_cert -> client_cert - ssl_client_key -> client_key - ssl_ca_cert -> ca_cert * vdirect: vdirect_validate_certs -> validate_certs * mqtt: standardize tls params - ca_certs -> ca_cert - certfile -> client_cert - keyfile -> client_key * pulp_repo: standardize tls params remove `importer_ssl` prefix * rhn_register: sslcacert -> ca_cert * yum_repository: standardize tls params The fix for yum_repository is not straightforward since this module is only a thin wrapper for the underlying commands and config. In this case, we add the new values as aliases, keeping the old as primary, only due to the internal structure of the module. Aliases added: - sslcacert -> ca_cert - sslclientcert -> client_cert - sslclientkey -> client_key - sslverify -> validate_certs * gitlab_hook: enable_ssl_verification -> hook_validate_certs * Adjust arguments for docker_swarm inventory plugin. * foreman callback: standardize tls params - ssl_cert -> client_cert - ssl_key -> client_key * grafana_annotations: validate_grafana_certs -> validate_certs * nrdp callback: validate_nrdp_certs -> validate_certs * kubectl connection: standardize tls params - kubectl_cert_file -> client_cert - kubectl_key_file -> client_key - kubectl_ssl_ca_cert -> ca_cert - kubectl_verify_ssl -> validate_certs * oc connection: standardize tls params - oc_cert_file -> client_cert - oc_key_file -> client_key - oc_ssl_ca_cert -> ca_cert - oc_verify_ssl -> validate_certs * psrp connection: cert_trust_path -> ca_cert TODO: cert_validation -> validate_certs (multi-valued vs bool) * k8s inventory: standardize tls params - cert_file -> client_cert - key_file -> client_key - ca_cert -> ca_cert - verify_ssl -> validate_certs * openshift inventory: standardize tls params - cert_file -> client_cert - key_file -> client_key - ca_cert -> ca_cert - verify_ssl -> validate_certs * tower inventory: verify_ssl -> validate_certs * hashi_vault lookup: cacert -> ca_cert * k8s lookup: standardize tls params - cert_file -> client_cert - key_file -> client_key - ca_cert -> ca_cert - verify_ssl -> validate_certs * laps_passord lookup: cacert_file -> ca_cert * changelog for TLS parameter standardization
* postgresql_ext: Update param handling, fix doc formatting, added: CI tests, ↵Andrey Klychkov2019-03-221-69/+113
| | | | | | | | | | examples, a return value (#54027) * postgresql_ext: instead_of_3196, initial * postgresql_ext: fixes * postgresql_ext: fixes
* start getting modules to use shared import error code (#51787)Jordan Borean2019-02-061-2/+4
|
* Add session_role to postgresql modules (#43650)Feike Steenbergen2019-02-021-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow session_role to be set for PostgreSQL By implementing session_role it becomes possible to run the specific PostgreSQL commands as a different role. The usecase that is immediately served by this, is the one that one ansible playbook can be shared by multiple users, which all have their own PostgreSQL login_user. They do not need to share login credentials, as they can share the role within the PostgreSQL database. The following example may give some insight: $ psql -U jdoe -X -d postgres postgres=> CREATE DATABASE abc; ERROR: permission denied to create database postgres=> set role postgres; SET postgres=# CREATE DATABASE abc; CREATE DATABASE fixes #43592 * Tests for session_role in PostgreSQL * Bump version_added for session_role feature * Remove explicit encrypted parameter from tests
* postgresql_ext: cascade extension creating/deleting (#50717)Kostiantyn Nemchenko2019-02-021-6/+25
| | | | | | | | * postgresql_ext: cascade extension creating/deleting (#1) * postgresql_ext: cascade extension creating/deleting * Address code review feedback
* postgresql_ext: Allow creating extension in a specific schema (#47279)Prashant Baisla2019-01-251-2/+11
| | | | | | | | * Allow creating extension in a specific schema * Code Review: Update example to include schema parameter * Code Review: Use simple string concatenation to build query
* Update postgresql_ext connection methods (#48538)Thomas O'Donnell2018-12-071-5/+52
| | | | | | | Have added some extra arguments to the postgresql_ext module to allow configuring an SSL connection to the postgresql server and explicit support for connecting via a unix socket. The arguments and method used here for the connection are the same as used by the postgresql_database module.
* Clean up module documentation (#36909)Dag Wieers2018-03-151-9/+0
| | | | | | | | | | | * Clean up module documentation This PR includes: - Removal of `default: None` (and variations) - Removal of `required: false` - Fixing booleans and `type: bool` where required * Fix remaining (new) validation issues
* Bulk autopep8 (modules)John Barker2017-12-071-7/+10
| | | | | | | | | | As agreed in 2017-12-07 Core meeting bulk fix pep8 issues Generated using: autopep8 1.3.3 (pycodestyle: 2.3.1) autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules Manually fix issues that autopep8 has introduced
* Update metadata to 1.1Toshio Kuratomi2017-08-151-1/+1
|
* Remove wildcard, add boilerplate and get rid of get_exceptionToshio Kuratomi2017-07-311-27/+16
| | | | | * smaller collections of database modules * Some of the smaller collections of network modules
* E501 fixes (#22879)Matt Martz2017-03-221-1/+3
|
* New metadata 1.0 (#22587)Toshio Kuratomi2017-03-141-3/+4
| | | | | | | | | | | | | | | | Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version
* PEP 8 indent cleanup. (#20800)Matt Clay2017-01-291-1/+1
| | | | | | | | * PEP 8 E121 cleanup. * PEP 8 E126 cleanup. * PEP 8 E122 cleanup.
* PEP 8 W291 whitespace cleanup.Matt Clay2017-01-271-1/+1
|
* PEP 8 whitespace cleanup. (#20783)Matt Clay2017-01-271-1/+1
| | | | | | * PEP 8 E271 whitespace cleanup. * PEP 8 W293 whitespace cleanup. * Fix whitespace issue from recent PR.
* Removed dict.iteritems() in modules. (#18859)Andrea Tartaglia2016-12-121-1/+1
| | | This is for py3 compatibility, addressed in #18506
* Relocating extras into lib/ansible/modules/ after mergeJames Cammarata2016-12-081-0/+198