profile_mysql_server
: Manage a MySQL/MariaDB server configuration.profile_mysql_server::backup
: Add a backup job to backup databases via profile_backup.
Manage a MySQL/MariaDB server configuration.
include profile_mysql_server
The following parameters are available in the profile_mysql_server
class:
create_mysql_home
dbs
manage_yumrepo
mysql_gid
mysql_groupname
mysql_home
mysql_logdir
mysql_rundir
mysql_uid
mysql_username
other_dependencies
yumrepo
Data type: Boolean
Should the mysql_home be created?
NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.
Data type: Hash
Raw data to define mysql::db resources.
Data type: Boolean
Should the mysql Yumrepo be managed? Must also provide Hiera data for the $yumrepo param.
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.
Data type: String
The name of the mysql group.
NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.
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.
Data type: String
Location of MySQL log files.
NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.
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.
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.
Data type: String
Username of the mysql user.
NOTE: $mysql_gid and $mysql_uid must also be specified for this to do anything.
Data type: Array
Other depencies to handle prior to other MySQL setup, specified as resources, e.g.:
- "Mount['/var/lib/mysql']"
Data type: Optional[Hash]
Raw params containing a yumrepo resource (or multiple yumrepo resources) from which to install MySQL/MariaDB.
Add a backup job to backup databases via profile_backup.
include profile_mysql_server::backup
The following parameters are available in the profile_mysql_server::backup
class:
Data type: String
Command used to backup the database. Output to STDOUT. Generally mysqldump.
Data type: String
Options to add to the command to dump the database An example would be --single-transaction.
Data type: Array[String]
A list of databases to backup. Default is back up all databases