Skip to content

Latest commit

 

History

History
173 lines (100 loc) · 4.14 KB

REFERENCE.md

File metadata and controls

173 lines (100 loc) · 4.14 KB

Reference

Table of Contents

Classes

Classes

profile_mysql_server

Manage a MySQL/MariaDB server configuration.

Examples

include profile_mysql_server

Parameters

The following parameters are available in the profile_mysql_server class:

create_mysql_home

Data type: Boolean

Should the mysql_home be created?

NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.

dbs

Data type: Hash

Raw data to define mysql::db resources.

manage_yumrepo

Data type: Boolean

Should the mysql Yumrepo be managed? Must also provide Hiera data for the $yumrepo param.

mysql_gid

Data type: Optional[Integer]

Optionally define the GID for the mysql group (and PGID for the mysql user). Must also provide $mysql_uid. If both $mysql_gid and $mysql_uid are provided, the mysql user and group will be created as will various directories.

mysql_groupname

Data type: String

The name of the mysql group.

NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.

mysql_home

Data type: String

The home dir of the mysql user.

NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.

mysql_logdir

Data type: String

Location of MySQL log files.

NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.

mysql_rundir

Data type: String

Location of run directory (generally a sub-directory of /var/run/).

NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.

mysql_uid

Data type: Optional[Integer]

Optionally define the UID of the mysql user. Must also provide $mysql_gid. If both $mysql_gid and $mysql_uid are provided, the mysql user and group will be created as will various directories.

mysql_username

Data type: String

Username of the mysql user.

NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.

other_dependencies

Data type: Array

Other depencies to handle prior to other MySQL setup, specified as resources, e.g.:

  • "Mount['/var/lib/mysql']"
yumrepo

Data type: Optional[Hash]

Raw params containing a yumrepo resource (or multiple yumrepo resources) from which to install MySQL/MariaDB.

profile_mysql_server::backup

Add a backup job to backup databases via profile_backup.

Examples

include profile_mysql_server::backup

Parameters

The following parameters are available in the profile_mysql_server::backup class:

backup_cmd

Data type: String

Command used to backup the database. Output to STDOUT. Generally mysqldump.

backup_cmd_options

Data type: String

Options to add to the command to dump the database An example would be --single-transaction.

databases

Data type: Array[String]

A list of databases to backup. Default is back up all databases