mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
Create and manage MySQL databases on the server
This commit is contained in:
parent
101f7ffb59
commit
88f80b06a6
3 changed files with 15 additions and 0 deletions
|
@ -26,3 +26,8 @@ Install the MySQL client package.
|
|||
Install the MySQL server package and start the service.
|
||||
|
||||
Debian OS family supports setting MySQL root password during install via debconf.
|
||||
|
||||
``mysql.database``
|
||||
----------------
|
||||
|
||||
Create and manage MySQL databases.
|
|
@ -26,6 +26,11 @@ mysqld:
|
|||
- watch:
|
||||
- pkg: mysqld
|
||||
|
||||
mysql-python:
|
||||
pkg:
|
||||
- installed
|
||||
- name: {{ mysql.python }}
|
||||
|
||||
{% if grains['os'] in ['Ubuntu', 'Debian', 'Gentoo'] %}
|
||||
my.cnf:
|
||||
file.managed:
|
||||
|
|
|
@ -5,6 +5,11 @@ mysql:
|
|||
port: 3306
|
||||
user: mysql
|
||||
|
||||
# Manage databases
|
||||
database:
|
||||
- foo
|
||||
- baz
|
||||
|
||||
# Override any names defined in map.jinja
|
||||
lookup:
|
||||
server: mysql-server
|
||||
|
|
Loading…
Add table
Reference in a new issue