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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
8f05cb4e
Commit
8f05cb4e
authored
Jan 23, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/lamp: Generate random mariadb password
parent
9cff5df8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+0
-2
stack/lamp/buildout.hash.cfg
stack/lamp/buildout.hash.cfg
+1
-1
stack/lamp/instance.cfg.in
stack/lamp/instance.cfg.in
+5
-2
No files found.
stack/lamp/buildout.cfg
View file @
8f05cb4e
...
@@ -63,7 +63,6 @@ part-list =
...
@@ -63,7 +63,6 @@ part-list =
# database information
# database information
db-name = lamp
db-name = lamp
db-user = lamp
db-user = lamp
db-password = insecure
#----------------
#----------------
#-- Instance-level buildout profiles.
#-- Instance-level buildout profiles.
...
@@ -114,7 +113,6 @@ context =
...
@@ -114,7 +113,6 @@ context =
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_name custom-application-deployment:db-name
key db_user custom-application-deployment:db-user
key db_user custom-application-deployment:db-user
key db_password custom-application-deployment:db-password
key lamp_apache_httpd template-apache-httpd:target
key lamp_apache_httpd template-apache-httpd:target
[instance-apache-php]
[instance-apache-php]
...
...
stack/lamp/buildout.hash.cfg
View file @
8f05cb4e
...
@@ -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 =
603d03f43ea04e95237c80d3b9e72ba7
md5sum =
7854dd0edd48f2d91c16412c4a875ca4
[instance-apache-php]
[instance-apache-php]
filename = instance-apache-php.cfg.in
filename = instance-apache-php.cfg.in
...
...
stack/lamp/instance.cfg.in
View file @
8f05cb4e
...
@@ -40,8 +40,11 @@ context =
...
@@ -40,8 +40,11 @@ context =
${:extra-context}
${:extra-context}
[dynamic-template-lamp-parameters]
[mariadb-password]
recipe = slapos.cookbook:generate.password
[dynamic-template-lamp-parameters]
[dynamic-template-lamp]
[dynamic-template-lamp]
<= jinja2-template-base
<= jinja2-template-base
...
@@ -51,7 +54,7 @@ extra-context =
...
@@ -51,7 +54,7 @@ extra-context =
section parameter_dict dynamic-template-lamp-parameters
section parameter_dict dynamic-template-lamp-parameters
raw db_name {{ db_name }}
raw db_name {{ db_name }}
raw db_user {{ db_user }}
raw db_user {{ db_user }}
raw db_password {{ db_password }}
key db_password mariadb-password:passwd
[dynamic-template-apache-php-parameters]
[dynamic-template-apache-php-parameters]
{% if application_archive_root %}
{% if application_archive_root %}
...
...
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