Michael DeHaan
391fb98ee2
Allow modules to be categorized, and also sort them when generating the documentation.
2013-04-28 15:03:45 -04:00
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
2013-03-25 09:53:04 -04:00
Michael DeHaan
6b566cfc1e
Merge pull request #2404 from lorin/mysql-mycnf-user
...
.my.cnf: default to login when no user specified
2013-03-17 07:32:14 -07:00
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.
2013-03-15 11:43:32 -04:00
Lorin Hochstein
6fd5770dfd
.my.cnf: default to login when no user specified
...
When using a .my.cnf file, when there is no user variable defined,
default to the login user.
This change has the mysql_user module behavior match the behavior
of the mysql command-line client.
Also adds an example .my.cnf to the docs.
2013-03-15 11:05:30 -04:00
Michael DeHaan
66a596dd5d
fix MySQL user doc formatting issue
2013-03-01 17:38:14 -05:00
Michael DeHaan
26826c3bde
Merge pull request #2235 from marktheunissen/mysql-idempotent-explanation
...
Add mysql user documentation about idempotent playbooks
2013-03-01 13:45:55 -08:00
Mark Theunissen
34bed2fa2e
Fix bug from copy-paste
2013-02-28 13:55:22 -06:00
Mark Theunissen
45949c7643
Add mysql user documentation
2013-02-28 10:25:09 -06:00
Mark Theunissen
234d31bf72
Adding back support for pass=
2013-02-26 16:27:23 -06:00
Till Maas
cc8fbe34f2
mysql_user: handle unnecessary GRANT revocation
2013-02-22 14:42:41 +01:00
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
2013-02-22 13:25:34 +01:00
Blair Zajac
fa8e653011
Simplify and correct comparisons with None.
2013-02-16 13:32:48 -05:00
Michael DeHaan
663a8fef3f
chmod -x for all module files in source checkout
2012-11-19 13:47:40 -05:00
Michael DeHaan
0ab3bd0034
Fix for #1577 (python 2.4 compliance for mysql_user), tested only for syntax, please exercise MySQL fans!
2012-11-14 20:02:39 -05:00
Yvan Cottyn
e9a356bbde
Fix exception catching for Python 2.4
2012-11-09 14:28:21 +01:00
Michael DeHaan
c0747b7baa
pep8 fixes
2012-10-30 20:42:07 -04:00
Stijn Opheide
733693ffdc
- removed space escapes from MySQL SHOW GRANTS regex
...
- proper checking for with grant option (if this is not the only option the user has)
- added revoking of grant option
2012-10-24 15:02:54 +02:00
Stijn Opheide
6b92b69fe6
added the GRANT privilege for a mysql user (WITH GRANT OPTION)
2012-10-24 15:02:54 +02:00
Jan-Piet Mens
feab57e270
Reformat code: examples consistently
...
- added terse syntax to modules.rst
- added description of special variables to template module
2012-10-23 15:14:01 +02:00
Jan-Piet Mens
e620fed755
Jumbo DOCUMENTATION patch
2012-10-01 09:18:54 +02:00
Jan-Piet Mens
754888d896
DOCUMENTATION for fetch,mount,ohai,easy_install
...
- .rst now supresses default if none is set (looks better in HTML)
- .rst now handles empty options list
- Fixed postgresql_user and mysql_user because YAML contained colons
- docs for facter
2012-09-30 12:29:32 +02:00
Marco Vito Moscaritolo
8898643c1d
Added DOCUMENTATION to musql_user module.
2012-09-29 16:15:41 +02:00
Ingo Gottwald
891415e616
Added login_unix_socket option to mysql_user module
2012-08-03 12:35:18 +02:00
Michael DeHaan
0a3ebdb6d5
Module consistency and make daisy chaining work with invalid arguments detection.
2012-08-01 00:22:02 -04:00
Mark Theunissen
9a1265b856
Changing the parameter names to be consistent, and adding root user default with empty password, as per mysql standard
2012-07-30 17:15:24 -05:00
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
2012-07-26 11:30:22 -05:00
Mark Theunissen
888ac86d70
Woops, missed the rest of them
2012-07-26 11:13:10 -05:00
Mark Theunissen
ac23c69bcc
Making the passwd parameter consistent
2012-07-26 11:10:22 -05:00
Mark Theunissen
6afe3fd497
Changing to read from a file pointer instead so that an exception is thrown if the file doesn't exist
2012-07-26 08:58:21 -05:00
Mark Theunissen
12979cf834
Change modules to use credentials in my.cnf if they are available
2012-07-25 16:31:12 -05:00
Mark Theunissen
12e23a1a6c
Upgrading MySQL user module to new format
2012-07-22 12:11:39 -05:00
Mark Theunissen
f47cc1693d
The MySQL modules
2012-07-13 17:07:23 -05:00