summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-07 14:34:36 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-07 14:34:36 -0200
commit8eb9e4305af20ff73ea4838a6a675d9a1a742b28 (patch)
tree7272ea3502a9afe1d3bfc1acc24add90bc2a1cba /manifests
parenta133ae87f3074729d0895b997dde87f48000826d (diff)
downloadpuppet-mysql-8eb9e4305af20ff73ea4838a6a675d9a1a742b28.tar.gz
puppet-mysql-8eb9e4305af20ff73ea4838a6a675d9a1a742b28.tar.bz2
Support different mysql-server implementations
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 788654f..3417119 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,5 +1,6 @@
class mysql::server(
- $rootpw = hiera('mysql::server::rootpw', '')
+ $rootpw = hiera('mysql::server::rootpw', ''),
+ $implementation = 'mysql-server', # 'mariadb-server'
){
case $rootpw {
'': { fail("You need to define a mysql root password! Please set mysql::server::rootpw config") }
@@ -8,6 +9,7 @@ class mysql::server(
include mysql
package { "mysql-server":
+ name => $implementation,
ensure => installed,
}