diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-07 14:34:36 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-07 14:34:36 -0200 |
commit | 8eb9e4305af20ff73ea4838a6a675d9a1a742b28 (patch) | |
tree | 7272ea3502a9afe1d3bfc1acc24add90bc2a1cba | |
parent | a133ae87f3074729d0895b997dde87f48000826d (diff) | |
download | puppet-mysql-8eb9e4305af20ff73ea4838a6a675d9a1a742b28.tar.gz puppet-mysql-8eb9e4305af20ff73ea4838a6a675d9a1a742b28.tar.bz2 |
Support different mysql-server implementations
-rw-r--r-- | manifests/server.pp | 4 |
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, } |