2012-02-18 19:47:04 +00:00
|
|
|
cdist-type__mysql_server(7)
|
|
|
|
===========================
|
2012-02-18 19:40:03 +00:00
|
|
|
Benedikt Koeppel <code@benediktkoeppel.ch>
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__mysql_server - Manage a MySQL server
|
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2012-02-21 05:49:47 +00:00
|
|
|
This cdist type allows you to install a MySQL database server. The
|
|
|
|
__mysql_server type also takes care of a few basic security tweaks that are
|
|
|
|
normally done by running the mysql_secure_installation script that is provided
|
|
|
|
with MySQL.
|
2012-02-18 19:40:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
password::
|
|
|
|
The root password to set.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2012-02-21 05:49:47 +00:00
|
|
|
no_my_cnf::
|
|
|
|
The /root/.my.cnf file is used to temporary store the root password when doing
|
|
|
|
the mysql_secure_installation. If you want to have your own .my.cnf file, then
|
|
|
|
specify --no_my_cnf "true".
|
|
|
|
Cdist will then place your original /root/.my.cnf back once cdist has run.
|
2012-02-18 19:40:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
2012-02-21 05:49:47 +00:00
|
|
|
# to install a MySQL server
|
|
|
|
__mysql_server
|
|
|
|
|
|
|
|
# to install a MySQL server, remove remote access, remove test databases
|
|
|
|
# similar to mysql_secure_installation, specify the root password
|
2012-02-18 22:09:26 +00:00
|
|
|
__mysql_server --password "Uu9jooKe"
|
2012-02-21 05:49:47 +00:00
|
|
|
# this will also write a /root/.my.cnf file
|
|
|
|
|
|
|
|
# if you don't want cdist to write a /root/.my.cnf file permanently, specify
|
|
|
|
# the --no_my_cnf option
|
|
|
|
__mysql_server --password "Uu9jooKe" --no_my_cnf
|
2012-02-18 19:40:03 +00:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
- cdist-type(7)
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2012 Benedikt Koeppel. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|