instance-mariadb-pbsready-import.cfg 642 Bytes
Newer Older
1 2 3 4
[buildout]

extends = ${template-mariadb-pbsready:output}

5 6 7 8
parts += mariadb-import-on-notification

[urls]
notification-url = http://[$${notifier:host}]:$${notifier:port}/notify
9 10 11

[mydumper-import]
recipe = slapos.cookbook:mydumper
12
wrapper = $${rootdirectory:bin}/myloader
13 14 15 16 17 18 19
backup-directory = $${directory:mariadb-backup}
socket = $${mariadb:socket}
user = root
myloader-binary = ${mydumper:location}/bin/myloader
database = $${mariadb:database}
import = true

20 21 22 23 24
[mariadb-import-on-notification]
<= notifier
recipe = slapos.cookbook:notifier.callback
on-notification-id = $${slap-parameter:on-notification}
callback = $${mydumper-import:wrapper}