[buildout]
extends = ${instance-mariadb:output}
          ${pbsready-export:output}

# Repeating parts from instance-mariadb.
parts +=
  urls
  mariadb
  stunnel
  certificate-authority
  ca-stunnel
  logrotate
  logrotate-entry-mariadb
  logrotate-entry-stunnel
  logrotate-entry-cron
  cron
  cron-entry-logrotate
  slapmonitor
  slapmonitor-xml

# Define exporter strategy
[exporter]
recipe = slapos.cookbook:mydumper
wrapper = $${rootdirectory:bin}/$${slap-parameter:namebase}-exporter
backup-directory = $${directory:backup}
socket = $${mariadb:socket}
user = root
mydumper-binary = ${mydumper:location}/bin/mydumper
database = $${mariadb:database}
import = false

# Extends publish section with resilient parameters
[urls]
<= resilient-publish-connection-parameter