summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2014-03-12 16:26:32 -0400
committerGabriel Filion <gabster@lelutin.ca>2014-03-12 16:26:32 -0400
commit102de3b0e7c6e2f1ace419e028ed1c3920735d42 (patch)
treed9c47802173c796013d08c7577edd8abd954bed0 /README
parent84fba22bad4d2d0e88352c999cabe4de2a42c023 (diff)
parentb06570a940a705988360553446daa8ea52e60f27 (diff)
Merge branch 'conf_define'
Diffstat (limited to 'README')
-rw-r--r--README30
1 files changed, 30 insertions, 0 deletions
diff --git a/README b/README
index 1b12c76..dde3203 100644
--- a/README
+++ b/README
@@ -46,6 +46,36 @@ grant tables.
The my.cnf file will installed from one of many possible places, see
manifests/server/base.pp for possible locations for managing this.
+Configuration snippets
+----------------------
+
+To make managing mysql configuration easier, you can use the define
+mysql::conf. Note, though that there currently is only the Debian default
+configuration file that includes files in /etc/mysql/conf.d/.
+
+For example:
+
+mysql::conf { 'test':
+ ensure => present,
+ section => 'mysqld',
+ config => {
+ table_cache => '15000',
+ skip_slave => '',
+ something => '""',
+ }
+}
+
+The above example shows two possibilities for empty values.
+
+ * If a value only has an empty value in the hash passed to the config
+ parameter, that will define a boolean option in mysql by simply mentioning
+ the option name with no equal sign. So in the above, you'd have a line that
+ contains only "skip_slave".
+
+ * If you need to declare a variable with an empty value (e.g. with the equal
+ sign), you can use two quotes as the option's value. In the above example,
+ you'd have a line that looks like "something=".
+
Backups
-------