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
5c627aad
Commit
5c627aad
authored
May 17, 2023
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/rapid-cdn: Avoid double configuration parameter
parent
c7c0c206
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
software/rapid-cdn/buildout.hash.cfg
software/rapid-cdn/buildout.hash.cfg
+2
-2
software/rapid-cdn/instance-frontend.cfg.in
software/rapid-cdn/instance-frontend.cfg.in
+1
-1
software/rapid-cdn/instance-slave-list.cfg.in
software/rapid-cdn/instance-slave-list.cfg.in
+1
-1
No files found.
software/rapid-cdn/buildout.hash.cfg
View file @
5c627aad
...
...
@@ -22,7 +22,7 @@ md5sum = 5784bea3bd608913769ff9a8afcccb68
[profile-frontend]
filename = instance-frontend.cfg.in
md5sum =
cbdb70c2e93479e5ff0d868997f4adc6
md5sum =
11c152cb4a23814051eed6d6bb836c00
[profile-master]
filename = instance-master.cfg.in
...
...
@@ -30,7 +30,7 @@ md5sum = 877e08db0fb814882f716a9cd0429c83
[profile-slave-list]
filename = instance-slave-list.cfg.in
md5sum =
3271341d0f2f0f81dc970a458d4030a1
md5sum =
1c40e4b756503c34edca47c9f46f0f5c
[profile-master-publish-slave-information]
filename = instance-master-publish-slave-information.cfg.in
...
...
software/rapid-cdn/instance-frontend.cfg.in
View file @
5c627aad
...
...
@@ -1127,7 +1127,7 @@ config-state = empty
{#- XXX: Some other approach would be useful #}
{%- set DROP_KEY_LIST = ['recipe', '__buildout_signature__', 'computer', 'partition', 'url', 'key', 'cert'] %}
{%- for key, value in instance_parameter_dict.items() -%}
{%- if not key.startswith('configuration
.
') and key not in DROP_KEY_LIST %}
{%- if not key.startswith('configuration') and key not in DROP_KEY_LIST %}
{{ key }} = {{ dumps(value) }}
{%- endif -%}
{%- endfor %}
...
...
software/rapid-cdn/instance-slave-list.cfg.in
View file @
5c627aad
...
...
@@ -222,7 +222,7 @@ context =
{#- Set slave domain if none was defined #}
{%- if slave_instance.get('custom_domain', None) == None %}
{%- set domain_prefix = slave_instance.get('slave_reference').replace("-", "").replace("_", "").lower() %}
{%- do slave_instance.__setitem__('custom_domain', "%s.%s" % (domain_prefix,
instance_parameter_dict['configuration'].get('domain')
)) %}
{%- do slave_instance.__setitem__('custom_domain', "%s.%s" % (domain_prefix,
configuration['domain']
)) %}
{%- endif %}
{%- do slave_publish_dict.__setitem__('domain', slave_instance.get('custom_domain')) %}
{%- do slave_publish_dict.__setitem__('url', "http://%s" % slave_instance.get('custom_domain')) %}
...
...
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