Commit graph

83 commits

Author SHA1 Message Date
Adrien "ze" Urban
bb17c3c512 debian: debconf root password, support for percona
Default values available for percona-server-server.
2018-06-07 16:03:01 +02:00
Adrien "ze" Urban
afae4c54b7 debian: debconf key in pillar
Allow debconf keys to be changed via pillars.
Useful when using non-standard packages that use different debconf keys to set
their passwords.
2018-06-07 16:02:55 +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
Alexander Weidinger
0bcfd7f259 mysql_root_password: use server:host 2018-03-16 23:48:25 +01:00
Alexander Weidinger
5e6708dd49 FreeBSD: change root password 2018-03-14 22:30:46 +01:00
David Beitey
8dd3d4da46 Fix duplicate ID if fqdn is localhost/localhost.localdomain 2017-08-03 17:41:27 +10: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
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
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
Glenn E. Bailey III
f56f39b113 Made datadir dynamic 2016-10-09 18:25:43 +00:00
Niels Abspoel
07ab6881e2 Merge pull request #122 from moje-skoly/master
Fixed formula on Debian where mysql_root_password state is not present.
2016-10-02 10:29:30 +02:00
Chris Routh
6ff6974640 Adjust check to mysql.version due to compile fail on Arch. 2016-09-15 22:12:15 -07:00
Chris Routh
ff728b2d22 Check for MySQL 5.7 and act appropriately on Redhat/Arch 2016-09-14 08:27:20 -07:00
Joe Julian
25167dea79 Set environment temp directory to /tmp
Some distros set the environment variable for the temp directory to
/tmp/$USER which is owned by $USER mode 700. This prevents the
mysql user from being able to access the temporary files it needs.
2016-09-07 09:37:35 -07:00
Tomáš Fejfar
0572bc39bf RHEL & Suse condition is correctly evaluated 2016-06-11 16:58:03 +02:00
Tomáš Fejfar
d3ec899409 RHEL & Suse condition is correctly evaluated 2016-06-09 18:50:10 +02:00
Niels Abspoel
b4cf406f13 fix archlinux package 2016-05-25 22:57:24 +02:00
Sarah Rose
6f429a89e2 fixed /etc/mysql/my.cnf creation failure in debian
the config file update depends on the parent directory /etc/mysql being present, which is created as part of the mysql-server package installation. therefore, the mysqld state is split up for debian environments into the package installation and the mysqld configuration. this allows to set the pkg installation as a requirement for the config file management and to set the config file management as a requirement for the mysqld service management
2016-04-12 17:43:54 +02:00
Nitin Madhok
8a59137dc4 Merge pull request #96 from M2Mobi/master
Add better support for a config directory with split config files.
2015-11-24 02:12:56 -05:00
Heinz Wiesinger
e72c1c12d3 Add states for optional dedicated salt user instead of root. 2015-10-08 17:40:04 +02:00
Heinz Wiesinger
0febad19c1 Add better support for a config directory with split config files.
This adds optional support for having split configuration files
within a config directory, most commonly /etc/my.cnf.d.
2015-10-05 21:50:19 +02:00
Gabriel Santos
27d9e68558 Fix empty "mysql_install_datadir" dict when OS family is not "Arch" 2015-09-30 02:34:24 -03:00
Roman Pertl
1d73a3582d remove creation of logdir again 2015-09-29 20:03:00 +00:00
Roman Pertl
1319eaf7da Revert "bugfix: remove anonymous accounts on all os, fix condition os_family for mysql root password"
This reverts commit 24f54ee98c.
2015-09-29 19:46:58 +00:00
Roman Pertl
eac19e4e5f fix auto creation of mysql initial data directory on arch linux; create logging directory 2015-09-29 19:46:15 +00:00
Roman Pertl
5b7aad5bc9 Arch Linux: create initial mysql data directory 2015-09-29 18:55:24 +00:00
Roman Pertl
429aba9ec9 Merge branch 'master' of https://github.com/saltstack-formulas/mysql-formula 2015-09-29 18:54:52 +00:00
Roman Pertl
24f54ee98c bugfix: remove anonymous accounts on all os, fix condition os_family for mysql root password 2015-09-29 18:53:29 +00:00
Ron Williams
5da21111e4 Fix RedHat MySQL admin root password setup. 2015-09-18 00:26:24 -06:00
Phil Lavin
5d7b01a5e3 Use mysql.server variable instead of hardcoded mysql-server for debconf 2015-09-16 12:00:32 +01:00
Niels Abspoel
8e086fd21a added opensuse support 2015-05-25 23:33:07 +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
root
98b054fcf6 Official oracle mysql repo for mysql-server creates file /usr/my.cnf
That overrides default /etc/mysql/my.cnf parameters
Now if this file exists it bacame managed and empty
2015-02-11 02:21:31 +00:00
tiger-seo
454f09d61f fixes #56: pillar lookup.server value is ignored 2015-02-05 17:17:09 +02:00
Wolodja Wentland
6bc3f1869b Remove require on mysql_debconf if password has not been set
This fixes #52
2014-12-13 09:05:46 +00:00
Wolodja Wentland
c2c1e3959e Ensure that debconf-utils is installed on Debian systems
debconf.set which is used in mysql.server has a dependency on debconf-utils. If
it is not installed the password will not be set and is cumbersome to change
later on.
2014-11-25 17:54:04 +00:00
David\ Beitey
4975897b42 Ensure all anonymous users are removed; ensure None values for fqdn are handled for YAML 2014-10-09 17:34:00 +10: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
Alfons Foubert
4ec9db6eaa Fix for CentOS 2014-09-28 00:37:59 +02:00
Alfons Foubert
ffff679528 Changed the grain os to os_family 2014-09-26 13:35:53 +02:00
Christian Hudon
78fddee402 Use os_family grain wherever possible, so the sls files work on a
broader number of Linux distributions.
2014-08-22 15:00:36 -04:00
tiger-seo
b74acd30ab connection arguments for anonymous user deletion 2014-08-05 22:14:11 +03:00