sunetdrive/manifests/mariadb.pp

29 lines
750 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-12 07:32:10 +00:00
$quorum_id = $facts['facts['networking']['fqdn']']
2023-02-13 09:44:56 +00:00
$quorum_password = safe_hiera('quorum_password')
$db = sunetdrive::db_type { 'base_db':
bootstrap => $bootstrap,
tag_mariadb => $tag_mariadb,
location => $location,
}
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'),
}
}