Commit Graph

32 Commits (d7dc4594eb5d8859829b88663088eec04ad3a070)

Author SHA1 Message Date
Lorin Hochstein a199f97600 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
Michael DeHaan 910aedfbeb Merge pull request #2404 from lorin/mysql-mycnf-user
.my.cnf: default to login when no user specified
12 years ago
Lorin Hochstein 866a7254fb 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
Lorin Hochstein e048e47ad0 .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.
12 years ago
Michael DeHaan aaa04add66 fix MySQL user doc formatting issue 12 years ago
Michael DeHaan 15047b2f26 Merge pull request #2235 from marktheunissen/mysql-idempotent-explanation
Add mysql user documentation about idempotent playbooks
12 years ago
Mark Theunissen 6fa11e9bc0 Fix bug from copy-paste 12 years ago
Mark Theunissen 8e38ea780e Add mysql user documentation 12 years ago
Mark Theunissen 865de1999b Adding back support for pass= 12 years ago
Till Maas 1738eba749 mysql_user: handle unnecessary GRANT revocation 12 years ago
Till Maas 2e904ae233 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 6d5991aa4c Simplify and correct comparisons with None. 12 years ago
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Michael DeHaan 70366ec80c Fix for #1577 (python 2.4 compliance for mysql_user), tested only for syntax, please exercise MySQL fans! 12 years ago
Yvan Cottyn 650e4cbf11 Fix exception catching for Python 2.4 12 years ago
Michael DeHaan 8d3f73d562 pep8 fixes 12 years ago
Stijn Opheide a090d6cef7 - 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
12 years ago
Stijn Opheide 049e14e7d1 added the GRANT privilege for a mysql user (WITH GRANT OPTION) 12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Jan-Piet Mens c78a0a4a49 Jumbo DOCUMENTATION patch 12 years ago
Jan-Piet Mens eef198144f 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
12 years ago
Marco Vito Moscaritolo 63c7ee45d7 Added DOCUMENTATION to musql_user module. 12 years ago
Ingo Gottwald b81b451038 Added login_unix_socket option to mysql_user module 12 years ago
Michael DeHaan fe9a05f492 Module consistency and make daisy chaining work with invalid arguments detection. 12 years ago
Mark Theunissen f0a9902c25 Changing the parameter names to be consistent, and adding root user default with empty password, as per mysql standard 12 years ago
Mark Theunissen 7a3f64d4d7 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 812711d530 Woops, missed the rest of them 13 years ago
Mark Theunissen b51d6d9fca Making the passwd parameter consistent 13 years ago
Mark Theunissen 894e4ff78a 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 5ab81692d7 Change modules to use credentials in my.cnf if they are available 13 years ago
Mark Theunissen b279f1aea2 Upgrading MySQL user module to new format 13 years ago
Mark Theunissen 887d3993c4 The MySQL modules 13 years ago