Commit c3b18a84 authored by Jérome Perrin's avatar Jérome Perrin

mariadb: generate a command line client

parent 2eee45d9
...@@ -9,6 +9,7 @@ parts = ...@@ -9,6 +9,7 @@ parts =
cron cron
cron-entry-logrotate cron-entry-logrotate
cron-entry-mariadb-backup cron-entry-mariadb-backup
mariadb-cli
gzip-binary = ${gzip:location}/bin/gzip gzip-binary = ${gzip:location}/bin/gzip
...@@ -20,6 +21,13 @@ offline = true ...@@ -20,6 +21,13 @@ offline = true
recipe = slapos.cookbook:publishurl recipe = slapos.cookbook:publishurl
url = mysqls://$${mariadb:user}:$${mariadb:password}@[$${stunnel:remote-host}]:$${stunnel:remote-port}/$${mariadb:database} url = mysqls://$${mariadb:user}:$${mariadb:password}@[$${stunnel:remote-host}]:$${stunnel:remote-port}/$${mariadb:database}
[mariadb-cli]
recipe = slapos.cookbook:wrapper
command-line = ${mariadb:location}/bin/mysql -S $${mariadb:socket}
wrapper-path = $${rootdirectory:bin}/mariadb
parameters-extra = true
[mariadb] [mariadb]
recipe = slapos.cookbook:mysql recipe = slapos.cookbook:mysql
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment