Commit graph

115 commits

Author SHA1 Message Date
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
Heinz Wiesinger
d15e431468 Fix trailing whitespaces. 2015-10-05 21:44:20 +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
8b0c7cc71d Fix database administrative user within database import command. 2015-09-24 19:30:03 -06: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
René Jochum
e6cf0013c4 Smaller changes.
Signed-off-by: René Jochum <rene@jochums.at>
2015-07-11 17:41:19 +02:00
Imran Haider
cfced7a501 Add support for Arch Linux 2015-06-20 14:04:37 -04:00
Johan Ström
8b730607b8 Use default root_password if not set 2015-06-18 11:42:22 +02: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
Wido den Hollander
10c8ed9fed Fix syntax error in mysql.remove_test_database 2015-04-20 13:31:27 +02:00
Tobias Alex-Petersen
462c2f4034 Add possibility of using another host (for db and user management) 2015-04-15 19:40:39 +02:00
Ross Perkins
1d3e2bb9ee Added ability for SQL Schema sources to be templates 2015-03-18 12:43:27 -07:00
Alex Hayes
5546542b19 Merge branch 'master' of https://github.com/saltstack-formulas/mysql-formula into feature/mysql-dev
Conflicts:
	README.rst
2015-03-10 07:38:55 +11:00
Nitin Madhok
6a0d3656d3 Merge pull request #60 from neuhalje/master
Add Fedora 21 and a mysql.disabled state
2015-03-01 15:21:21 -07:00
Wolodja Wentland
2dedb85d5f Sort options in my.cnf
Options in my.cnf are not sorted at this moment which introduces unnecessary
changes whenever the file is being rewritten.
2015-02-17 09:44:16 +01: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
Egor Potiomkin
c0c9dbd610 remove old unused files 2015-02-03 12:09:50 +08:00
Jens Neuhalfen
38a501fd77 Add Fedora to defaults.yaml 2015-01-26 21:28:09 +01:00
Jens Neuhalfen
0e5ce7a86d New 'mysql.disabled' state. 2015-01-26 11:07:22 +01: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
Seth House
8d89326f4e Merge pull request #50 from sivir/master
Delete supported params
2014-12-15 10:42:02 -07:00
Seth House
9c0f18c48f Merge pull request #54 from babilen/issue/52
Remove require on mysql_debconf if password has not been set
2014-12-13 02:26:03 -07: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
Seth House
cb5b604a95 Change states to use short-dec style 2014-12-13 00:19:59 -07:00
root
f03d88a759 1) Supported params list deleted, because it's hard to keep it fresh (there was cool parser by davidjb, but it does not take care of underscores and hiphen in options names). Now all parameters considering supported, and all hiphen will be replaced with underscore when salt creates my.cnf. Thats why all default parameters changed to underscore type.
2) Fixed bug with empty config append parameter
3) Fixed bug with empty root password applying
2014-12-12 10:05:39 +08:00
Alex Hayes
34515c7b50 Add state 'mysql.dev' that provides support for installing MySQL development libraries and header files. 2014-12-12 09:20:09 +11:00
1exx
e70a7d01e4 Update defaults.yaml
Missing 'sections:'.
2014-11-28 18:29:56 +05: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
Seth Miller
ab634d3fa1 add Amazon support to defaults config file 2014-11-16 18:11:48 -06:00
Scott Reeves
686dcf293f Use a dict instead of a list for users 2014-11-02 00:57:27 -04:00
David Boucha
5b16c57af5 create directory if not there 2014-10-20 13:02:43 -06:00
David\ Beitey
4e40bc2c51 Add remove test database state
Conflicts:
	README.rst

Conflicts:
	README.rst
2014-10-14 13:28:33 +10:00
David\ Beitey
a7494c9490 Add scripted parsing of all mysql options 2014-10-10 16:43:15 +10:00
Nitin Madhok
b697e58c73 Merge pull request #37 from jcu-eresearch/fix-user-removal
Ensure all anonymous users are removed; ensure None values for fqdn are handled for YAML
2014-10-09 06:49:59 -04: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
David\ Beitey
734d5ef7a1 Fix broken state / my.cnf file 2014-10-09 16:47:58 +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
Alfons Foubert
7c51515a87 Adding File for CentOS 2014-09-25 18:54:59 +02:00