Commit Graph

69 Commits (fb03fc8eb104f5c85da39e8daccd8bf84026e032)

Author SHA1 Message Date
gyurco bc8e8173ad 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-12-08 11:34:32 -05:00
gyurco 5c35d55b3c 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-12-08 11:34:32 -05:00
Nicholas Morsman 18921395b6 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-12-08 11:34:26 -05:00
Strahinja Kustudic 5d63d0b8d1 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-12-08 11:34:23 -05:00
Lujeni 739a15cfe6 Support the ssl_cert_reqs directive (#1122) 2016-12-08 11:34:22 -05:00
Toshio Kuratomi 0d706d25b6 The pymssql library requires python 2.7 or greater so port the syntax of this file to use python3-style exception handling 2016-12-08 11:34:18 -05:00
Hans-Joachim Kliemeck e43e572770 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-12-08 11:34:18 -05:00
Firat Arig 80a77ea00a 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-12-08 11:34:18 -05:00
Sergei Antipov 8263dd18a9 Fixed problem with pymongo compatibility (#1249)
* Fixed problem with pymongo compatibility

Fixes #11
2016-12-08 11:34:14 -05:00
Kamil Szczygiel 6764530330 influxdb retention policy module 2016-12-08 11:34:12 -05:00
nitzmahone 07b7ff06c5 back version added to 2.1 2016-12-08 11:34:12 -05:00
Kamil Szczygiel 4a93ebd97b influxdb database module 2016-12-08 11:34:12 -05:00
Ner'zhul bb4751e791 Add mongodb parameter module (#1596)
* Add mongodb parameter module

This module permit to configure mongodb live parameters to tune the running engine
2016-12-08 11:34:09 -05:00
Marcos Diez 1aec0a3ffb mongodb_user.py: changes on comments 2016-12-08 11:34:01 -05:00
Marcos Diez 37ba9a3fe1 mongodb_user: fix checking if the roles of an oplog reader user changed 2016-12-08 11:34:01 -05:00
Guillaume Dufour dc83f2c6d7 use python fallback to avoid error on old mongo version without roles 2016-12-08 11:34:01 -05:00
Guillaume Dufour 467d9a8090 avoid problem with old mongo version without roles 2016-12-08 11:34:01 -05:00
Guillaume Dufour b07e1c13f7 fix #1731 : mongodb_user always says changed 2016-12-08 11:34:01 -05:00
Guillaume Dufour 8227105f02 fix #1747 mongodb_user support check mode 2016-12-08 11:33:59 -05:00
Michael Scherer 184d9fc4e5 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-12-08 11:33:58 -05:00
Michael Scherer 8abe22c917 Fix ssl to be a bool, required to fix #1732
May also fix #1869
2016-12-08 11:33:58 -05:00
Michael Scherer 1a05e0f1c8 Use proper type for riak config_dir argument 2016-12-08 11:33:58 -05:00
lsb 2095aa5100 Update mongodb_user.py
Typo
2016-12-08 11:33:56 -05:00
Matt Clay 9c883f689d Add optional mysql connect timeout. 2016-12-08 11:33:56 -05:00
Marcos Diez ece891baec Updated database/misc/mongodb_user.py, the docs now explain how to add a read user to the local/oplog db 2016-12-08 11:33:51 -05:00
Brian Coca 51e034a8cc fixed version added 2016-12-08 11:33:49 -05:00
Toshio Kuratomi ad0d2c1747 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-12-08 11:33:44 -05:00
Jonathan Mainguy a50b661e54 Unify mysql modules.
Added config_file, ssl_ca, ssl_cert, ssl_key, changed connect method, added error checking where a backtrace previoussly was possible
2016-12-08 11:33:40 -05:00
Josh Gachnang 058feb47c2 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 :)
2016-12-08 11:33:36 -05:00
Kenny Gryp c908c0663d revert to unbreak pull request 2016-12-08 11:33:34 -05:00
Kenny Gryp c766cbd98a in order for replication setup to work, some errors should be ignored 2016-12-08 11:33:33 -05:00
Kenny Gryp 4e401fc4e6 including error code and error number when database connection creation fails 2016-12-08 11:33:33 -05:00
Javier Palacios 185761bfcb BUGFIX: misnamed function name breaks check mode 2016-12-08 11:33:32 -05:00
Luis Rodriguez adedc7ef3f Fix bug #1067 2016-12-08 11:33:26 -05:00
Mischa ter Smitten 2ea6fc210a Documented new operation modes 2016-12-08 11:33:19 -05:00
Mischa ter Smitten 946732eb74 Add more modes to the mysql_replication module
Fixes #979
2016-12-08 11:33:19 -05:00
Brian Coca deb36b00d0 added missing license headers fixes #508 2016-12-08 11:33:06 -05:00
Toshio Kuratomi a4859e1087 Clean up unneeded urllib2 imports 2016-12-08 11:33:01 -05:00
Matt Martz 0399d40895 replace tabs with spaces in mongodb_user.py 2016-12-08 11:32:56 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
Solomon Gifford 28ff85c443 #364 Added support for update_password=dict(default="always", choices=["always", "on_create"]) 2016-12-08 11:32:46 -05:00
Solomon Gifford 7b3cfde043 fixes issue #362 2016-12-08 11:32:46 -05:00
Solomon Gifford 401828e588 \login_password with missing login_user not caught #363 2016-12-08 11:32:46 -05:00
Toshio Kuratomi 4f07e8b256 Many more doc fixes 2016-12-08 11:32:40 -05:00
Brian Coca c4f52f62f7 fix doc parsing by correctly quoting author 2016-12-08 11:32:39 -05:00
Greg DeKoenigsberg 319a03869d Update mysql_replication.py 2016-12-08 11:32:38 -05:00
Balazs Pocze a7c0da1e8e Changes made as modifying master_auto_position parameter type to bool 2016-12-08 11:32:38 -05:00
Balazs Pocze bdf85951cf gtid_replication parameter changed to master_auto_position to keep the same variable name as the MySQL server itself 2016-12-08 11:32:38 -05:00
Balazs Pocze fca06a1dfb gtid_replication parameter added to keep this module working in environments which are using GTID replication 2016-12-08 11:32:38 -05:00
Matt Martz 8bd5757720 Fix up modules that have python24 syntax error 2016-12-08 11:32:36 -05:00