Jeffrey Chu
50fa0898db
mysql_db: use --password= instead of -p in dump/import
12 years ago
Lorin Hochstein
c9990b801e
Strip quotes when parsing my.cnf
...
Remove leading/trailing single or double quotes when parsing the my.cnf
file in mysql_user and mysql_db.
Do this so that these modules parse the my.cnf file the same way that
the mysql client does.
From: http://dev.mysql.com/doc/refman/5.0/en/option-files.html
You can optionally enclose the value within single quotation marks
or double quotation marks, which is useful if the value contains a
“#” comment character.
Fixes #2405
12 years ago
Lorin Hochstein
1de91d2181
Document mysql_(user,db) login_unix_socket option
...
mysql_user and mysql_db both take a login_unix_socket option.
This patch adds docs that describe how to use it.
12 years ago
Peter Janes
f6f7d3559d
Use login_host for import and dump operations
12 years ago
asad-at-srt
e581bbcafc
Update mysql_db
...
The target parameter is not required, the DOCUMENTATION section was in error.
12 years ago
Mark Theunissen
234d31bf72
Adding back support for pass=
12 years ago
Till Maas
813d2335ad
mysql_db/user: Use password for my.cnf
...
According to the MySQL docs[0] the password should be stored after
'password=' instead of 'pass='.
[0] http://dev.mysql.com/doc/refman/5.1/en/password-security-user.html
12 years ago
Blair Zajac
fa8e653011
Simplify and correct comparisons with None.
12 years ago
Daniel Hokka Zakrisson
060266e291
Python 2.4 fixes for modules
12 years ago
Daniel Hokka Zakrisson
b57b1f4cbe
Correct name is login_user
...
Fixes #1848 .
12 years ago
Jan-Piet Mens
caf003c813
DOCUMENTATION strings
12 years ago
Michael DeHaan
663a8fef3f
chmod -x for all module files in source checkout
12 years ago
Yvan Cottyn
37de471ab6
Fix exception catching for Python 2.4
12 years ago
Jan-Piet Mens
feab57e270
Reformat code: examples consistently
...
- added terse syntax to modules.rst
- added description of special variables to template module
12 years ago
Aurélien Bondis
1f91a70310
fix issue with mysql authentication and states not dump or import
12 years ago
Aurélien Bondis
1a51af0e38
mysql_db: use the database to test connexion, added dump and import state - requires target=path/to/a/file
12 years ago
Jan-Piet Mens
e620fed755
Jumbo DOCUMENTATION patch
12 years ago
Marco Vito Moscaritolo
6184a0a313
Fixed doc string
12 years ago
Marco Vito Moscaritolo
a75348b406
Added DOCUMENTATION to musql_db module.
12 years ago
Ingo Gottwald
a2aa30f4e5
Added login_unix_socket option to mysql_db module
13 years ago
Michael DeHaan
7e9e29011e
Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
...
AnsibleModule stuff no longer base64 encodes for simplicity and speed reasons.
13 years ago
Michael DeHaan
0a3ebdb6d5
Module consistency and make daisy chaining work with invalid arguments detection.
13 years ago
Petros Moisiadis
24c1d32120
added extra arguments for database creation
...
mysql_db: added 'encoding' and 'collation' args
postgresql_db: added 'owner', 'template' and 'encoding' args
13 years ago
Mark Theunissen
9a1265b856
Changing the parameter names to be consistent, and adding root user default with empty password, as per mysql standard
13 years ago
Mark Theunissen
7395becf3a
Check file exists instead of relying on the exception. Leave the exception catch in, in case the file is deleted or some other issue crops up
13 years ago
Mark Theunissen
888ac86d70
Woops, missed the rest of them
13 years ago
Mark Theunissen
ac23c69bcc
Making the passwd parameter consistent
13 years ago
Mark Theunissen
6afe3fd497
Changing to read from a file pointer instead so that an exception is thrown if the file doesn't exist
13 years ago
Mark Theunissen
12979cf834
Change modules to use credentials in my.cnf if they are available
13 years ago
Mark Theunissen
12e23a1a6c
Upgrading MySQL user module to new format
13 years ago
Mark Theunissen
efb60776f4
Upgrading to new shared module code
13 years ago
Mark Theunissen
f47cc1693d
The MySQL modules
13 years ago