sunetdrive/manifests/mariadb.pp

30 lines
819 B
ObjectPascal
Raw Normal View History

2023-02-13 09:44:56 +00:00
# A Class using the db resurce
class sunetdrive::mariadb (
$bootstrap = undef,
$location = undef,
$tag_mariadb = undef,
$override_config = undef,
$override_compose = undef,
$replicate_rewrite_db = undef,
2023-02-13 09:44:56 +00:00
) {
2023-06-13 10:16:55 +00:00
$quorum_id = $facts['networking']['fqdn']
2023-02-13 09:44:56 +00:00
$quorum_password = safe_hiera('quorum_password')
$db = sunetdrive::db_type { 'base_db':
2023-06-13 10:16:55 +00:00
bootstrap => $bootstrap,
tag_mariadb => $tag_mariadb,
location => $location,
replicate_rewrite_db => $replicate_rewrite_db,
2023-02-13 09:44:56 +00:00
}
file { '/etc/quorum.conf':
ensure => file,
mode => '0644',
content => template('sunetdrive/mariadb/quorum.conf.erb'),
}
file { '/usr/local/bin/quorum':
ensure => file,
mode => '0700',
content => template('sunetdrive/mariadb/quorum.erb.sh'),
}
}