Fabio Alessandro Locati
06bf2e1e63
Make main()
calls conditional - database ( #3659 )
2016-12-08 11:35:15 -05:00
Fabio Alessandro Locati
737c6afb54
Native YAML - database/misc/mongodb_user.py ( #3631 )
2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
fb2ddac407
Native YAML - database/postgresql/postgresql_ext ( #3617 )
2016-12-08 11:35:14 -05:00
Fabio Alessandro Locati
47442b7c22
Native YAML - databases/pgsql ( #3606 )
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
51798cba0e
Native YAML - Databases/mysql ( #3605 )
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
13b970d04b
Native YAML - Databases/MsSQL ( #3604 )
2016-12-08 11:35:13 -05:00
Fabio Alessandro Locati
7ac053576e
Native YAML - Database/musc ( #3603 )
2016-12-08 11:35:13 -05:00
John R Barker
7e6fe97f57
Update version_added, update docs ( #3542 )
...
k: v in docs now
Minor tweaks after https://github.com/ansible/ansible-modules-extras/pull/1883
2016-12-08 11:35:10 -05:00
Dorn-
fb610b7d07
Add a new module to handle schema with postgres ( #1883 )
2016-12-08 11:35:10 -05:00
Maarten Bezemer
dd51ec94e7
mongodb_user: Allow pymongo version 3.2 in combination with mongodb 3.2 ( #3474 )
2016-12-08 11:35:09 -05:00
jctanner
6cfb44b4bb
replace type() with isinstance() ( #3404 )
...
Replace use of type() with isinstance()
Addresses https://github.com/ansible/ansible/issues/18310
2016-12-08 11:35:06 -05:00
Toshio Kuratomi
58ec3df13d
Revert "add support for proxysql ( #2917 )"
...
This reverts commit 9d51f823956e47b02abd7754522b5bd4202bd82c.
proxysql is breaking docs build. Reverting until those are fixed
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
5cd11f5e39
Revert "several fixes to doc to avoid breaking doc build"
...
This reverts commit 6e4a182684a54e60be5318525c658cfe315d06ad.
reverting proxysql modules for owner to fix docs build so reverting this
fix as well.
2016-12-08 11:35:04 -05:00
Brian Coca
15a0cffee0
several fixes to doc to avoid breaking doc build
2016-12-08 11:35:04 -05:00
bmildren
e284af01b1
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
2016-12-08 11:35:04 -05:00
Toshio Kuratomi
ea05c56a41
Fix remaining python3 compile problems
2016-12-08 11:35:01 -05:00
Michael Scherer
95929fb79f
Make postgresql module in extras compile on py3
2016-12-08 11:34:59 -05:00
Michael Scherer
6963cd8ae7
Make mongodb modules compile on python 3
2016-12-08 11:34:59 -05:00
Michael Scherer
573958bd53
Do not leak login_password when using verbose, with no_log
2016-12-08 11:34:59 -05:00
Michael Scherer
715b88a8a5
Make redis run on python 3
2016-12-08 11:34:58 -05:00
Ryan Currah
00adb6e5d4
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.
2016-12-08 11:34:57 -05:00
THEBAULT Julien
bfb1ad6690
Fix mongodb user compatibility check ( #2731 )
...
- Check the compatibility asap
2016-12-08 11:34:55 -05:00
Lujeni
e226211c5b
Fix mongodb_user ssl_cert_reqs param ( #2963 ) ( #2965 )
2016-12-08 11:34:54 -05:00
Lujeni
477d174fbc
Fix mongodb_user default role value when update_password is set ( #2997 )
2016-12-08 11:34:54 -05:00
Lujeni
aa6aedf26c
Improve mongodb_user exception ( #2962 )
...
- Better error message
2016-12-08 11:34:53 -05:00
Michael Scherer
6967a32ce4
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-12-08 11:34:52 -05:00
Hans-Joachim Kliemeck
443dba148c
Fix mongodb user idempotence with 2.4 version ( #2725 ) ( #2920 )
2016-12-08 11:34:52 -05:00
Serge van Ginderachter
c1fd6c6388
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-12-08 11:34:37 -05:00
Serge van Ginderachter
121ef13e47
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-12-08 11:34:37 -05:00
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