Skip to content
Snippets Groups Projects
Commit 88f80b06 authored by Clayton Kramer's avatar Clayton Kramer
Browse files

Create and manage MySQL databases on the server

parent 101f7ffb
Branches
Tags
No related merge requests found
......@@ -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.
\ No newline at end of file
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment