Commit 7aa1d92c authored by Vincent Pelletier's avatar Vincent Pelletier

Factorise download sections.

parent 93d061ee
...@@ -139,6 +139,11 @@ parts = ...@@ -139,6 +139,11 @@ parts =
# Create instance template # Create instance template
template template
[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}
mode = 640
# Local development # Local development
[slapos.cookbook-repository] [slapos.cookbook-repository]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
...@@ -179,34 +184,29 @@ context = ...@@ -179,34 +184,29 @@ context =
${:extra-context} ${:extra-context}
[template-mariadb] [template-mariadb]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-mariadb.cfg.in filename = instance-mariadb.cfg.in
md5sum = 0e67f6d8b7de909be1324c680cabe8f0 md5sum = 0e67f6d8b7de909be1324c680cabe8f0
mode = 640
[template-zope] [template-zope]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-zope.cfg.in filename = instance-zope.cfg.in
md5sum = 7b1b6ee1fd122f5590844a90853622dc md5sum = 7b1b6ee1fd122f5590844a90853622dc
mode = 640
[template-kumofs] [template-kumofs]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-kumofs.cfg.in filename = instance-kumofs.cfg.in
md5sum = 62759c4cbb586bd4d0dcf82c08654e7a md5sum = 62759c4cbb586bd4d0dcf82c08654e7a
mode = 640
[template-cloudooo] [template-cloudooo]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-cloudoo.cfg.in filename = instance-cloudoo.cfg.in
md5sum = 24fc2dccc7ec20ec317ac4a9530ce6ac md5sum = 24fc2dccc7ec20ec317ac4a9530ce6ac
mode = 640
[template-zope-conf] [template-zope-conf]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/zope.conf.in filename = zope.conf.in
md5sum = c4c42d06c63d33de703fc03415e34d84 md5sum = c4c42d06c63d33de703fc03415e34d84
mode = 640
[template] [template]
< = template-jinja2-base < = template-jinja2-base
...@@ -279,40 +279,34 @@ extra-context = ...@@ -279,40 +279,34 @@ extra-context =
key zlib_location zlib:location key zlib_location zlib:location
[template-memcached] [template-memcached]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-memcached.cfg.in filename = instance-memcached.cfg.in
md5sum = 25bffcb311aa0a202e68399a413fd780 md5sum = 25bffcb311aa0a202e68399a413fd780
mode = 640
[template-erp5-single] [template-erp5-single]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-erp5-single.cfg.in filename = instance-erp5-single.cfg.in
md5sum = f82d59347fdf707ffd671654d318ca70 md5sum = f82d59347fdf707ffd671654d318ca70
mode = 640
[template-erp5-cluster] [template-erp5-cluster]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-erp5-cluster.cfg.in filename = instance-erp5-cluster.cfg.in
md5sum = b044df76edad94dc5bfc2729e3041573 md5sum = b044df76edad94dc5bfc2729e3041573
mode = 640
[template-zeo] [template-zeo]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-zeo.cfg.in filename = instance-zeo.cfg.in
md5sum = 9d49e6787600a416545a8ff228abb720 md5sum = 9d49e6787600a416545a8ff228abb720
mode = 640
[template-cluster-zope] [template-cluster-zope]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-cluster-zope.cfg.in filename = instance-cluster-zope.cfg.in
md5sum = 22c351ae5edd507e8cd3de1abeb705f3 md5sum = 22c351ae5edd507e8cd3de1abeb705f3
mode = 640
[template-balancer] [template-balancer]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-balancer.cfg.in filename = instance-balancer.cfg.in
md5sum = 787fa10c0dc4e607706c572ba8e06386 md5sum = 787fa10c0dc4e607706c572ba8e06386
mode = 640
[template-logrotate-base] [template-logrotate-base]
< = template-jinja2-base < = template-jinja2-base
...@@ -324,10 +318,9 @@ extra-context = ...@@ -324,10 +318,9 @@ extra-context =
key logrotate_location logrotate:location key logrotate_location logrotate:location
[template-varnish] [template-varnish]
recipe = slapos.recipe.build:download < = download-base
url = ${:_profile_base_location_}/instance-varnish.cfg.in filename = instance-varnish.cfg.in
md5sum = f7c47ffc3e23e07f81eb4ca172286ccc md5sum = f7c47ffc3e23e07f81eb4ca172286ccc
mode = 640
[bt5-repository] [bt5-repository]
# Format: # Format:
......
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