Commit cf0669f9 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

software/re6stnet: fix restart of registry

this is a fixup of 54a08186
parent 5f086912
Pipeline #30135 running with stage
...@@ -18,7 +18,7 @@ md5sum = 7be0c21751f8385ef876c3d7192d4057 ...@@ -18,7 +18,7 @@ md5sum = 7be0c21751f8385ef876c3d7192d4057
[template-re6stnet] [template-re6stnet]
filename = instance-re6stnet.cfg.in filename = instance-re6stnet.cfg.in
md5sum = 01a24f1983a1d40f31c4b36b7a2448fe md5sum = 6936c2d6c9e5dc707da761caf6d977af
[template-apache-conf] [template-apache-conf]
filename = apache.conf.in filename = apache.conf.in
......
...@@ -96,7 +96,20 @@ inline = ...@@ -96,7 +96,20 @@ inline =
output = ${re6stnet-dirs:conf}/community.conf output = ${re6stnet-dirs:conf}/community.conf
{%- endif %} {%- endif %}
[re6st-registry-conf-init]
recipe = slapos.recipe.build
init =
# pre-create a file at the path of the conf,
# so that we can use hash-existing-files options
import os
conf_file = self.buildout['re6st-registry-conf']['output']
if not os.path.exists(os.path.dirname(conf_file)):
os.makedirs(os.path.dirname(conf_file))
if not os.path.exists(conf_file):
open(conf_file, 'a').close()
[re6st-registry-conf] [re6st-registry-conf]
init = ${re6st-registry-conf-init:init}
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
url = {{ parameter_dict['template-re6st-registry-conf'] }} url = {{ parameter_dict['template-re6st-registry-conf'] }}
output = ${re6stnet-dirs:conf}/registry.conf output = ${re6stnet-dirs:conf}/registry.conf
......
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