Lujeni
bbe7f73f89
Improve mongodb_user exception ( #2962 )
...
- Better error message
2016-09-20 10:19:53 -04:00
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.
2016-09-17 18:33:11 +02:00
Hans-Joachim Kliemeck
11329c5c4d
Fix mongodb user idempotence with 2.4 version ( #2725 ) ( #2920 )
2016-09-17 18:25:04 +02:00
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
2016-09-12 11:27:45 +02:00
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
2016-08-04 08:27:39 -07:00
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.
2016-08-04 08:17:10 -07:00
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
2016-07-21 08:23:05 +02:00
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
2016-07-20 07:58:35 +02:00
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
2016-06-29 14:12:50 +02:00
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
2016-06-16 12:46:12 -04:00
Lujeni
e032aeaedd
Support the ssl_cert_reqs directive ( #1122 )
2016-06-13 13:36:57 -04:00
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
2016-05-25 12:09:49 -07:00
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
2016-05-25 12:05:37 -07:00
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
2016-05-25 12:05:31 -07:00
Sergei Antipov
33281cc93e
Fixed problem with pymongo compatibility ( #1249 )
...
* Fixed problem with pymongo compatibility
Fixes #11
2016-05-16 11:25:52 -04:00
Kamil Szczygiel
431591c2b4
influxdb retention policy module
2016-05-06 09:44:15 -07:00
nitzmahone
2e09202aae
back version added to 2.1
2016-05-05 15:41:46 -07:00
Kamil Szczygiel
f193c1b96a
influxdb database module
2016-05-05 15:40:34 -07:00
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
2016-04-25 08:39:42 +02:00
René Moser
83a835925e
Merge pull request #1737 from Dufgui/devel
...
fix #1731 : mongodb_user always says changed
2016-04-01 00:24:22 +02:00
René Moser
d501e34694
Merge pull request #1750 from Dufgui/mongodb_users_check_mode_1747
...
#1747 mongodb_user support check mode
2016-03-23 09:07:15 +01:00
Toshio Kuratomi
ccab560d86
Merge pull request #1877 from mscherer/improve_redis
...
Fix type used by the module
2016-03-21 08:11:57 -07:00
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
2016-03-20 15:57:09 +01:00
Toshio Kuratomi
d5030ae555
Merge pull request #1875 from mscherer/fix_mongo_user
...
Fix ssl to be a bool, required to fix #1732
2016-03-20 07:10:47 -07:00
Toshio Kuratomi
7dc16b3eb9
Merge pull request #1876 from mscherer/improve_riak
...
Use proper type for riak config_dir argument
2016-03-20 07:09:53 -07:00
Michael Scherer
ed9b83744b
Use proper type for riak config_dir argument
2016-03-20 00:49:56 +01:00
Michael Scherer
27b3b43c52
Fix ssl to be a bool, required to fix #1732
...
May also fix #1869
2016-03-19 23:59:34 +01:00
René Moser
bf268e23c0
Merge pull request #1628 from lsb/patch-1
...
Update mongodb_user.py
2016-03-19 00:45:24 +01:00
Marcos Diez
7ec5209e18
mongodb_user.py: changes on comments
2016-03-16 22:07:58 +02:00
Marcos Diez
5ff957322a
mongodb_user: fix checking if the roles of an oplog reader user changed
2016-03-16 21:59:24 +02:00
Matt Clay
f1b6eeabb2
Add optional mysql connect timeout.
2016-03-10 14:11:16 -08:00
Marcos Diez
72b1ad46b9
Updated database/misc/mongodb_user.py, the docs now explain how to add a read user to the local/oplog db
2016-03-02 12:04:28 +02:00
Guillaume Dufour
8c3aeac4a3
fix #1747 mongodb_user support check mode
2016-02-28 08:34:12 +01:00
Guillaume Dufour
c6ebfa5480
use python fallback to avoid error on old mongo version without roles
2016-02-28 08:05:20 +01:00
Guillaume Dufour
29daa6ffe0
avoid problem with old mongo version without roles
2016-02-26 15:08:04 +01:00
Guillaume Dufour
edbad80123
fix #1731 : mongodb_user always says changed
2016-02-25 11:01:34 +01:00
Brian Coca
df92a0be0a
fixed version added
2016-02-10 10:46:40 -05:00
lsb
1898ffc3cc
Update mongodb_user.py
...
Typo
2016-02-05 17:10:44 -08:00
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
2016-01-11 13:06:22 -08:00
Toshio Kuratomi
8ec4f95ffd
Merge pull request #1255 from Jmainguy/mysql_connect
...
Unify mysql modules.
2015-12-16 10:47:55 -08:00
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 :)
2015-12-01 11:16:29 -06:00
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
2015-11-20 21:44:04 -05:00
Kenny Gryp
53d42cd8d8
revert to unbreak pull request
2015-11-09 10:07:15 +01:00
Kenny Gryp
e1c1ea9013
in order for replication setup to work, some errors should be ignored
2015-11-09 10:05:53 +01:00
Kenny Gryp
975d7952b9
including error code and error number when database connection creation fails
2015-11-03 16:44:00 +01:00
Javier Palacios
e033e6e602
BUGFIX: misnamed function name breaks check mode
2015-11-02 16:43:46 +00:00
Luis Rodriguez
6e80ed57d2
Fix bug #1067
2015-10-07 19:04:37 +02:00
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
2015-09-17 11:17:05 -04:00
Mischa ter Smitten
bd0314c406
Documented new operation modes
2015-09-17 09:52:58 +02:00
Mischa ter Smitten
a65965e38e
Add more modes to the mysql_replication module
...
Fixes #979
2015-09-15 12:57:37 +02:00