Merge remote-tracking branch 'origin/erp5-luke' into erp5
[slapos.git] / stack / lamp / instance-mariadb-pbsready-import.cfg
1 [buildout]
2
3 extends = ${template-mariadb-pbsready:output}
4
5 parts += mariadb-import-on-notification
6
7 [urls]
8 notification-url = http://[$${notifier:host}]:$${notifier:port}/notify
9
10 [mydumper-import]
11 recipe = slapos.cookbook:mydumper
12 wrapper = $${rootdirectory:bin}/myloader
13 backup-directory = $${directory:mariadb-backup}
14 socket = $${mariadb:socket}
15 user = root
16 myloader-binary = ${mydumper:location}/bin/myloader
17 database = $${mariadb:database}
18 import = true
19
20 [mariadb-import-on-notification]
21 <= notifier
22 recipe = slapos.cookbook:notifier.callback
23 on-notification-id = $${slap-parameter:on-notification}
24 callback = $${mydumper-import:wrapper}