Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos
Commits
4fd11571
Commit
4fd11571
authored
Jul 06, 2022
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX caddy-frontend: Prepare JSON information for the nodes
parent
81b09255
Pipeline
#22781
running with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
software/caddy-frontend/buildout.hash.cfg
software/caddy-frontend/buildout.hash.cfg
+1
-1
software/caddy-frontend/instance-apache-replicate.cfg.in
software/caddy-frontend/instance-apache-replicate.cfg.in
+26
-0
No files found.
software/caddy-frontend/buildout.hash.cfg
View file @
4fd11571
...
...
@@ -26,7 +26,7 @@ md5sum = 75db32dd9b17c923b16420784dfba581
[profile-caddy-replicate]
filename = instance-apache-replicate.cfg.in
md5sum =
11a52389bf0afa85eaf9772c8fe62d87
md5sum =
b0fe561fd5ba42142a30d7d8f8259994
[profile-slave-list]
_update_hash_filename_ = templates/apache-custom-slave-list.cfg.in
...
...
software/caddy-frontend/instance-apache-replicate.cfg.in
View file @
4fd11571
...
...
@@ -980,6 +980,29 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
key_len=2048
)}}
[generate-exposed-node-json]
recipe = slapos.recipe.template:jinja2
slave_list = {{ dumps(authorized_slave_list) }}
context =
import json_module json
key slave_list :slave_list
inline =
{%- raw %}
{{ json_module.dumps(slave_list, sort_keys=True, indent=2) }}
{%- endraw %}
output = ${directory:srv}/exposed-node.json
[generate-exposed-node-kedifa-json]
<= generate-exposed-node-json
slave_list = ${request-kedifa:connection-slave-kedifa-information}
output = ${directory:srv}/exposed-node-kedifa.json
[generate-kedifa-node-json]
<= generate-exposed-node-json
output = ${directory:srv}/kedifa-node.json
[buildout]
extends =
{{ software_parameter_dict['profile_common'] }}
...
...
@@ -996,6 +1019,9 @@ parts =
master-key-upload-url-ready-promise
master-key-generate-auth-url-ready-promise
master-key-download-url-ready-promise
generate-exposed-node-json
generate-exposed-node-kedifa-json
generate-kedifa-node-json
{% for part in part_list %}
{{ ' %s' % part }}
{% endfor %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment