Skip to content

Commit

Permalink
__mysql_database: add manual
Browse files Browse the repository at this point in the history
  • Loading branch information
4nd3r committed Jan 3, 2020
1 parent 7b8e919 commit 8ad5016
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions type/__mysql_database/man.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
cdist-type__mysql_database(7)
=============================

NAME
----
cdist-type__mysql_database - Manage a MySQL database


DESCRIPTION
-----------

Create MySQL database and optionally user with all privileges.


OPTIONAL PARAMETERS
-------------------
name
Name of database. Defaults to object id.

user
Create user and give all privileges to database.

password
Password for user.

state
Defaults to present.
If absent and user is also set, both will be removed (with privileges).


EXAMPLES
--------

.. code-block:: sh
# just create database
__mysql_database foo
# create database with respective user with all privileges to database
__mysql_database bar \
--user name \
--password secret
AUTHORS
-------
Ander Punnar <ander-at-kvlt-dot-ee>


COPYING
-------
Copyright \(C) 2020 Ander Punnar. You can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

0 comments on commit 8ad5016

Please sign in to comment.