Commit da17f680 authored by Marco Mariani's avatar Marco Mariani

further directory renaming, small cleanup

parent 5b901ee5
[buildout] [buildout]
extends = ${template-apache-php:output} extends = ${instance-apache-php:output}
${template-pbsready-export:output} ${instance-pbsready-export:output}
parts = parts =
apache-proxy apache-proxy
......
...@@ -13,14 +13,14 @@ parts = ...@@ -13,14 +13,14 @@ parts =
instance-recipe-egg instance-recipe-egg
template template
template-apache-php instance-apache-php
template-mariadb template-mariadb
#Contains the importer and exporter recipes for mariadb #Contains the importer and exporter recipes for mariadb
template-mariadb-import template-mariadb-import
template-mariadb-export template-mariadb-export
template-default-root instance-default-root
extends = extends =
...@@ -68,17 +68,17 @@ strip-top-level-dir = true ...@@ -68,17 +68,17 @@ strip-top-level-dir = true
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
md5sum = e080e7d978a1a2ec78a775ee48dda1d0 #md5sum = 5b7ad4002de3e3e46fb2c3b7e44c81c0
mode = 0644 mode = 0644
[template-apache-php] [instance-apache-php]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/apache/instance-apache-php.cfg.in url = ${:_profile_base_location_}/apache/instance-apache-php.cfg.in
output = ${buildout:directory}/instance-apache-php.cfg output = ${buildout:directory}/instance-apache-php.cfg
md5sum = a5dd222b3faa4e1ef2df9b3b9bb47966 md5sum = a5dd222b3faa4e1ef2df9b3b9bb47966
mode = 0644 mode = 0644
[template-apache-backup] [instance-apache-backup]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/apache/instance-apache-backup.cfg.in url = ${:_profile_base_location_}/apache/instance-apache-backup.cfg.in
output = ${buildout:directory}/instance-apache-backup.cfg output = ${buildout:directory}/instance-apache-backup.cfg
...@@ -90,7 +90,7 @@ recipe = slapos.recipe.template:jinja2 ...@@ -90,7 +90,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/template-resilient.cfg.in template = ${:_profile_base_location_}/template-resilient.cfg.in
rendered = ${buildout:directory}/instance-resilient.cfg rendered = ${buildout:directory}/instance-resilient.cfg
context = key templateapache template-apache-php:output context = key templateapache instance-apache-php:output
key dropbear dropbear:location key dropbear dropbear:location
key buildout buildout:bin-directory key buildout buildout:bin-directory
...@@ -112,22 +112,22 @@ mode = 0644 ...@@ -112,22 +112,22 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/mariadb/instance-mariadb-import.cfg.in url = ${:_profile_base_location_}/mariadb/instance-mariadb-import.cfg.in
output = ${buildout:directory}/instance-mariadb-import.cfg output = ${buildout:directory}/instance-mariadb-import.cfg
md5sum = fa696733db4bd5b2e3e9fb6e0b09c59b #md5sum = 0a3f052a38298dc4153a6eca13712b28
mode = 0644 mode = 0644
[template-mariadb-export] [template-mariadb-export]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/mariadb/instance-mariadb-export.cfg.in url = ${:_profile_base_location_}/mariadb/instance-mariadb-export.cfg.in
output = ${buildout:directory}/instance-mariadb-export.cfg output = ${buildout:directory}/instance-mariadb-export.cfg
md5sum = 4b7dec765265b27c8235419b82ca7b02 #md5sum = 3638ea4fa57144b88562cb1bcb3531dc
mode = 0644 mode = 0644
[template-default-root] [instance-default-root]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/default-root.cfg.in url = ${:_profile_base_location_}/instance-default-root.cfg.in
output = ${buildout:directory}/default-root.cfg output = ${buildout:directory}/instance-default-root.cfg
#md5sum = 48e0c1511db6786d63b1e194446b506b md5sum = 53c9020f7a0b5203f976e069e455787b
mode = 0644 mode = 0644
......
...@@ -12,13 +12,13 @@ offline = true ...@@ -12,13 +12,13 @@ offline = true
[switch_softwaretype] [switch_softwaretype]
recipe = slapos.cookbook:softwaretype recipe = slapos.cookbook:softwaretype
default = ${template-default-root:output} default = ${instance-default-root:output}
apache = ${template-apache-php:output} apache = ${instance-apache-php:output}
resilient = ${template-resilient-lamp:rendered} resilient = ${template-resilient-lamp:rendered}
mariadb = ${template-mariadb:output} mariadb = ${template-mariadb:output}
mariadb-import = ${template-mariadb-import:output} mariadb-import = ${template-mariadb-import:output}
mariadb-export = ${template-mariadb-export:output} mariadb-export = ${template-mariadb-export:output}
pull-backup = ${template-pull-backup:output} pull-backup = ${template-pull-backup:output}
apache-backup = ${template-apache-backup:output} apache-backup = ${instance-apache-backup:output}
frozen = ${template-frozen:output} frozen = ${instance-frozen:output}
[buildout] [buildout]
extends = ${template-mariadb:output} extends = ${template-mariadb:output}
${template-pbsready-export:output} ${instance-pbsready-export:output}
parts += mariadb parts += mariadb
......
[buildout] [buildout]
extends = ${template-mariadb:output} extends = ${template-mariadb:output}
${template-pbsready-import:output} ${instance-pbsready-import:output}
parts += mariadb parts += mariadb
......
...@@ -2,38 +2,38 @@ ...@@ -2,38 +2,38 @@
parts = parts =
#Templates needed to setup automatic backup #Templates needed to setup automatic backup
template-pbsready instance-pbsready
template-pbsready-import instance-pbsready-import
template-pbsready-export instance-pbsready-export
template-replicated template-replicated
template-parts template-parts
#Frozen is the state used to not destroy a broken instance's content #Frozen is the state used to not destroy a broken instance's content
template-frozen instance-frozen
template-resilient template-resilient
template-switchsoftware template-switchsoftware
[template-pbsready] [instance-pbsready]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-pbsready.cfg.in url = ${:_profile_base_location_}/instance-pbsready.cfg.in
output = ${buildout:directory}/instance-pbsready.cfg output = ${buildout:directory}/instance-pbsready.cfg
md5sum = 45e64cfb6afbcfda1f9f85e33c73bd99 md5sum = 45e64cfb6afbcfda1f9f85e33c73bd99
mode = 0644 mode = 0644
[template-pbsready-import] [instance-pbsready-import]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-pbsready-import.cfg.in url = ${:_profile_base_location_}/instance-pbsready-import.cfg.in
output = ${buildout:directory}/instance-pbsready-import.cfg output = ${buildout:directory}/instance-pbsready-import.cfg
md5sum = 5ba7477f9499a7dbde5f33ca96bd6ba4 #md5sum = 398e77061a904d0565db57b1ffbaf128
mode = 0644 mode = 0644
[template-pbsready-export] [instance-pbsready-export]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-pbsready-export.cfg.in url = ${:_profile_base_location_}/instance-pbsready-export.cfg.in
output = ${buildout:directory}/instance-pbsready-export.cfg output = ${buildout:directory}/instance-pbsready-export.cfg
md5sum = 29d36aac2008b173cb9ce5da9e88c0fa #md5sum = 29d36aac2008b173cb9ce5da9e88c0fa
mode = 0644 mode = 0644
[template-pull-backup] [template-pull-backup]
...@@ -57,7 +57,7 @@ md5sum = f5fc27235725f05fdbde76a78ebc363e ...@@ -57,7 +57,7 @@ md5sum = f5fc27235725f05fdbde76a78ebc363e
mode = 0644 mode = 0644
destination = ${buildout:directory}/template-parts.cfg.in destination = ${buildout:directory}/template-parts.cfg.in
[template-frozen] [instance-frozen]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-frozen.cfg.in url = ${:_profile_base_location_}/instance-frozen.cfg.in
output = ${buildout:directory}/instance-frozen.cfg output = ${buildout:directory}/instance-frozen.cfg
...@@ -73,6 +73,6 @@ mode = 0644 ...@@ -73,6 +73,6 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/switchsoftware.cfg.in url = ${:_profile_base_location_}/switchsoftware.cfg.in
output = ${buildout:directory}/switchsoftware.cfg output = ${buildout:directory}/switchsoftware.cfg
md5sum = c94a0ed85fce2e72254ae956dce7e40d #md5sum = a0e895173ff33ffea97b0bbb52d7e486
mode = 0644 mode = 0644
[buildout] [buildout]
extends = ${template-pbsready:output}
extends = ${instance-pbsready:output}
parts += cron-entry-backup parts += cron-entry-backup
......
[buildout] [buildout]
extends = ${template-pbsready:output} extends = ${instance-pbsready:output}
parts += import-on-notification parts += import-on-notification
......
...@@ -144,11 +144,12 @@ rotate-num = 30 ...@@ -144,11 +144,12 @@ rotate-num = 30
[rootdirectory] [rootdirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
bin = $${buildout:directory}/bin/
etc = $${buildout:directory}/etc/ etc = $${buildout:directory}/etc/
var = $${buildout:directory}/var/ home = $${buildout:directory}/home/
srv = $${buildout:directory}/srv/ srv = $${buildout:directory}/srv/
bin = $${buildout:directory}/bin/
tmp = $${buildout:directory}/tmp/ tmp = $${buildout:directory}/tmp/
var = $${buildout:directory}/var/
[basedirectory] [basedirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
...@@ -157,6 +158,8 @@ services = $${rootdirectory:etc}/run/ ...@@ -157,6 +158,8 @@ services = $${rootdirectory:etc}/run/
run = $${rootdirectory:var}/run/ run = $${rootdirectory:var}/run/
backup = $${rootdirectory:srv}/backup/ backup = $${rootdirectory:srv}/backup/
promises = $${rootdirectory:etc}/promise/ promises = $${rootdirectory:etc}/promise/
ssh-home = $${rootdirectory:home}/ssh
notifier = $${rootdirectory:etc}/notifier/
[directory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
...@@ -173,13 +176,6 @@ dot-ssh = $${basedirectory:ssh-home}/.ssh/ ...@@ -173,13 +176,6 @@ dot-ssh = $${basedirectory:ssh-home}/.ssh/
notifier-feeds = $${basedirectory:notifier}/feeds/ notifier-feeds = $${basedirectory:notifier}/feeds/
notifier-callbacks = $${basedirectory:notifier}/callbacks/ notifier-callbacks = $${basedirectory:notifier}/callbacks/
[basedirectory]
ssh-home = $${rootdirectory:home}/ssh
notifier = $${rootdirectory:etc}/notifier/
[rootdirectory]
home = $${buildout:directory}/home/
# Default values # Default values
[slap-parameter] [slap-parameter]
......
...@@ -7,4 +7,4 @@ recipe = slapos.cookbook:softwaretype ...@@ -7,4 +7,4 @@ recipe = slapos.cookbook:softwaretype
pull-backup = ${template-pull-backup:output} pull-backup = ${template-pull-backup:output}
#frozen creates a syntax error, meaning it can keep its data. #frozen creates a syntax error, meaning it can keep its data.
#It's dirty as hell, it needs to be replaced. #It's dirty as hell, it needs to be replaced.
frozen = ${template-frozen:output} frozen = ${instance-frozen: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