Commit Graph

254 Commits (6e4a182684a54e60be5318525c658cfe315d06ad)

Author SHA1 Message Date
Brian Coca 6e4a182684 several fixes to doc to avoid breaking doc build 9 years ago
bmildren 9d51f82395 add support for proxysql (#2917)
* Adding support for proxysql

* Moved and restricted imports, updated exception handling

* Updated version_added, and mysqldb_found constant name

* Removed unnecessary parentheses
9 years ago
Toshio Kuratomi 6b0a204e74 Fix remaining python3 compile problems 9 years ago
Michael Scherer f2ce143609 Make postgresql module in extras compile on py3 9 years ago
Michael Scherer 4c6247c661 Make mongodb modules compile on python 3 9 years ago
Michael Scherer 8683df885d Do not leak login_password when using verbose, with no_log 9 years ago
Michael Scherer 74acb528ba Make redis run on python 3 9 years ago
Ryan Currah db38b45a63 Fix mongodb_user.py version detection logic (#3162)
Fix mongodb_user.py version detection logic for mongo srv 2.6 and mongo driver 2.7. The wrong variable was used for detecting the mongo driver version. This fix resolves the error "(Note: you must use pymongo 2.7+ with MongoDB 2.6.. 2.6.11)" no matter what version of pymongo you had installed for mongodb 2.6.
9 years ago
THEBAULT Julien 085321e3a8 Fix mongodb user compatibility check (#2731)
- Check the compatibility asap
9 years ago
Lujeni c1adb215f0 Fix mongodb_user ssl_cert_reqs param (#2963) (#2965) 9 years ago
Lujeni 8aa338ddfa Fix mongodb_user default role value when update_password is set (#2997) 9 years ago
Lujeni bbe7f73f89 Improve mongodb_user exception (#2962)
- Better error message
9 years ago
Michael Scherer 5b80ec833f Fix the mysql_replication argument (#2111)
Login_password and master_password are password, should not
be logged. And config_file is a path t be expanded, so tagged as
such.
9 years ago
Hans-Joachim Kliemeck 11329c5c4d Fix mongodb user idempotence with 2.4 version (#2725) (#2920) 9 years ago
Robin Schneider 67a1bebbd3 Use addresses and names reserved for documentation (#2894)
Trying to preserve the meaning of the examples.

Related to: https://github.com/ansible/ansible/issues/17479
9 years ago
Serge van Ginderachter fc76455326 return a proper result set for getmaster/getslave (#2595)
* return a proper result set for getmaster/getslave

when not on a master/slave.
This allows for a cleaner error handling.

* A more uniform return of result keys for getmaster/slave
10 years ago
Serge van Ginderachter 9a47088d67 Exception handling for MySQLdb warnings (#2594)
Do not fail the module for warnings.
Return warnings in the module result set.

Fixes #719
Alternative to #720 and as discuseed over there.
10 years ago
gyurco 960fcaf67a mongodb_user: properly guard user adding with try...except (#2582)
The user adding part is not properly guarded by a try...except
block, so pymongo exceptions can escape from it.
Also there's a double-guarding where roles are given.

Fixes: #2575
10 years ago
gyurco ed74ab8caf mongodb_user: fix ssl_cert_reqs exception (#2573)
If ssl is not enabled, but ssl_cert_reqs is passed to pymongo, an
exception occures.

Fixes: #2571
10 years ago
Nicholas Morsman f5b7b3b2f2 Bugfix influxdb/retention_policy: infinite retention is returned as 0 (#2453)
* influxdb: retention_policy: infinite retention is returned as 0 from influxdb

* influxdb: retention_policy: database_name argument should be required
10 years ago
Strahinja Kustudic 127ddc1f05 Fixes check mode error on Python 2.4 and wrong changed state (#2438)
* Fixes check mode error on Python 2.4 and wrong changed state

* Changes code as suggested by @bcoca
10 years ago
Lujeni e032aeaedd Support the ssl_cert_reqs directive (#1122) 10 years ago
Toshio Kuratomi 0e4a023a7e The pymssql library requires python 2.7 or greater so port the syntax of this file to use python3-style exception handling 10 years ago
Hans-Joachim Kliemeck e7e3620983 allow empty user for kerberos ticket usage
fix syntax problems:
* it is possible that sql injection is done, therefore the [DBNAME] syntax is used.
* it is not possible to use default escape on cursor.execute for DBNAME, since it will insert single quotes around the name and this will cause syntax problems / single quotes within the actual DBNAME

implement autocommit setting, since some content can not be imported within transaction

fix for automatic tests

fix problems with named instances, corrected error message regarding configuration file

remove unused placeholder
10 years ago
Firat Arig b827b7398c Working mssql db controller
Using pymssql string interpolation

Cursor does string interpolation at script execution

Handled edge cases in import and delete

updated ansible version number
10 years ago
Sergei Antipov 33281cc93e Fixed problem with pymongo compatibility (#1249)
* Fixed problem with pymongo compatibility

Fixes #11
10 years ago
Kamil Szczygiel 431591c2b4 influxdb retention policy module 10 years ago
nitzmahone 2e09202aae back version added to 2.1 10 years ago
Kamil Szczygiel f193c1b96a influxdb database module 10 years ago
Ner'zhul d3a34c0b2c Add mongodb parameter module (#1596)
* Add mongodb parameter module

This module permit to configure mongodb live parameters to tune the running engine
10 years ago
René Moser 83a835925e Merge pull request #1737 from Dufgui/devel
fix #1731 : mongodb_user always says changed
10 years ago
René Moser d501e34694 Merge pull request #1750 from Dufgui/mongodb_users_check_mode_1747
#1747 mongodb_user support check mode
10 years ago
Toshio Kuratomi ccab560d86 Merge pull request #1877 from mscherer/improve_redis
Fix type used by the module
10 years ago
Michael Scherer 1c461f7c59 Fix type used by the module
Set int for the various port (and so avoid to convert them later)
Set no_log=True for the login_password
Verify that db is a int, so avoid a conversion
10 years ago
Toshio Kuratomi d5030ae555 Merge pull request #1875 from mscherer/fix_mongo_user
Fix ssl to be a bool, required to fix #1732
10 years ago
Toshio Kuratomi 7dc16b3eb9 Merge pull request #1876 from mscherer/improve_riak
Use proper type for riak config_dir argument
10 years ago
Michael Scherer ed9b83744b Use proper type for riak config_dir argument 10 years ago
Michael Scherer 27b3b43c52 Fix ssl to be a bool, required to fix #1732
May also fix #1869
10 years ago
René Moser bf268e23c0 Merge pull request #1628 from lsb/patch-1
Update mongodb_user.py
10 years ago
Marcos Diez 7ec5209e18 mongodb_user.py: changes on comments 10 years ago
Marcos Diez 5ff957322a mongodb_user: fix checking if the roles of an oplog reader user changed 10 years ago
Matt Clay f1b6eeabb2 Add optional mysql connect timeout. 10 years ago
Marcos Diez 72b1ad46b9 Updated database/misc/mongodb_user.py, the docs now explain how to add a read user to the local/oplog db 10 years ago
Guillaume Dufour 8c3aeac4a3 fix #1747 mongodb_user support check mode 10 years ago
Guillaume Dufour c6ebfa5480 use python fallback to avoid error on old mongo version without roles 10 years ago
Guillaume Dufour 29daa6ffe0 avoid problem with old mongo version without roles 10 years ago
Guillaume Dufour edbad80123 fix #1731 : mongodb_user always says changed 10 years ago
Brian Coca df92a0be0a fixed version added 10 years ago
lsb 1898ffc3cc Update mongodb_user.py
Typo
10 years ago
Toshio Kuratomi d6af6f8477 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
10 years ago