diff --git a/software/nayuos/buildout.hash.cfg b/software/nayuos/buildout.hash.cfg new file mode 100644 index 0000000000000000000000000000000000000000..1d4d45a3083b87e63a92858128bcaff8bf731a97 --- /dev/null +++ b/software/nayuos/buildout.hash.cfg @@ -0,0 +1,17 @@ +# THIS IS NOT A BUILDOUT FILE, despite purposedly using a compatible syntax. +# The only allowed lines here are (regexes): +# - "^#" comments, copied verbatim +# - "^[" section beginings, copied verbatim +# - lines containing an "=" sign which must fit in the following categorie. +# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file +# Copied verbatim. +# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported +# by the re-generation script. +# Re-generated. +# - other lines are copied verbatim +# Substitution (${...:...}), extension ([buildout] extends = ...) and +# section inheritance (< = ...) are NOT supported (but you should really +# not need these here). +[template-instance] +filename = instance.cfg +md5sum = 7e9deae78923ab7805c0d10d0d6fe336 diff --git a/software/nayuos/software.cfg b/software/nayuos/software.cfg index 148c1f5e2cb7498d01c834c777306e2c87064265..f6cfbe4aea4765d2889c4ddda331933054dfae1a 100644 --- a/software/nayuos/software.cfg +++ b/software/nayuos/software.cfg @@ -1,5 +1,6 @@ [buildout] extends = + buildout.hash.cfg # basic needs ../../stack/slapos.cfg ../../component/automake/buildout.cfg @@ -23,10 +24,9 @@ slapos.recipe.template = 4.3 [template-instance] # jinja2 render instance.cfg file in the buildout directory recipe = slapos.recipe.template:jinja2 -template = ${:_profile_base_location_}/instance.cfg -rendered = ${buildout:directory}/instance.cfg +template = ${:_profile_base_location_}/${:filename} +rendered = ${buildout:directory}/${:filename} mode = 0644 -md5sum = 7e9deae78923ab7805c0d10d0d6fe336 context = key software_dir :_profile_base_location_ key instance_dir buildout:directory