Commit 08d72b69 authored by Jérome Perrin's avatar Jérome Perrin

mariadb: listen on ipv6 and register a service on watch

parent 5c2ea485
...@@ -19,7 +19,7 @@ offline = true ...@@ -19,7 +19,7 @@ offline = true
[url] [url]
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}@[$${mariadb:ip}]:$${mariadb:port}/$${mariadb:database}
[mariadb-cli] [mariadb-cli]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
...@@ -36,12 +36,13 @@ recovering = false ...@@ -36,12 +36,13 @@ recovering = false
user = user user = user
password = insecure password = insecure
port = 3306 port = 3306
ip = $${slap-network-information:local-ipv4} ip = $${slap-network-information:global-ipv6}
database = db database = db
# Paths # Paths
wrapper = $${basedirectory:services}/mariadb wrapper = $${basedirectory:service}/mariadb
update-wrapper = $${basedirectory:services}/mariadb_update update-wrapper = $${basedirectory:service}/mariadb_update
backup-script = $${rootdirectory:bin}/mariadb_backup backup-script = $${rootdirectory:bin}/mariadb_backup
logrotate-post = $${rootdirectory:bin}/mariadb_post_logrotate logrotate-post = $${rootdirectory:bin}/mariadb_post_logrotate
backup-directory = $${directory:mariadb-backup} backup-directory = $${directory:mariadb-backup}
...@@ -69,7 +70,7 @@ recipe = slapos.cookbook:certificate_authority ...@@ -69,7 +70,7 @@ recipe = slapos.cookbook:certificate_authority
openssl-binary = ${openssl:location}/bin/openssl openssl-binary = ${openssl:location}/bin/openssl
ca-dir = $${directory:ca-dir} ca-dir = $${directory:ca-dir}
requests-directory = $${cadirectory:requests} requests-directory = $${cadirectory:requests}
wrapper = $${basedirectory:services}/ca wrapper = $${basedirectory:service}/ca
ca-private = $${cadirectory:private} ca-private = $${cadirectory:private}
ca-certs = $${cadirectory:certs} ca-certs = $${cadirectory:certs}
ca-newcerts = $${cadirectory:newcerts} ca-newcerts = $${cadirectory:newcerts}
...@@ -89,7 +90,7 @@ recipe = slapos.cookbook:certificate_authority.request ...@@ -89,7 +90,7 @@ recipe = slapos.cookbook:certificate_authority.request
key-file = $${directory:stunnel-conf}/stunnel.key key-file = $${directory:stunnel-conf}/stunnel.key
cert-file = $${directory:stunnel-conf}/stunnel.crt cert-file = $${directory:stunnel-conf}/stunnel.crt
executable = $${stunnel:wrapper} executable = $${stunnel:wrapper}
wrapper = $${basedirectory:services}/stunnel wrapper = $${basedirectory:service}/stunnel
[stunnel] [stunnel]
recipe = slapos.cookbook:stunnel recipe = slapos.cookbook:stunnel
...@@ -139,7 +140,7 @@ cron-entries = $${directory:cron-entries} ...@@ -139,7 +140,7 @@ cron-entries = $${directory:cron-entries}
crontabs = $${directory:crontabs} crontabs = $${directory:crontabs}
cronstamps = $${directory:cronstamps} cronstamps = $${directory:cronstamps}
catcher = $${cron-simplelogger:wrapper} catcher = $${cron-simplelogger:wrapper}
binary = $${basedirectory:services}/crond binary = $${basedirectory:service}/crond
[cron-simplelogger] [cron-simplelogger]
recipe = slapos.cookbook:simplelogger recipe = slapos.cookbook:simplelogger
...@@ -170,7 +171,7 @@ bin = $${buildout:directory}/bin/ ...@@ -170,7 +171,7 @@ bin = $${buildout:directory}/bin/
[basedirectory] [basedirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
log = $${rootdirectory:var}/log/ log = $${rootdirectory:var}/log/
services = $${rootdirectory:etc}/run/ service = $${rootdirectory:etc}/service/
run = $${rootdirectory:var}/run/ run = $${rootdirectory:var}/run/
backup = $${rootdirectory:srv}/backup/ backup = $${rootdirectory:srv}/backup/
......
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