11# Reference
22<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
33
4- ## Classes
4+ ## Table of Contents
5+
6+ ** Classes**
57
6- ### Public Classes
8+ _ Public Classes _
79
810* [ ` mysql::bindings ` ] ( #mysqlbindings ) : Parent class for MySQL bindings.
911* [ ` mysql::client ` ] ( #mysqlclient ) : Installs and configures the MySQL client.
1214* [ ` mysql::server::monitor ` ] ( #mysqlservermonitor ) : This is a helper class to add a monitoring user to the database
1315* [ ` mysql::server::mysqltuner ` ] ( #mysqlservermysqltuner ) : Manage the MySQLTuner package.
1416
15- ### Private Classes
17+ _ Private Classes _
1618
1719* ` mysql::backup::mysqlbackup ` : Manage the mysqlbackup client.
1820* ` mysql::backup::mysqldump ` : "Provider" for mysqldump
3537* ` mysql::server::root_password ` : Private class for managing the root password
3638* ` mysql::server::service ` : Private class for managing the MySQL service
3739
38- ## Defined types
40+ ** Defined types**
3941
4042* [ ` mysql::db ` ] ( #mysqldb ) : Create and configure a MySQL database.
4143
42- ## Resource types
44+ ** Resource types**
4345
44- ### Public Resource types
46+ _ Public Resource types _
4547
4648* [ ` mysql_plugin ` ] ( #mysql_plugin ) : Manage MySQL plugins.
4749
48- ### Private Resource types
50+ _ Private Resource types _
4951
5052* ` mysql_database ` : Manage a MySQL database.
5153* ` mysql_datadir ` : Manage MySQL datadirs with mysql_install_db OR mysqld (5.7.6 and above).
5254* ` mysql_grant ` : Manage a MySQL user's rights.
5355* ` mysql_user ` : Manage a MySQL user. This includes management of users password as well as privileges.
5456
55- ## Functions
57+ ** Functions**
5658
57- * [ ` mysql_deepmerge ` ] ( #mysql_deepmerge ) : Recursively merges two or more hashes together and returns the resulting hash.
58- * [ ` mysql_dirname ` ] ( #mysql_dirname ) : Returns the dirname of a path
59+ * [ ` mysql::password ` ] ( #mysqlpassword ) : Hash a string as mysql's "PASSWORD()" function would do it
60+ * [ ` mysql::strip_hash ` ] ( #mysqlstrip_hash ) : When given a hash this function strips out all blank entries.
61+ * [ ` mysql_password ` ] ( #mysql_password ) : A wrapper for the 4.x function 'mysql::password' to bridge the gap between
62+ it and the 3.x function 'mysql_password'.
5963* [ ` mysql_password ` ] ( #mysql_password ) : Hash a string as mysql's "PASSWORD()" function would do it
64+ * [ ` mysql_strip_hash ` ] ( #mysql_strip_hash ) : A wrapper for the 4.x function 'mysql::strip_hash' to bridge the gap between
65+ it and the 3.x function 'mysql_strip_hash'.
6066* [ ` mysql_strip_hash ` ] ( #mysql_strip_hash ) : TEMPORARY FUNCTION: EXPIRES 2014-03-10 When given a hash this function strips out all blank entries.
6167
62- ## Tasks
68+ ** Tasks**
6369
6470* [ ` export ` ] ( #export ) : Allows you to backup your database to local file.
6571* [ ` sql ` ] ( #sql ) : Allows you to execute arbitary SQL
@@ -616,6 +622,22 @@ This parameter no longer does anything. It exists only for backwards compatibili
616622
617623Default value: ` undef `
618624
625+ ##### ` create_root_login_file `
626+
627+ Data type: ` Any `
628+
629+
630+
631+ Default value: $mysql::params::create_root_login_file
632+
633+ ##### ` login_file `
634+
635+ Data type: ` Any `
636+
637+
638+
639+ Default value: $mysql::params::login_file
640+
619641### mysql::server::backup
620642
621643Create and manage a MySQL backup.
@@ -811,7 +833,7 @@ Default value: '1M'
811833
812834Data type: ` Any `
813835
814- Specifies an array of optional arguments which should be passed through to the backup tool. (Currently only supported by the xtrabackup provider .)
836+ Specifies an array of optional arguments which should be passed through to the backup tool. (Supported by the xtrabackup and mysqldump providers .)
815837
816838Default value: [ ]
817839
@@ -879,13 +901,13 @@ Source path for the mysqltuner package.
879901
880902Default value: ` undef `
881903
882- ##### ` environment `
904+ ##### ` tuner_location `
883905
884906Data type: ` Any `
885907
886- Environment variables active during download, e.g. to download via proxies: environment => 'https_proxy= http://proxy.example.com:80 '
908+ Destination for the mysqltuner package.
887909
888- Default value: ` undef `
910+ Default value: '/usr/local/bin/mysqltuner'
889911
890912## Defined types
891913
@@ -922,6 +944,14 @@ Data type: `Any`
922944
923945The password for $user for the database you're creating.
924946
947+ ##### ` tls_options `
948+
949+ Data type: ` Any `
950+
951+ The tls_options for $user for the database you're creating.
952+
953+ Default value: ` undef `
954+
925955##### ` dbname `
926956
927957Data type: ` Any `
@@ -962,6 +992,14 @@ The privileges to be granted for user@host on the database.
962992
963993Default value: 'ALL'
964994
995+ ##### ` grant_options `
996+
997+ Data type: ` Any `
998+
999+ The grant_options for the grant for user@host on the database.
1000+
1001+ Default value: ` undef `
1002+
9651003##### ` sql `
9661004
9671005Data type: ` Optional[Variant[Array, Hash, String]] `
@@ -1002,6 +1040,14 @@ Command to read the sqlfile for importing the database. Useful for compressed sq
10021040
10031041Default value: 'cat'
10041042
1043+ ##### ` mysql_exec_path `
1044+
1045+ Data type: ` Any `
1046+
1047+
1048+
1049+ Default value: $mysql::params::exec_path
1050+
10051051## Resource types
10061052
10071053### mysql_plugin
@@ -1048,39 +1094,62 @@ The name of the MySQL plugin to manage.
10481094
10491095## Functions
10501096
1051- ### mysql_deepmerge
1097+ ### mysql::password
10521098
1053- Type: Ruby 3 .x API
1099+ Type: Ruby 4 .x API
10541100
1055- - When there is a duplicate key that is a hash, they are recursively merged.
1056- - When there is a duplicate key that is not a hash, the key in the rightmost hash will "win."
1057- - When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate),
1058- the rightmost style will win.
1101+ Hash a string as mysql's "PASSWORD()" function would do it
10591102
1060- #### ` mysql_deepmerge( )`
1103+ #### ` mysql::password(String $password )`
10611104
1062- - When there is a duplicate key that is a hash, they are recursively merged.
1063- - When there is a duplicate key that is not a hash, the key in the rightmost hash will "win."
1064- - When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate),
1065- the rightmost style will win.
1105+ The mysql::password function.
10661106
1067- Returns: ` Hash `
1107+ Returns: ` String ` hash
1108+ The mysql password hash from the clear text password.
10681109
1069- ### mysql_dirname
1110+ ##### ` password `
10701111
1071- Type: Ruby 3.x API
1112+ Data type: ` String `
1113+
1114+ Plain text password.
1115+
1116+ ### mysql::strip_hash
1117+
1118+ Type: Ruby 4.x API
1119+
1120+ When given a hash this function strips out all blank entries.
1121+
1122+ #### ` mysql::strip_hash(Hash $hash) `
1123+
1124+ The mysql::strip_hash function.
1125+
1126+ Returns: ` Hash ` hash
1127+ The given hash with all blank entries removed
1128+
1129+ ##### ` hash `
1130+
1131+ Data type: ` Hash `
1132+
1133+ Hash to be stripped
10721134
1073- Returns the dirname of a path
1135+ ### mysql_password
1136+
1137+ Type: Ruby 4.x API
10741138
1075- #### ` mysql_dirname(String $path) `
1139+ A wrapper for the 4.x function 'mysql::password' to bridge the gap between
1140+ it and the 3.x function 'mysql_password'.
10761141
1077- Returns: ` String ` Directory name of path.
1142+ #### ` mysql_password( String $password) `
10781143
1079- ##### ` path `
1144+ The mysql_password function.
1145+
1146+ Returns: ` String ` The mysql password hash from the 4.x function mysql::password.
1147+
1148+ ##### ` password `
10801149
10811150Data type: ` String `
10821151
1083- Path to find the dirname for .
1152+ Plain text password .
10841153
10851154### mysql_password
10861155
@@ -1090,6 +1159,8 @@ Hash a string as mysql's "PASSWORD()" function would do it
10901159
10911160#### ` mysql_password(String $password) `
10921161
1162+ The mysql_password function.
1163+
10931164Returns: ` String ` the mysql password hash from the clear text password.
10941165
10951166##### ` password `
@@ -1100,6 +1171,26 @@ Plain text password.
11001171
11011172### mysql_strip_hash
11021173
1174+ Type: Ruby 4.x API
1175+
1176+ A wrapper for the 4.x function 'mysql::strip_hash' to bridge the gap between
1177+ it and the 3.x function 'mysql_strip_hash'.
1178+
1179+ #### ` mysql_strip_hash(Hash $hash) `
1180+
1181+ The mysql_strip_hash function.
1182+
1183+ Returns: ` Hash ` hash
1184+ The given hash with all blank entries removed
1185+
1186+ ##### ` hash `
1187+
1188+ Data type: ` Hash `
1189+
1190+ Hash to be stripped
1191+
1192+ ### mysql_strip_hash
1193+
11031194Type: Ruby 3.x API
11041195
11051196TEMPORARY FUNCTION: EXPIRES 2014-03-10
0 commit comments