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
Titouan Soulard
slapos
Commits
cafcac83
Commit
cafcac83
authored
Jun 06, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/lamp: allow to publish custom connexion parameters
parent
71b0f54e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+4
-0
stack/lamp/buildout.hash.cfg
stack/lamp/buildout.hash.cfg
+2
-2
stack/lamp/instance-lamp.cfg.jinja2.in
stack/lamp/instance-lamp.cfg.jinja2.in
+6
-1
stack/lamp/instance.cfg.in
stack/lamp/instance.cfg.in
+1
-0
No files found.
stack/lamp/buildout.cfg
View file @
cafcac83
...
@@ -61,12 +61,15 @@ archive-root =
...
@@ -61,12 +61,15 @@ archive-root =
# See software/maarch/software.cfg for an example.
# See software/maarch/software.cfg for an example.
path =
path =
part-list =
part-list =
# Additional connexion parameters to publish from instance-apache-php
publish-list =
# database information
# database information
db-name = lamp
db-name = lamp
db-user = lamp
db-user = lamp
# Publish default lamp slave frontend url
# Publish default lamp slave frontend url
default-frontend = True
default-frontend = True
[composer]
[composer]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = https://getcomposer.org/installer
url = https://getcomposer.org/installer
...
@@ -129,6 +132,7 @@ context =
...
@@ -129,6 +132,7 @@ context =
key application_location application:location
key application_location application:location
key application_archive_root application:archive-root
key application_archive_root application:archive-root
key application_deployment_part_list custom-application-deployment:part-list
key application_deployment_part_list custom-application-deployment:part-list
key application_deployment_publish_list custom-application-deployment:publish-list
key apache_location apache:location
key apache_location apache:location
key apache_php_location apache-php:location
key apache_php_location apache-php:location
key bash_location bash:location
key bash_location bash:location
...
...
stack/lamp/buildout.hash.cfg
View file @
cafcac83
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# not need these here).
# not need these here).
[lamp-instance]
[lamp-instance]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
0fa7f628756b7ba10b651fe5549def89
md5sum =
8940540752d7eef8dc625a31393ca14e
[instance-apache-php]
[instance-apache-php]
filename = instance-apache-php.cfg.in
filename = instance-apache-php.cfg.in
...
@@ -22,7 +22,7 @@ md5sum = 765372ad68b61f117f666f30f0ad153f
...
@@ -22,7 +22,7 @@ md5sum = 765372ad68b61f117f666f30f0ad153f
[instance-lamp]
[instance-lamp]
filename = instance-lamp.cfg.jinja2.in
filename = instance-lamp.cfg.jinja2.in
md5sum =
de1f450a80547d12334b712016138078
md5sum =
5666756bed63a050df4119384b542ace
[template-apache.conf]
[template-apache.conf]
filename = apache.conf.in
filename = apache.conf.in
...
...
stack/lamp/instance-lamp.cfg.jinja2.in
View file @
cafcac83
...
@@ -33,7 +33,12 @@ return =
...
@@ -33,7 +33,12 @@ return =
url
url
backend-url
backend-url
monitor-base-url
monitor-base-url
{% for param in parameter_dict['application-publish-list'].split('\n') -%}
{% if param.strip() -%}
{{ ' ' ~ param }}
{% do publish_dict.__setitem__(param, '${request-apache:connection-' ~ param.strip() ~'}') -%}
{% endif -%}
{% endfor -%}
{% do part_list.append('request-apache') -%}
{% do part_list.append('request-apache') -%}
{% do publish_dict.__setitem__('backend-url', '${request-apache:connection-backend-url}') -%}
{% do publish_dict.__setitem__('backend-url', '${request-apache:connection-backend-url}') -%}
{% do publish_dict.__setitem__('url', '${request-apache:connection-url}') -%}
{% do publish_dict.__setitem__('url', '${request-apache:connection-url}') -%}
...
...
stack/lamp/instance.cfg.in
View file @
cafcac83
...
@@ -46,6 +46,7 @@ context =
...
@@ -46,6 +46,7 @@ context =
recipe = slapos.cookbook:generate.password
recipe = slapos.cookbook:generate.password
[dynamic-template-lamp-parameters]
[dynamic-template-lamp-parameters]
application-publish-list = {{ application_deployment_publish_list.split('\n') | join('\n ') }}
[dynamic-template-lamp]
[dynamic-template-lamp]
<= jinja2-template-base
<= jinja2-template-base
...
...
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