Commit graph

31 commits

Author SHA1 Message Date
Yoda-BZH
8eccd5a68c
feat(socket_authentication): allow unix_socket authentication
Co-authored-by: Tristan Charbonneau <tcharbonneau@oceanet-technology.com>
2020-07-10 16:12:24 +01:00
Eric Veiras Galisson
ec0e2a765a style: remove previous line from jinja directives 2019-12-03 10:05:23 +01:00
Imran Iqbal
a014e5539b
fix(user.sls): fix salt-lint errors
```bash
Examining mysql/user.sls of type state
[202] Jinja statement should have spaces before and after: {% statement %}
mysql/user.sls:35
{% set state_id = 'mysql_user_' ~ name ~ '_' ~ host%}

[206] Jinja variables should have spaces before and after: {{ var_name }}
mysql/user.sls:100
    - grant: {{db['grants']|join(",")}}
```
2019-10-09 14:36:20 +01:00
Alexander Weidinger
d1de0fdfc6 Allow to remove DB user 2019-04-09 23:40:18 +02:00
N
8f2e6ad770
Merge pull request #168 from nesteves/master
Allow the use of wildcards on a user's database/table names when defining grants.
2018-12-18 22:59:39 +00:00
Damien Tardy-Panis
165bdf675e Add support for user creation with SSL when no databases are defined 2018-11-14 15:59:22 +01:00
N
1e826ea487 Introduce standardized mapping files 2018-06-24 14:37:18 +01:00
Marius Kotsbak
4a8a9bf69a Make formula relative to actual directory by using 'tpldir' 2018-05-18 19:58:35 +02:00
Nuno Esteves
7a386578b7 Allow the use of wildcards on a user's database/table names when defining grants. 2017-08-15 23:06:12 +01:00
Gianni Carabelli
a6c057d63c honorate mysql:server:host as in user declaration 2017-05-15 12:00:36 +02:00
Joe Julian
703388ec05 Fix broken GRANT when not ssl
if ssl_option is not False, mysql_grant.present adds "REQUIRE" to the
grant command but since all the ssl sub options are false or missing,
there is a null string appended to the requirements. This causes the
grant command to fail.

This tests to see if ssl or X509 are set. If they're not, it skips the
entire ssl_option section leaving ssl_option==False to prevent that
error.
2016-09-07 09:32:55 -07:00
Christoffer Stokbaek
f0f65c9248 Added support for require SSL on user creation 2016-08-15 13:24:40 +02:00
Heinz Wiesinger
22d08ec1f3 Add support for fetching user hosts from salt mine. 2016-04-06 12:15:42 +02:00
abednarik
01779eb50a Replace deprecated iteritems() with items() 2015-11-17 10:22:38 -03:00
Heinz Wiesinger
becff9fcdd Fix wrong variable name for the salt user password in some files. 2015-10-09 10:12:32 +02:00
Heinz Wiesinger
e72c1c12d3 Add states for optional dedicated salt user instead of root. 2015-10-08 17:40:04 +02:00
René Jochum
e6cf0013c4 Smaller changes.
Signed-off-by: René Jochum <rene@jochums.at>
2015-07-11 17:41:19 +02:00
Johan Ström
8b730607b8 Use default root_password if not set 2015-06-18 11:42:22 +02:00
Matthew X. Economou
524b6e981c Allow changing connection_user by setting the 'mysql:server:root_user' Pillar key
In some MySQL server configurations (e.g., Amazon RDS), the root account
may not be available.  Instead, one may need to use a different account
in order to perform database administration.  This change replaced hard-
coded references to the root account with a Pillar lookup that defaults
to 'root'.  Existing users of this formula should see no change in its
behavior.
2015-05-18 10:33:27 -04:00
Tobias Alex-Petersen
462c2f4034 Add possibility of using another host (for db and user management) 2015-04-15 19:40:39 +02:00
Vincent Schumaker
26e634cdb6 Add the ability to specify user pillar data in the form of either
mysql:user:host

  or

  mysql:user:hosts

If mysql:user:hosts is used, an account for each 'user'@'host' combo
will be created with the specified grants

This fixes #49
2014-12-17 10:57:39 -05:00
Scott Reeves
686dcf293f Use a dict instead of a list for users 2014-11-02 00:57:27 -04:00
root
c55c2a4c46 Add support table param for mysql.user state (by default table is *)
Add support of changing/adding any attribute in my.cnf. NB!!! It breaks backward compatibility for mysql.server state.
Delete mysql_size param support (now you can customiza all my.cnf parameters in pillar)
Add script import_users.py that create user pillar for existent server
Add support root@localhost mysql user without password (root_password = False)
Add support of grant_option
2014-09-29 00:08:11 +09:00
tiger-seo
a3784bd124 allow to add users without password 2014-08-07 19:47:48 +03:00
tiger-seo
8361568c9d add quotes, so that all databases (*.*) is acceptable 2014-08-05 22:13:26 +03:00
Juan M
bad340eb38 Added support for % hosts 2014-07-02 23:43:27 -03:00
Chad Heuschober
b53d61adfc Adds meta state and also deals with the default password security issue. 2014-07-01 15:18:54 -04:00
Chad Heuschober
adacdb49e4 Fixed state names without proper namespacing that could lead to potential conflicts. 2014-05-21 12:06:17 -04:00
Clayton Kramer
13f6ff1c6a Moved the python-mysql package out of the server installed and added it as a SLS include for the database and user SLS that depend on it. 2014-05-15 17:15:09 -04:00
Clayton Kramer
d81c6341e9 Added support for MySQL hashed user password. Also added some improved YAML quoting around passwords. 2014-05-15 16:40:02 -04:00
Clayton Kramer
c5bbc00620 Added new database and user SLS files that were left out of previous commits. 2014-05-12 12:35:06 -04:00