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
f5c6253d
Commit
f5c6253d
authored
Feb 02, 2023
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/metabase: Add input parameters for password complexity.
parent
a2272d7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
software/metabase/buildout.hash.cfg
software/metabase/buildout.hash.cfg
+1
-1
software/metabase/instance-metabase-input-schema.json
software/metabase/instance-metabase-input-schema.json
+23
-0
software/metabase/instance.cfg.in
software/metabase/instance.cfg.in
+11
-0
No files found.
software/metabase/buildout.hash.cfg
View file @
f5c6253d
[instance-profile]
filename = instance.cfg.in
md5sum =
e0f4847f08e0062ea5a6ba492318afc7
md5sum =
0e109afd93153ecf062ad5e76bc86ea4
software/metabase/instance-metabase-input-schema.json
0 → 100644
View file @
f5c6253d
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"properties"
:
{
"mb_password_complexity"
:
{
"title"
:
"Password complexity"
,
"description"
:
"Check Metabase documentation for more details."
,
"type"
:
"string"
,
"default"
:
"normal"
,
"enum"
:
[
"weak"
,
"normal"
,
"strong"
,
]
},
"mb_password_length"
:
{
"title"
:
"Password length"
,
"description"
:
"Password length"
,
"type"
:
"integer"
,
"default"
:
6
,
}
}
}
software/metabase/instance.cfg.in
View file @
f5c6253d
...
...
@@ -25,6 +25,15 @@ fonts =
includes =
${fontconfig:location}/etc/fonts/conf.d
[slap-parameter]
recipe = slapos.recipe.build
slapparameter-dict = $${slap-configuration:configuration}
home = $${buildout:directory}
init =
default_parameters = options.get('slapparameter-dict')
options['mb_password_complexity'] = default_parameters.get('mb_password_complexity', 'normal')
options['mb_password_length'] = default_parameters.get('mb_password_length', 6)
[metabase-instance]
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:service}/$${:_buildout_section_name_}
...
...
@@ -46,6 +55,8 @@ environment =
MB_DB_USER=$${postgresql:superuser}
MB_DB_PASS=$${postgresql:password}
MB_DB_HOST=$${postgresql:ipv4}
MB_PASSWORD_COMPLEXITY=$${slap-parameter:mb_password_complexity}
MB_PASSWORD_LENGTH=$${slap-parameter:mb_password_length}
FONTCONFIG_FILE=$${fontconfig-conf:output}
JAVA_ARGS=-Dorg.quartz.scheduler.instanceId=$${slap-connection:computer-id}.$${slap-connection:partition-id} -Djava.io.tmpdir="$${directory:tmp}"
hash-existing-files =
...
...
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