annotate modules/mysql/REFERENCE.md @ 358:6c29af16b177

Fix PHP-as-html file serving
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Oct 2020 19:41:25 +0100
parents 48d3a1948e4d
children 668df4711671
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
244
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 # Reference
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 <!-- DO NOT EDIT: This document was generated by Puppet Strings -->
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 ## Table of Contents
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 **Classes**
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 _Public Classes_
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 * [`mysql::bindings`](#mysqlbindings): Parent class for MySQL bindings.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 * [`mysql::client`](#mysqlclient): Installs and configures the MySQL client.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 * [`mysql::server`](#mysqlserver): Installs and configures the MySQL server.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 * [`mysql::server::backup`](#mysqlserverbackup): Create and manage a MySQL backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 * [`mysql::server::monitor`](#mysqlservermonitor): This is a helper class to add a monitoring user to the database
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 * [`mysql::server::mysqltuner`](#mysqlservermysqltuner): Manage the MySQLTuner package.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 _Private Classes_
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 * `mysql::backup::mysqlbackup`: Manage the mysqlbackup client.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 * `mysql::backup::mysqldump`: "Provider" for mysqldump
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 * `mysql::backup::xtrabackup`: "Provider" for Percona XtraBackup/MariaBackup
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 * `mysql::bindings::client_dev`: Private class for installing client development bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 * `mysql::bindings::daemon_dev`: Private class for installing daemon development bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 * `mysql::bindings::java`: Private class for installing java language bindings.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 * `mysql::bindings::perl`: Private class for installing perl language bindings.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 * `mysql::bindings::php`: Private class for installing php language bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 * `mysql::bindings::python`: Private class for installing python language bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 * `mysql::bindings::ruby`: Private class for installing ruby language bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 * `mysql::client::install`: Private class for MySQL client install.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 * `mysql::params`: Params class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 * `mysql::server::account_security`: Private class for ensuring localhost accounts do not exist
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 * `mysql::server::binarylog`: Binary log configuration requires the mysql user to be present. This must be done after package install
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 * `mysql::server::config`: Private class for MySQL server configuration.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 * `mysql::server::install`: Private class for managing MySQL package.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 * `mysql::server::installdb`: Builds initial databases on installation.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 * `mysql::server::providers`: Convenience class to call each of the three providers with the corresponding hashes provided in mysql::server.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 * `mysql::server::root_password`: Private class for managing the root password
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 * `mysql::server::service`: Private class for managing the MySQL service
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 **Defined types**
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 * [`mysql::db`](#mysqldb): Create and configure a MySQL database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 **Resource types**
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 _Public Resource types_
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 * [`mysql_grant`](#mysql_grant): @summary Manage a MySQL user's rights.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 * [`mysql_plugin`](#mysql_plugin): Manage MySQL plugins.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 * [`mysql_user`](#mysql_user): @summary Manage a MySQL user. This includes management of users password as well as privileges.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 _Private Resource types_
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 * `mysql_database`: Manage a MySQL database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 * `mysql_datadir`: Manage MySQL datadirs with mysql_install_db OR mysqld (5.7.6 and above).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 **Functions**
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 * [`mysql::normalise_and_deepmerge`](#mysqlnormalise_and_deepmerge): Recursively merges two or more hashes together, normalises keys with differing use of dashesh and underscores,
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 then returns the resulting hash.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 * [`mysql::password`](#mysqlpassword): Hash a string as mysql's "PASSWORD()" function would do it
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 * [`mysql::strip_hash`](#mysqlstrip_hash): When given a hash this function strips out all blank entries.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 * [`mysql_password`](#mysql_password): Hash a string as mysql's "PASSWORD()" function would do it
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 **Tasks**
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 * [`export`](#export): Allows you to backup your database to local file.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 * [`sql`](#sql): Allows you to execute arbitary SQL
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 ## Classes
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 ### mysql::bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 Parent class for MySQL bindings.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 ##### Install Ruby language bindings
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 class { 'mysql::bindings':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 ruby_enable => true,
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 ruby_package_ensure => 'present',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 ruby_package_name => 'ruby-mysql-2.7.1-1mdv2007.0.sparc.rpm',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 ruby_package_provider => 'rpm',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 The following parameters are available in the `mysql::bindings` class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 ##### `install_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 Passes `install_options` array to managed package resources. You must pass the [appropriate options](https://docs.puppetlabs.com/references/latest/type.html#package-attribute-install_options) for the package manager(s).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 ##### `java_enable`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105 Specifies whether `::mysql::bindings::java` should be included. Valid values are `true`, `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 ##### `perl_enable`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 Specifies whether `mysql::bindings::perl` should be included. Valid values are `true`, `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 ##### `php_enable`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 Specifies whether `mysql::bindings::php` should be included. Valid values are `true`, `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 ##### `python_enable`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 Specifies whether `mysql::bindings::python` should be included. Valid values are `true`, `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 ##### `ruby_enable`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 Specifies whether `mysql::bindings::ruby` should be included. Valid values are `true`, `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 ##### `client_dev`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 Specifies whether `::mysql::bindings::client_dev` should be included. Valid values are `true`', `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 ##### `daemon_dev`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 Specifies whether `::mysql::bindings::daemon_dev` should be included. Valid values are `true`, `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 ##### `java_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `java_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 Default value: $mysql::params::java_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 ##### `java_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 The name of the Java package to install. Only applies if `java_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 Default value: $mysql::params::java_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 ##### `java_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 The provider to use to install the Java package. Only applies if `java_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 Default value: $mysql::params::java_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
181 ##### `perl_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
182
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
183 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
184
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
185 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `perl_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
186
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
187 Default value: $mysql::params::perl_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
188
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
189 ##### `perl_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
190
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
191 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
192
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
193 The name of the Perl package to install. Only applies if `perl_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
194
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
195 Default value: $mysql::params::perl_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
196
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
197 ##### `perl_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
198
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
199 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
200
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
201 The provider to use to install the Perl package. Only applies if `perl_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
203 Default value: $mysql::params::perl_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205 ##### `php_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
208
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `php_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
211 Default value: $mysql::params::php_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
212
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
213 ##### `php_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
214
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
215 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
216
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
217 The name of the PHP package to install. Only applies if `php_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
218
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 Default value: $mysql::params::php_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 ##### `php_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 The provider to use to install the PHP package. Only applies if `php_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
226
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
227 Default value: $mysql::params::php_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
228
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
229 ##### `python_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
230
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
231 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
232
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
233 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `python_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
234
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
235 Default value: $mysql::params::python_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
236
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
237 ##### `python_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
238
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
239 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
240
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
241 The name of the Python package to install. Only applies if `python_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
242
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
243 Default value: $mysql::params::python_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
244
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
245 ##### `python_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
246
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
247 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
248
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
249 The provider to use to install the Python package. Only applies if `python_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
250
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
251 Default value: $mysql::params::python_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
252
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
253 ##### `ruby_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
254
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
255 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
256
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
257 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `ruby_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
258
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
259 Default value: $mysql::params::ruby_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
260
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
261 ##### `ruby_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
262
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
263 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
264
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
265 The name of the Ruby package to install. Only applies if `ruby_enable => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
266
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
267 Default value: $mysql::params::ruby_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
268
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
269 ##### `ruby_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
270
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
271 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
272
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
273 What provider should be used to install the package.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
274
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
275 Default value: $mysql::params::ruby_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
276
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
277 ##### `client_dev_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
278
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
279 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
280
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
281 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `client_dev => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
282
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
283 Default value: $mysql::params::client_dev_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
284
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
285 ##### `client_dev_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
286
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
287 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
288
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
289 The name of the client_dev package to install. Only applies if `client_dev => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
290
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
291 Default value: $mysql::params::client_dev_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
292
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
293 ##### `client_dev_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
294
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
295 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
296
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
297 The provider to use to install the client_dev package. Only applies if `client_dev => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
298
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
299 Default value: $mysql::params::client_dev_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
300
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
301 ##### `daemon_dev_package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
302
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
303 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
304
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
305 Whether the package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Only applies if `daemon_dev => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
306
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
307 Default value: $mysql::params::daemon_dev_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
308
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
309 ##### `daemon_dev_package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
310
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
311 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
312
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
313 The name of the daemon_dev package to install. Only applies if `daemon_dev => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
314
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
315 Default value: $mysql::params::daemon_dev_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
316
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
317 ##### `daemon_dev_package_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
318
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
319 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
320
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
321 The provider to use to install the daemon_dev package. Only applies if `daemon_dev => true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
322
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
323 Default value: $mysql::params::daemon_dev_package_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
324
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
325 ### mysql::client
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
326
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
327 Installs and configures the MySQL client.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
328
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
329 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
330
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
331 ##### Install the MySQL client
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
332
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
333 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
334 class {'::mysql::client':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
335 package_name => 'mysql-client',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
336 package_ensure => 'present',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
337 bindings_enable => true,
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
338 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
339 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
340
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
341 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
342
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
343 The following parameters are available in the `mysql::client` class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
344
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
345 ##### `bindings_enable`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
346
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
347 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
348
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
349 Whether to automatically install all bindings. Valid values are `true`, `false`. Default to `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
350
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
351 Default value: $mysql::params::bindings_enable
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
352
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
353 ##### `install_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
354
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
355 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
356
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
357 Array of install options for managed package resources. You must pass the appropriate options for the package manager.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
358
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
359 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
360
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
361 ##### `package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
362
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
363 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
364
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
365 Whether the MySQL package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
366
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
367 Default value: $mysql::params::client_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
368
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
369 ##### `package_manage`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
370
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
371 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
372
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
373 Whether to manage the MySQL client package. Defaults to `true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
374
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
375 Default value: $mysql::params::client_package_manage
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
376
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
377 ##### `package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
378
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
379 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
380
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
381 The name of the MySQL client package to install.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
382
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
383 Default value: $mysql::params::client_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
384
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
385 ### mysql::server
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
386
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
387 Installs and configures the MySQL server.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
388
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
389 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
390
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
391 ##### Install MySQL Server
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
392
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
393 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
394 class { '::mysql::server':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
395 package_name => 'mysql-server',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
396 package_ensure => '5.7.1+mysql~trusty',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
397 root_password => 'strongpassword',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
398 remove_default_accounts => true,
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
399 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
400 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
401
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
402 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
403
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
404 The following parameters are available in the `mysql::server` class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
405
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
406 ##### `config_file`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
407
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
408 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
409
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
410 The location, as a path, of the MySQL configuration file.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
411
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
412 Default value: $mysql::params::config_file
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
413
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
414 ##### `includedir`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
415
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
416 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
417
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
418 The location, as a path, of !includedir for custom configuration overrides.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
419
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
420 Default value: $mysql::params::includedir
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
421
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
422 ##### `install_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
423
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
424 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
425
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
426 Passes [install_options](https://docs.puppetlabs.com/references/latest/type.html#package-attribute-install_options) array to managed package resources. You must pass the appropriate options for the specified package manager
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
427
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
428 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
429
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
430 ##### `install_secret_file`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
431
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
432 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
433
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
434 Path to secret file containing temporary root password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
435
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
436 Default value: $mysql::params::install_secret_file
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
437
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
438 ##### `manage_config_file`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
439
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
440 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
441
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
442 Whether the MySQL configuration file should be managed. Valid values are `true`, `false`. Defaults to `true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
443
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
444 Default value: $mysql::params::manage_config_file
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
445
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
446 ##### `override_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
447
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
448 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
449
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
450 Specifies override options to pass into MySQL. Structured like a hash in the my.cnf file: See above for usage details.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
451
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
452 Default value: {}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
453
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
454 ##### `package_ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
455
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
456 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
457
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
458 Whether the package exists or should be a specific version. Valid values are 'present', 'absent', or 'x.y.z'. Defaults to 'present'.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
459
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
460 Default value: $mysql::params::server_package_ensure
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
461
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
462 ##### `package_manage`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
463
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
464 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
465
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
466 Whether to manage the MySQL server package. Defaults to `true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
467
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
468 Default value: $mysql::params::server_package_manage
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
469
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
470 ##### `package_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
471
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
472 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
473
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
474 The name of the MySQL server package to install.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
475
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
476 Default value: $mysql::params::server_package_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
477
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
478 ##### `purge_conf_dir`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
479
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
480 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
481
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
482 Whether the `includedir` directory should be purged. Valid values are `true`, `false`. Defaults to `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
483
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
484 Default value: $mysql::params::purge_conf_dir
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
485
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
486 ##### `remove_default_accounts`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
487
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
488 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
489
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
490 Specifies whether to automatically include `mysql::server::account_security`. Valid values are `true`, `false`. Defaults to `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
491
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
492 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
493
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
494 ##### `restart`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
495
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
496 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
497
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
498 Whether the service should be restarted when things change. Valid values are `true`, `false`. Defaults to `false`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
499
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
500 Default value: $mysql::params::restart
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
501
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
502 ##### `root_group`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
503
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
504 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
505
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
506 The name of the group used for root. Can be a group name or a group ID. See more about the [group](https://docs.puppetlabs.com/references/latest/type.html#file-attribute-group).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
507
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
508 Default value: $mysql::params::root_group
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
509
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
510 ##### `mysql_group`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
511
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
512 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
513
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
514 The name of the group of the MySQL daemon user. Can be a group name or a group ID. See more about the [group](https://docs.puppetlabs.com/references/latest/type.html#file-attribute-group).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
515
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
516 Default value: $mysql::params::mysql_group
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
517
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
518 ##### `root_password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
519
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
520 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
521
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
522 The MySQL root password. Puppet attempts to set the root password and update `/root/.my.cnf` with it. This is required if `create_root_user` or `create_root_my_cnf` are true. If `root_password` is 'UNSET', then `create_root_user` and `create_root_my_cnf` are assumed to be false --- that is, the MySQL root user and `/root/.my.cnf` are not created. Password changes are supported; however, the old password must be set in `/root/.my.cnf`. Effectively, Puppet uses the old password, configured in `/root/my.cnf`, to set the new password in MySQL, and then updates `/root/.my.cnf` with the new password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
523
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
524 Default value: $mysql::params::root_password
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
525
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
526 ##### `service_enabled`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
527
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
528 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
529
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
530 Specifies whether the service should be enabled. Valid values are `true`, `false`. Defaults to `true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
531
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
532 Default value: $mysql::params::server_service_enabled
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
533
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
534 ##### `service_manage`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
535
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
536 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
537
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
538 Specifies whether the service should be managed. Valid values are `true`, `false`. Defaults to `true`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
539
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
540 Default value: $mysql::params::server_service_manage
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
541
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
542 ##### `service_name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
543
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
544 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
545
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
546 The name of the MySQL server service. Defaults are OS dependent, defined in 'params.pp'.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
547
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
548 Default value: $mysql::params::server_service_name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
549
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
550 ##### `service_provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
551
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
552 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
553
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
554 The provider to use to manage the service. For Ubuntu, defaults to 'upstart'; otherwise, default is undefined.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
555
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
556 Default value: $mysql::params::server_service_provider
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
557
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
558 ##### `create_root_user`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
559
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
560 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
561
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
562 Whether root user should be created. Valid values are `true`, `false`. Defaults to `true`. This is useful for a cluster setup with Galera. The root user has to be created only once. You can set this parameter true on one node and set it to false on the remaining nodes.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
563
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
564 Default value: $mysql::params::create_root_user
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
565
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
566 ##### `create_root_my_cnf`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
567
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
568 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
569
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
570 Whether to create `/root/.my.cnf`. Valid values are `true`, `false`. Defaults to `true`. `create_root_my_cnf` allows creation of `/root/.my.cnf` independently of `create_root_user`. You can use this for a cluster setup with Galera where you want `/root/.my.cnf` to exist on all nodes.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
571
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
572 Default value: $mysql::params::create_root_my_cnf
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
573
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
574 ##### `users`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
575
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
576 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
577
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
578 Optional hash of users to create, which are passed to [mysql_user](#mysql_user).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
579
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
580 Default value: {}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
581
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
582 ##### `grants`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
583
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
584 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
585
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
586 Optional hash of grants, which are passed to [mysql_grant](#mysql_grant).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
587
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
588 Default value: {}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
589
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
590 ##### `databases`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
591
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
592 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
593
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
594 Optional hash of databases to create, which are passed to [mysql_database](#mysql_database).
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
595
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
596 Default value: {}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
597
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
598 ##### `enabled`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
599
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
600 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
601
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
602 _Deprecated_
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
603
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
604 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
605
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
606 ##### `manage_service`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
607
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
608 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
609
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
610 _Deprecated_
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
611
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
612 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
613
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
614 ##### `old_root_password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
615
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
616 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
617
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
618 This parameter no longer does anything. It exists only for backwards compatibility. See the `root_password` parameter above for details on changing the root password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
619
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
620 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
621
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
622 ##### `create_root_login_file`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
623
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
624 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
625
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
626
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
627
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
628 Default value: $mysql::params::create_root_login_file
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
629
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
630 ##### `login_file`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
631
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
632 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
633
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
634
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
635
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
636 Default value: $mysql::params::login_file
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
637
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
638 ### mysql::server::backup
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
639
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
640 Create and manage a MySQL backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
641
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
642 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
643
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
644 ##### Create a basic MySQL backup:
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
645
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
646 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
647 class { 'mysql::server':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
648 root_password => 'password'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
649 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
650 class { 'mysql::server::backup':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
651 backupuser => 'myuser',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
652 backuppassword => 'mypassword',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
653 backupdir => '/tmp/backups',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
654 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
655 class { 'mysql::server::backup':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
656 backupmethod => 'mariabackup',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
657 provider => 'xtrabackup',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
658 backupdir => '/tmp/backups',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
659 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
660 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
661
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
662 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
663
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
664 The following parameters are available in the `mysql::server::backup` class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
665
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
666 ##### `backupuser`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
667
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
668 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
669
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
670 MySQL user with backup administrator privileges.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
671
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
672 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
673
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
674 ##### `backuppassword`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
675
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
676 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
677
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
678 Password for `backupuser`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
679
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
680 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
681
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
682 ##### `backupdir`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
683
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
684 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
685
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
686 Directory to store backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
687
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
688 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
689
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
690 ##### `backupdirmode`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
691
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
692 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
693
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
694 Permissions applied to the backup directory. This parameter is passed directly to the file resource.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
695
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
696 Default value: '0700'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
697
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
698 ##### `backupdirowner`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
699
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
700 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
701
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
702 Owner for the backup directory. This parameter is passed directly to the file resource.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
703
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
704 Default value: 'root'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
705
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
706 ##### `backupdirgroup`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
707
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
708 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
709
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
710 Group owner for the backup directory. This parameter is passed directly to the file resource.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
711
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
712 Default value: $mysql::params::root_group
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
713
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
714 ##### `backupcompress`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
715
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
716 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
717
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
718 Whether or not to compress the backup (when using the mysqldump provider)
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
719
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
720 Default value: `true`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
721
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
722 ##### `backupmethod`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
723
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
724 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
725
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
726 The execution binary for backing up. ex. mysqldump, xtrabackup, mariabackup
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
727
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
728 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
729
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
730 ##### `backup_success_file_path`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
731
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
732 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
733
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
734 Specify a path where upon successfull backup a file should be created for checking purposes.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
735
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
736 Default value: '/tmp/mysqlbackup_success'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
737
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
738 ##### `backuprotate`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
739
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
740 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
741
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
742 Backup rotation interval in 24 hour periods.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
743
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
744 Default value: 30
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
745
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
746 ##### `ignore_events`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
747
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
748 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
749
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
750 Ignore the mysql.event table.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
751
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
752 Default value: `true`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
753
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
754 ##### `delete_before_dump`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
755
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
756 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
757
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
758 Whether to delete old .sql files before backing up. Setting to true deletes old files before backing up, while setting to false deletes them after backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
759
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
760 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
761
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
762 ##### `backupdatabases`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
763
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
764 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
765
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
766 Databases to backup (required if using xtrabackup provider). By default `[]` will back up all databases.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
767
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
768 Default value: []
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
769
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
770 ##### `file_per_database`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
771
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
772 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
773
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
774 Use file per database mode creating one file per database backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
775
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
776 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
777
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
778 ##### `include_routines`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
779
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
780 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
781
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
782 Dump stored routines (procedures and functions) from dumped databases when doing a `file_per_database` backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
783
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
784 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
785
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
786 ##### `include_triggers`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
787
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
788 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
789
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
790 Dump triggers for each dumped table when doing a `file_per_database` backup.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
791
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
792 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
793
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
794 ##### `ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
795
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
796 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
797
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
798
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
799
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
800 Default value: 'present'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
801
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
802 ##### `time`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
803
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
804 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
805
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
806 An array of two elements to set the backup time. Allows ['23', '5'] (i.e., 23:05) or ['3', '45'] (i.e., 03:45) for HH:MM times.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
807
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
808 Default value: ['23', '5']
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
809
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
810 ##### `prescript`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
811
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
812 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
813
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
814 A script that is executed before the backup begins.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
815
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
816 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
817
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
818 ##### `postscript`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
819
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
820 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
821
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
822 A script that is executed when the backup is finished. This could be used to sync the backup to a central store. This script can be either a single line that is directly executed or a number of lines supplied as an array. It could also be one or more externally managed (executable) files.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
823
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
824 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
825
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
826 ##### `execpath`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
827
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
828 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
829
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
830 Allows you to set a custom PATH should your MySQL installation be non-standard places. Defaults to `/usr/bin:/usr/sbin:/bin:/sbin`.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
831
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
832 Default value: '/usr/bin:/usr/sbin:/bin:/sbin'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
833
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
834 ##### `provider`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
835
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
836 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
837
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
838 Sets the server backup implementation. Valid values are:
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
839
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
840 Default value: 'mysqldump'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
841
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
842 ##### `maxallowedpacket`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
843
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
844 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
845
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
846 Defines the maximum SQL statement size for the backup dump script. The default value is 1MB, as this is the default MySQL Server value.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
847
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
848 Default value: '1M'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
849
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
850 ##### `optional_args`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
851
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
852 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
853
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
854 Specifies an array of optional arguments which should be passed through to the backup tool. (Supported by the xtrabackup and mysqldump providers.)
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
855
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
856 Default value: []
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
857
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
858 ### mysql::server::monitor
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
859
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
860 This is a helper class to add a monitoring user to the database
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
861
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
862 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
863
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
864 The following parameters are available in the `mysql::server::monitor` class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
865
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
866 ##### `mysql_monitor_username`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
867
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
868 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
869
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
870 The username to create for MySQL monitoring.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
871
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
872 Default value: ''
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
873
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
874 ##### `mysql_monitor_password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
875
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
876 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
877
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
878 The password to create for MySQL monitoring.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
879
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
880 Default value: ''
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
881
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
882 ##### `mysql_monitor_hostname`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
883
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
884 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
885
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
886 The hostname from which the monitoring user requests are allowed access.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
887
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
888 Default value: ''
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
889
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
890 ### mysql::server::mysqltuner
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
891
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
892 Manage the MySQLTuner package.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
893
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
894 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
895
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
896 The following parameters are available in the `mysql::server::mysqltuner` class.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
897
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
898 ##### `ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
899
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
900 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
901
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
902 Ensures that the resource exists. Valid values are 'present', 'absent'. Defaults to 'present'.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
903
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
904 Default value: 'present'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
905
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
906 ##### `version`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
907
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
908 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
909
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
910 The version to install from the major/MySQLTuner-perl github repository. Must be a valid tag. Defaults to 'v1.3.0'.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
911
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
912 Default value: 'v1.3.0'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
913
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
914 ##### `source`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
915
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
916 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
917
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
918 Source path for the mysqltuner package.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
919
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
920 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
921
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
922 ##### `tuner_location`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
923
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
924 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
925
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
926 Destination for the mysqltuner package.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
927
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
928 Default value: '/usr/local/bin/mysqltuner'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
929
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
930 ## Defined types
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
931
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
932 ### mysql::db
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
933
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
934 Create and configure a MySQL database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
935
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
936 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
937
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
938 ##### Create a database
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
939
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
940 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
941 mysql::db { 'mydb':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
942 user => 'myuser',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
943 password => 'mypass',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
944 host => 'localhost',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
945 grant => ['SELECT', 'UPDATE'],
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
946 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
947 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
948
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
949 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
950
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
951 The following parameters are available in the `mysql::db` defined type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
952
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
953 ##### `user`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
954
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
955 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
956
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
957 The user for the database you're creating.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
958
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
959 ##### `password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
960
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
961 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
962
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
963 The password for $user for the database you're creating.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
964
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
965 ##### `tls_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
966
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
967 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
968
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
969 The tls_options for $user for the database you're creating.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
970
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
971 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
972
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
973 ##### `dbname`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
974
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
975 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
976
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
977 The name of the database to create.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
978
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
979 Default value: $name
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
980
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
981 ##### `charset`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
982
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
983 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
984
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
985 The character set for the database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
986
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
987 Default value: 'utf8'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
988
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
989 ##### `collate`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
990
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
991 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
992
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
993 The collation for the database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
994
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
995 Default value: 'utf8_general_ci'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
996
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
997 ##### `host`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
998
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
999 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1000
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1001 The host to use as part of user@host for grants.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1002
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1003 Default value: 'localhost'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1004
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1005 ##### `grant`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1006
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1007 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1008
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1009 The privileges to be granted for user@host on the database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1010
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1011 Default value: 'ALL'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1012
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1013 ##### `grant_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1014
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1015 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1016
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1017 The grant_options for the grant for user@host on the database.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1018
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1019 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1020
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1021 ##### `sql`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1022
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1023 Data type: `Optional[Variant[Array, Hash, String]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1024
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1025 The path to the sqlfile you want to execute. This can be single file specified as string, or it can be an array of strings.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1026
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1027 Default value: `undef`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1028
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1029 ##### `enforce_sql`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1030
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1031 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1032
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1033 Specifies whether executing the sqlfiles should happen on every run. If set to false, sqlfiles only run once.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1034
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1035 Default value: `false`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1036
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1037 ##### `ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1038
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1039 Data type: `Enum['absent', 'present']`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1040
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1041 Specifies whether to create the database. Valid values are 'present', 'absent'. Defaults to 'present'.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1042
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1043 Default value: 'present'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1044
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1045 ##### `import_timeout`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1046
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1047 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1048
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1049 Timeout, in seconds, for loading the sqlfiles. Defaults to 300.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1050
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1051 Default value: 300
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1052
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1053 ##### `import_cat_cmd`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1054
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1055 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1056
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1057 Command to read the sqlfile for importing the database. Useful for compressed sqlfiles. For example, you can use 'zcat' for .gz files.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1058
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1059 Default value: 'cat'
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1060
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1061 ##### `mysql_exec_path`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1062
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1063 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1064
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1065
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1066
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1067 Default value: $mysql::params::exec_path
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1068
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1069 ## Resource types
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1070
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1071 ### mysql_grant
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1072
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1073 @summary
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1074 Manage a MySQL user's rights.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1075
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1076 #### Properties
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1077
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1078 The following properties are available in the `mysql_grant` type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1079
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1080 ##### `ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1081
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1082 Valid values: present, absent
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1083
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1084 The basic property that the resource should be in.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1085
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1086 Default value: present
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1087
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1088 ##### `privileges`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1089
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1090 Privileges for user
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1091
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1092 ##### `table`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1093
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1094 Valid values: %r{.*\..*}, %r{^[0-9a-zA-Z$_]*@[\w%\.:\-/]*$}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1095
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1096 Table to apply privileges to.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1097
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1098 ##### `user`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1099
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1100 User to operate on.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1101
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1102 ##### `options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1103
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1104 Options to grant.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1105
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1106 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1107
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1108 The following parameters are available in the `mysql_grant` type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1109
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1110 ##### `name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1111
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1112 namevar
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1113
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1114 Name to describe the grant.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1115
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1116 ### mysql_plugin
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1117
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1118 Manage MySQL plugins.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1119
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1120 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1121
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1122 #####
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1123
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1124 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1125 mysql_plugin { 'some_plugin':
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1126 soname => 'some_pluginlib.so',
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1127 }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1128 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1129
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1130 #### Properties
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1131
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1132 The following properties are available in the `mysql_plugin` type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1133
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1134 ##### `ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1135
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1136 Valid values: present, absent
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1137
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1138 The basic property that the resource should be in.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1139
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1140 Default value: present
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1141
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1142 ##### `soname`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1143
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1144 Valid values: %r{^\w+\.\w+$}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1145
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1146 The name of the library
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1147
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1148 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1149
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1150 The following parameters are available in the `mysql_plugin` type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1151
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1152 ##### `name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1153
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1154 namevar
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1155
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1156 The name of the MySQL plugin to manage.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1157
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1158 ### mysql_user
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1159
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1160 @summary
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1161 Manage a MySQL user. This includes management of users password as well as privileges.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1162
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1163 #### Properties
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1164
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1165 The following properties are available in the `mysql_user` type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1166
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1167 ##### `ensure`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1168
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1169 Valid values: present, absent
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1170
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1171 The basic property that the resource should be in.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1172
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1173 Default value: present
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1174
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1175 ##### `password_hash`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1176
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1177 Valid values: %r{\w*}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1178
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1179 The password hash of the user. Use mysql_password() for creating such a hash.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1180
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1181 ##### `plugin`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1182
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1183 Valid values: %r{\w+}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1184
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1185 The authentication plugin of the user.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1186
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1187 ##### `max_user_connections`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1188
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1189 Valid values: %r{\d+}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1190
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1191 Max concurrent connections for the user. 0 means no (or global) limit.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1192
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1193 ##### `max_connections_per_hour`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1194
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1195 Valid values: %r{\d+}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1196
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1197 Max connections per hour for the user. 0 means no (or global) limit.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1198
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1199 ##### `max_queries_per_hour`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1200
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1201 Valid values: %r{\d+}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1202
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1203 Max queries per hour for the user. 0 means no (or global) limit.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1204
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1205 ##### `max_updates_per_hour`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1206
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1207 Valid values: %r{\d+}
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1208
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1209 Max updates per hour for the user. 0 means no (or global) limit.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1210
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1211 ##### `tls_options`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1212
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1213 Options to that set the TLS-related REQUIRE attributes for the user.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1214
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1215 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1216
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1217 The following parameters are available in the `mysql_user` type.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1218
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1219 ##### `name`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1220
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1221 namevar
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1222
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1223 The name of the user. This uses the 'username@hostname' or username@hostname.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1224
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1225 ## Functions
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1226
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1227 ### mysql::normalise_and_deepmerge
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1228
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1229 Type: Ruby 4.x API
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1230
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1231 - When there is a duplicate key that is a hash, they are recursively merged.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1232 - When there is a duplicate key that is not a hash, the key in the rightmost hash will "win."
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1233 - When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate), the rightmost style will win.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1234
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1235 #### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1236
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1237 #####
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1238
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1239 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1240 $hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1241 $hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1242 $merged_hash = mysql::normalise_and_deepmerge($hash1, $hash2)
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1243 # The resulting hash is equivalent to:
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1244 # $merged_hash = { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1245 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1246
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1247 #### `mysql::normalise_and_deepmerge(Any *$args)`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1248
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1249 - When there is a duplicate key that is a hash, they are recursively merged.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1250 - When there is a duplicate key that is not a hash, the key in the rightmost hash will "win."
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1251 - When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate), the rightmost style will win.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1252
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1253 Returns: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1254
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1255 ##### Examples
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1256
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1257 ######
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1258
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1259 ```puppet
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1260 $hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1261 $hash2 = {'two' => 'dos', 'three' => { 'five' => 5 } }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1262 $merged_hash = mysql::normalise_and_deepmerge($hash1, $hash2)
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1263 # The resulting hash is equivalent to:
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1264 # $merged_hash = { 'one' => 1, 'two' => 'dos', 'three' => { 'four' => 4, 'five' => 5 } }
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1265 ```
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1266
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1267 ##### `*args`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1268
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1269 Data type: `Any`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1270
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1271
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1272
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1273 ### mysql::password
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1274
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1275 Type: Ruby 4.x API
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1276
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1277 Hash a string as mysql's "PASSWORD()" function would do it
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1278
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1279 #### `mysql::password(String $password)`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1280
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1281 The mysql::password function.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1282
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1283 Returns: `String` hash
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1284 The mysql password hash from the clear text password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1285
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1286 ##### `password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1287
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1288 Data type: `String`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1289
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1290 Plain text password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1291
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1292 ### mysql::strip_hash
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1293
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1294 Type: Ruby 4.x API
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1295
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1296 When given a hash this function strips out all blank entries.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1297
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1298 #### `mysql::strip_hash(Hash $hash)`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1299
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1300 The mysql::strip_hash function.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1301
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1302 Returns: `Hash` hash
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1303 The given hash with all blank entries removed
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1304
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1305 ##### `hash`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1306
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1307 Data type: `Hash`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1308
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1309 Hash to be stripped
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1310
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1311 ### mysql_password
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1312
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1313 Type: Ruby 3.x API
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1314
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1315 Hash a string as mysql's "PASSWORD()" function would do it
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1316
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1317 #### `mysql_password(String $password)`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1318
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1319 The mysql_password function.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1320
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1321 Returns: `String` the mysql password hash from the clear text password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1322
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1323 ##### `password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1324
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1325 Data type: `String`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1326
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1327 Plain text password.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1328
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1329 ## Tasks
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1330
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1331 ### export
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1332
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1333 Allows you to backup your database to local file.
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1334
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1335 **Supports noop?** false
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1336
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1337 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1338
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1339 ##### `database`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1340
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1341 Data type: `Optional[String[1]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1342
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1343 Database to connect to
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1344
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1345 ##### `user`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1346
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1347 Data type: `Optional[String[1]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1348
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1349 The user
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1350
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1351 ##### `password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1352
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1353 Data type: `Optional[String[1]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1354
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1355 The password
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1356
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1357 ##### `file`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1358
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1359 Data type: `String[1]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1360
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1361 Path to file you want backup to
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1362
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1363 ### sql
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1364
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1365 Allows you to execute arbitary SQL
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1366
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1367 **Supports noop?** false
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1368
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1369 #### Parameters
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1370
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1371 ##### `database`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1372
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1373 Data type: `Optional[String[1]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1374
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1375 Database to connect to
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1376
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1377 ##### `user`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1378
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1379 Data type: `Optional[String[1]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1380
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1381 The user
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1382
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1383 ##### `password`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1384
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1385 Data type: `Optional[String[1]]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1386
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1387 The password
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1388
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1389 ##### `sql`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1390
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1391 Data type: `String[1]`
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1392
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1393 The SQL you want to execute
48d3a1948e4d Update MySQL module
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1394