Commit graph

194 commits

Author SHA1 Message Date
Wayne Gemmell
168d1e2c12 Support for official mysql 8 packages
I've added support for the official mysql 8.0 packages and the relevant repositories.
Package names are mysql-community-server and mysql-community-client.
I know the repo setting breaks convention a bit but it is compulsory so I'm not sure how else to properly include it.

This change requires the salt pull request I created https://github.com/saltstack/salt/pull/51240 to be able to grant users.
2019-01-18 13:28:15 +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
N
c7945aabac
Don't fail on missing mysql.config.apparmor 2018-12-12 14:46:17 +00:00
N
78b00b6dca
Make apparmor standalone state . 2018-12-09 15:57:54 +00:00
N
bb8e64685c
Add server.apparmor state; rm unused dirs 2018-12-09 01:56:24 +00:00
Niels Abspoel
fc056f2419 fix init.sls extend 2018-12-09 00:34:58 +01:00
N
a82f2c1bc0
Apparmor support 2018-12-06 10:52:47 +00:00
Niels Abspoel
154fe789b5
Merge pull request #204 from M2Mobi/ssl-no-database
Add support for user creation with SSL when no databases are defined
2018-11-15 20:20:19 +01:00
Heinz Wiesinger
624c7a8642 Make sure the config directory and files within are handled after install. 2018-11-14 17:42:48 +01:00
Heinz Wiesinger
b20ace26b5 RPM in mariadb repos is called 'MariaDB-server'. 2018-11-14 17:42:48 +01:00
Heinz Wiesinger
c2ca424dac Use separate global config section when using a config directory. 2018-11-14 17:42:44 +01: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
d20ce192cb
fix code for MacOS desktop shortcuts 2018-10-02 21:59:33 +01:00
N
0e382508fc
MacOS Desktop shortcut handling 2018-10-02 20:01:33 +01:00
N
4cdc21bc92
Add install/remove states for MacOS (downloads.mysql.com) 2018-10-02 09:33:02 +01:00
Alexander Weidinger
a779417b1a Prevent 'key: None' in config files 2018-09-05 23:21:39 +02:00
Alexander Weidinger
573f18c36b cmd.run: use 'runas' instead of 'user' 2018-09-05 23:04:38 +02:00
Dominik Fišer
b8cf841e29 Replaced removed mysql.server with new mysql.serverpkg map property 2018-07-09 16:51:32 +02:00
N
9c4c136daa fix suse os_family grain 2018-06-30 10:58:16 +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
Christian Boltz
af621bce24
Make SUSE package name compatible with Leap 42.x
python2-pymysql exists only in Leap 15 and Tumbleweed.

Up to Leap 42.3, the package is named python-pymysql.
2018-04-25 21:53:52 +02:00
Christian Boltz
134130025f
Fix unbalanced if/endif
Commit 89985f7485 added a {% if ... %}
without the closing {% endif %} which leads to a Jinja syntax error.

This commit adds the missing {% endif %}
2018-04-25 20:45:31 +02:00
Wolodja Wentland
89985f7485 Default to MariaDB packages on Debian releases after stretch 2018-04-23 16:20:05 +01:00
alxwr
f777aeb891
Merge pull request #179 from saltstack-formulas/freebsd-support
FreeBSD support & opt-in state to enforce root password
2018-03-26 12:13:49 +02:00
Alexander Weidinger
0bcfd7f259 mysql_root_password: use server:host 2018-03-16 23:48:25 +01:00
Alexander Weidinger
3f4b8ea6ea mysql.remove_test_database: use connection_host 2018-03-16 23:41:52 +01:00
Alexander Weidinger
dd1e52761d mysql.server_checks: enforce root password 2018-03-14 23:34:34 +01:00
Alexander Weidinger
5e6708dd49 FreeBSD: change root password 2018-03-14 22:30:46 +01:00
Alexander Weidinger
ec8b076cb9 FreeBSD: correct default value for 'python' 2018-03-14 22:30:20 +01:00
Achim Herwig
e5e55c74ad Avoid -p option if password is empty.
Fixes #176
2018-02-21 21:55:09 +01:00
Daniel Wallace
1453641cbc
fix duplicate key in gentoo 2018-02-06 10:13:05 -07:00
Eduardo Speroni
71c12e4a27 Added charset and collate support, ensuring backwards compatibility 2018-02-02 11:51:32 -02:00
Niels Abspoel
11d11da928 fix python package suse 2018-01-05 20:46:17 +01:00
Daniel Wallace
41044a4698
osmajorrelease is an int now 2017-09-21 08:45:35 -06: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
David Beitey
8dd3d4da46 Fix duplicate ID if fqdn is localhost/localhost.localdomain 2017-08-03 17:41:27 +10:00
Gianni Carabelli
a6c057d63c honorate mysql:server:host as in user declaration 2017-05-15 12:00:36 +02:00
Christian Boltz
7ec43ad3c9 Fix two issues when using a salt_user (#163)
This fixes https://github.com/saltstack-formulas/mysql-formula/issues/157

* Avoid failures on first run with a salt_user defined

Add a dependency on sls: mysql.salt-user to ensure MySQL users
(especially the salt_user) get created early enough - without that,
parts of the first run will fail (but a second run works).
2017-03-09 22:16:34 +01:00
Aaron Miller
9981b8240e Update hash for MySQL community server RPM repo 2017-02-21 13:51:47 -08:00
Niels Abspoel
8766718fd5 fix SUSE os grain 2017-02-05 21:33:59 +01:00
Wolodja Wentland
18ae5e5942 Hardcode 'mysql-server' as debconf base path for root password
This is needed for correctly setting the root password when installing mariadb.
2017-01-24 16:05:08 +00:00
Andrew Wasilczuk
c68037aaa3 Fixes for bad defaults on CentOS 7 2016-12-27 22:25:08 +00:00
Brian Jackson
36fd044068 Merge pull request #154 from scornelissen85/fix/mariadb-datadir
Fix setting datadir to alternate dir with mariadb
2016-12-25 10:50:11 -08:00
Rene Jochum
df40904786 Fix mysql.config for client only installations.
Signed-off-by: Rene Jochum <rene@jochums.at>
2016-12-25 16:24:25 +01:00
Sander Cornelissen
7a2b76f455 Do not pin on mysql-server as server name as mysql-community-server could also be used 2016-12-19 17:38:35 +01:00
Sander Cornelissen
786bde93fe Fix setting datadir to alternate dir with mariadb 2016-12-19 17:00:59 +01:00
Sarah Rose
c371ff7f14 mysql.server formula fixes for gentoo
mysql.server formula failed on gentoo because of hard-coded pid-file (pid_file is not detected as declared for gentoo defaults.yaml because the variable name for the pid-file is hard-coded in the init.d script installed by standard dev-db/mysql ebuild as pid-file (not pid_file)).
mysql.server formula also failed because it was missing the  step. This commit adds this as an alternative mysql_initialize step for the gentoo os_family.
2016-12-09 15:32:24 +01:00
Andres Montalban
39a996effd Fix #147 - Wrong CentOS/RHEL 7 defaults and state failure when mysql.version is not defined 2016-10-29 10:25:37 -03:00
S-Wilhelm
efe9acc1d9 Update server.sls
Attempted fix for saltstack-formulas/mysql-formula#142
2016-10-10 17:02:59 -04:00