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
Levin Zimmermann
slapos
Commits
977e0be4
Commit
977e0be4
authored
May 20, 2022
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
stack/lamp:add modifiable db-information
See merge request
nexedi/slapos!1173
parents
2d526751
4cd8f757
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
8 deletions
+24
-8
software/matomo/software.cfg
software/matomo/software.cfg
+3
-0
software/nextcloud/software.cfg
software/nextcloud/software.cfg
+5
-2
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+7
-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
+4
-4
stack/lamp/instance.cfg.in
stack/lamp/instance.cfg.in
+3
-0
No files found.
software/matomo/software.cfg
View file @
977e0be4
...
@@ -34,6 +34,9 @@ md5sum = 8d592676bc2c0d51363ad7b2caf171fe
...
@@ -34,6 +34,9 @@ md5sum = 8d592676bc2c0d51363ad7b2caf171fe
[custom-application-deployment]
[custom-application-deployment]
path = ${template-matomo-instance:output}
path = ${template-matomo-instance:output}
part-list = matomo-backup.sh matomo-backup-cron matomo-apache-httpd
part-list = matomo-backup.sh matomo-backup-cron matomo-apache-httpd
db-name = matomo
db-user = matomo
db-password = 12345678
[template-matomo-instance]
[template-matomo-instance]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/nextcloud/software.cfg
View file @
977e0be4
...
@@ -41,6 +41,9 @@ context =
...
@@ -41,6 +41,9 @@ context =
[custom-application-deployment]
[custom-application-deployment]
path = ${template-nextcloud-instance:output}
path = ${template-nextcloud-instance:output}
part-list = nextcloud-install.sh
part-list = nextcloud-install.sh
db-name = nextcloud
db-user = nextcloud
db-password = insecure
[nc-download-unpacked]
[nc-download-unpacked]
recipe = slapos.recipe.build:download-unpacked
recipe = slapos.recipe.build:download-unpacked
...
...
stack/lamp/buildout.cfg
View file @
977e0be4
...
@@ -53,6 +53,10 @@ part = python3
...
@@ -53,6 +53,10 @@ part = python3
# See software/maarch/software.cfg for an example.
# See software/maarch/software.cfg for an example.
path =
path =
part-list =
part-list =
# database information
db-name = lamp
db-user = lamp
db-password = insecure
#----------------
#----------------
#-- Instance-level buildout profiles.
#-- Instance-level buildout profiles.
...
@@ -100,6 +104,9 @@ context =
...
@@ -100,6 +104,9 @@ context =
key unixodbc_location unixodbc:location
key unixodbc_location unixodbc:location
key openssl_location openssl:location
key openssl_location openssl:location
key custom_application_template custom-application-deployment:path
key custom_application_template custom-application-deployment:path
key db_name custom-application-deployment:db-name
key db_user custom-application-deployment:db-user
key db_password custom-application-deployment:db-password
[instance-apache-php]
[instance-apache-php]
<= template-download-base
<= template-download-base
...
...
stack/lamp/buildout.hash.cfg
View file @
977e0be4
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# not need these here).
# not need these here).
[instance]
[instance]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
29df0dc24386ecb97dc52c9fb59108c8
md5sum =
1c80520db055e70f581f48f1c6771bef
[instance-apache-php]
[instance-apache-php]
filename = instance-apache-php.cfg.in
filename = instance-apache-php.cfg.in
...
@@ -22,7 +22,7 @@ md5sum = 0952ef9f6cb5e259ad5519d2975d2f37
...
@@ -22,7 +22,7 @@ md5sum = 0952ef9f6cb5e259ad5519d2975d2f37
[instance-lamp]
[instance-lamp]
filename = instance-lamp.cfg.jinja2.in
filename = instance-lamp.cfg.jinja2.in
md5sum =
e0e2e88b6deeb011b998b78e4e468555
md5sum =
b3d68a13d7a7ffcac774f51f02a68359
[template-apache.conf]
[template-apache.conf]
filename = apache.conf.in
filename = apache.conf.in
...
...
stack/lamp/instance-lamp.cfg.jinja2.in
View file @
977e0be4
...
@@ -37,8 +37,8 @@ return =
...
@@ -37,8 +37,8 @@ return =
{% do publish_dict.__setitem__('backend-url', '${request-apache:connection-backend-url}') -%}
{% do publish_dict.__setitem__('backend-url', '${request-apache:connection-backend-url}') -%}
{% do monitor_base_url_dict.__setitem__('apache', '${request-apache:connection-monitor-base-url}') -%}
{% do monitor_base_url_dict.__setitem__('apache', '${request-apache:connection-monitor-base-url}') -%}
{% do mariadb_dict.__setitem__('database-list', [{'name': db_name, 'user': db_user, 'password': db_password}]) -%}
{% do mariadb_dict.__setitem__('database-list', [{'name': 'nextcloud', 'user': 'nextcloud', 'password': 'insecure'}]) -%}
{% do mariadb_dict.__setitem__('test-database-amount', 0) -%}
{% do mariadb_dict.__setitem__('test-database-amount', 0) -%}
{% do mariadb_dict.__setitem__('tcpv4-port', 2099) -%}
{% do mariadb_dict.__setitem__('tcpv4-port', 2099) -%}
{% do mariadb_dict.__setitem__('max-slowqueries-threshold', 1000) -%}
{% do mariadb_dict.__setitem__('max-slowqueries-threshold', 1000) -%}
...
...
stack/lamp/instance.cfg.in
View file @
977e0be4
...
@@ -49,6 +49,9 @@ url = {{ template_lamp }}
...
@@ -49,6 +49,9 @@ url = {{ template_lamp }}
filename = template-lamp.cfg
filename = template-lamp.cfg
extra-context =
extra-context =
section parameter_dict dynamic-template-lamp-parameters
section parameter_dict dynamic-template-lamp-parameters
raw db_name {{ db_name }}
raw db_user {{ db_user }}
raw db_passwd {{ db_password }}
[dynamic-template-apache-php-parameters]
[dynamic-template-apache-php-parameters]
application-location = {{ application_location }}
application-location = {{ application_location }}
...
...
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