Puppet Class: mariadb::stock_heartbeat
- Defined in:
- modules/mariadb/manifests/stock_heartbeat.pp
Overview
Stock (non-customised) pt-heartbeat for Beta Cluster
Enabling or disabling the service should be handled by orchestration when replication is started or stopped.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'modules/mariadb/manifests/stock_heartbeat.pp', line 5
class mariadb::stock_heartbeat {
file { '/etc/percona-toolkit/pt-heartbeat.conf':
mode => '0444',
source => 'puppet:///modules/mariadb/pt-heartbeat.conf',
}
user { 'heartbeat':
ensure => present,
system => true,
}
systemd::service { 'pt-heartbeat':
ensure => present,
content => file('mariadb/pt-heartbeat.service'),
service_params => {
ensure => undef,
}
}
}
|