Commit Graph

239 Commits (9278cce7d2755786a598cbc655c7df4440a2f68d)

Author SHA1 Message Date
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
8 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.
8 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
8 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
8 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
9 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
9 years ago
Lujeni e032aeaedd Support the ssl_cert_reqs directive (#1122) 9 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 9 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
9 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
9 years ago
Sergei Antipov 33281cc93e Fixed problem with pymongo compatibility (#1249)
* Fixed problem with pymongo compatibility

Fixes #11
9 years ago
Kamil Szczygiel 431591c2b4 influxdb retention policy module 9 years ago
nitzmahone 2e09202aae back version added to 2.1 9 years ago
Kamil Szczygiel f193c1b96a influxdb database module 9 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
9 years ago
René Moser 83a835925e Merge pull request #1737 from Dufgui/devel
fix #1731 : mongodb_user always says changed
9 years ago
René Moser d501e34694 Merge pull request #1750 from Dufgui/mongodb_users_check_mode_1747
#1747 mongodb_user support check mode
9 years ago
Toshio Kuratomi ccab560d86 Merge pull request #1877 from mscherer/improve_redis
Fix type used by the module
9 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
9 years ago
Toshio Kuratomi d5030ae555 Merge pull request #1875 from mscherer/fix_mongo_user
Fix ssl to be a bool, required to fix #1732
9 years ago
Toshio Kuratomi 7dc16b3eb9 Merge pull request #1876 from mscherer/improve_riak
Use proper type for riak config_dir argument
9 years ago
Michael Scherer ed9b83744b Use proper type for riak config_dir argument 9 years ago
Michael Scherer 27b3b43c52 Fix ssl to be a bool, required to fix #1732
May also fix #1869
9 years ago
René Moser bf268e23c0 Merge pull request #1628 from lsb/patch-1
Update mongodb_user.py
9 years ago
Marcos Diez 7ec5209e18 mongodb_user.py: changes on comments 9 years ago
Marcos Diez 5ff957322a mongodb_user: fix checking if the roles of an oplog reader user changed 9 years ago
Matt Clay f1b6eeabb2 Add optional mysql connect timeout. 9 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 9 years ago
Guillaume Dufour 8c3aeac4a3 fix #1747 mongodb_user support check mode 9 years ago
Guillaume Dufour c6ebfa5480 use python fallback to avoid error on old mongo version without roles 9 years ago
Guillaume Dufour 29daa6ffe0 avoid problem with old mongo version without roles 9 years ago
Guillaume Dufour edbad80123 fix #1731 : mongodb_user always says changed 9 years ago
Brian Coca df92a0be0a fixed version added 9 years ago
lsb 1898ffc3cc Update mongodb_user.py
Typo
9 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
9 years ago
Toshio Kuratomi 8ec4f95ffd Merge pull request #1255 from Jmainguy/mysql_connect
Unify mysql modules.
9 years ago
Josh Gachnang 8d866669bb Fix mongodb_user docs typo
Bob's last name is Belcher: http://bobs-burgers.wikia.com/wiki/Bob_Belcher.

These docs made me chuckle, so thanks :)
9 years ago
Jonathan Mainguy 0d0c887f02 Unify mysql modules.
Added config_file, ssl_ca, ssl_cert, ssl_key, changed connect method, added error checking where a backtrace previoussly was possible
9 years ago
Kenny Gryp 53d42cd8d8 revert to unbreak pull request 9 years ago
Kenny Gryp e1c1ea9013 in order for replication setup to work, some errors should be ignored 9 years ago
Kenny Gryp 975d7952b9 including error code and error number when database connection creation fails 9 years ago
Javier Palacios e033e6e602 BUGFIX: misnamed function name breaks check mode 9 years ago
Luis Rodriguez 6e80ed57d2 Fix bug #1067 9 years ago
James Cammarata 840ce26093 Merge pull request #981 from tersmitten/add-more-modes-to-the-mysql-replication-module
Add more modes to the mysql_replication module
9 years ago
Mischa ter Smitten bd0314c406 Documented new operation modes 9 years ago
Mischa ter Smitten a65965e38e Add more modes to the mysql_replication module
Fixes #979
9 years ago
Constantine Romanov 781043f511 Update mongodb_user.py
version_added: "2.0"
9 years ago
Constantine Romanov fded415ff2 Update mongodb_user.py
Auth source support
9 years ago
Brian Coca 27bf193483 added missing license headers
fixes #508
9 years ago
Toshio Kuratomi 79173ac18d Clean up unneeded urllib2 imports 9 years ago