Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm not sure I follow your question but will take a stab at it anyways.

If you are trying to install different versions of MariaDB on different servers then you can do something like this.

case $fqdn { #case could be on $operatingsystem, $operatingsystemmajrelease, etc
  'foo.com', 'bar.com': { $mariadb_version == '5.5' }
  'baz.com', 'bez.com': { $mariadb_version == '5.7' }
}
package { 'mariadb': ensure => $mariadb_version }

If you are trying to install mysql on some servers and mariadb on others then the variable set in your case statement would be $mysql_package followed by

package { $mysql_package : ensure => installed }

I hope this answered your question please add clarification about what you are trying to do.