Commit c7fd0874 authored by Antoine Catton's avatar Antoine Catton

Modify stack/lamp in order to switch easily to backup.

parent 41b42af9
...@@ -76,7 +76,7 @@ strip-top-level-dir = true ...@@ -76,7 +76,7 @@ strip-top-level-dir = true
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
md5sum = f4e4cf75225685e1787c0bc6d1c16910 md5sum = d7a6e9bbde95bf8bbb3f1844aefd789a
mode = 0644 mode = 0644
[template-apache-php] [template-apache-php]
...@@ -93,6 +93,13 @@ output = ${buildout:directory}/template-backuped.cfg ...@@ -93,6 +93,13 @@ output = ${buildout:directory}/template-backuped.cfg
md5sum = 4190baa5e3f87a02e8721aeac3b70942 md5sum = 4190baa5e3f87a02e8721aeac3b70942
mode = 0644 mode = 0644
[template-use-backup]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-use-backup.cfg
output = ${buildout:directory}/template-use-backup.cfg
md5sum = e2e0fe0da5d2944feba0991b8948d04b
mode = 0644
[template-mariadb] [template-mariadb]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb.cfg url = ${:_profile_base_location_}/instance-mariadb.cfg
......
[buildout]
extends =
${template-backuped:output}
[mariadb-urlparse]
recipe = slapos.cookbook:urlparse
url = $${request-mariadb-pseudo-replicating:connection-url}
[request-mariadb]
software-type = mariadb-pbsready-import
[request-mariadb-pseudo-replicating]
software-type = mariadb-pbsready-export
[request-pull-backup-server-mariadb]
config-type = push
[request-pull-backup-server-mariadb-backup]
config-type = pull
...@@ -10,6 +10,7 @@ offline = true ...@@ -10,6 +10,7 @@ offline = true
recipe = slapos.cookbook:softwaretype recipe = slapos.cookbook:softwaretype
default = ${template-apache-php:output} default = ${template-apache-php:output}
backuped = ${template-backuped:output} backuped = ${template-backuped:output}
use-backup = ${template-use-backup:output}
mariadb = ${template-mariadb:output} mariadb = ${template-mariadb:output}
mariadb-pbsready-import = ${template-mariadb-pbsready-import:output} mariadb-pbsready-import = ${template-mariadb-pbsready-import:output}
mariadb-pbsready-export = ${template-mariadb-pbsready-export:output} mariadb-pbsready-export = ${template-mariadb-pbsready-export:output}
......
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