- add eyaml support for role - add /data volume for galera cluster members - create profiles::selinux namespace for defining selinux configuration - create profiles::selinux::mysqld for managing specifics for mysqld - create profiles::selinux::setenforce to manage selinux mode - parameterised options required in mysqld::server module - add mariadb repo - add additional facts for managing mysqld and galera
25 lines
741 B
Puppet
25 lines
741 B
Puppet
# Class: profiles::yum::mariadb
|
|
#
|
|
# This class manages the mariadb yum repository for the system.
|
|
#
|
|
class profiles::yum::mariadb (
|
|
String $baseurl = 'http://repos.main.unkin.net',
|
|
String $version = '11.2',
|
|
Enum[
|
|
'daily',
|
|
'weekly',
|
|
'monthly'
|
|
] $snapshot = 'daily',
|
|
) {
|
|
$release = $facts['os']['release']['major']
|
|
$basearch = $facts['os']['architecture']
|
|
|
|
yumrepo { 'mariadb':
|
|
name => 'mariadb',
|
|
descr => 'mariadb repository',
|
|
target => '/etc/yum.repos.d/mariadb.repo',
|
|
baseurl => "${baseurl}/mariadb/${version}/el${release}-${snapshot}/${basearch}/os/",
|
|
gpgkey => "${baseurl}/mariadb/${version}/el${release}-${snapshot}/${basearch}/os/RPM-GPG-KEY-MariaDB",
|
|
}
|
|
}
|