Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment Client
Commits
2dad2153
Commit
2dad2153
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
upadte readme
parent
280e27d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
readme.md
+49
-0
49 additions, 0 deletions
readme.md
with
49 additions
and
0 deletions
readme.md
+
49
−
0
View file @
2dad2153
...
@@ -150,6 +150,55 @@ This is the main deployment script.
...
@@ -150,6 +150,55 @@ This is the main deployment script.
If you start it without parameter it will loop over all existing profiles.
If you start it without parameter it will loop over all existing profiles.
You can add an existing profile name to limit the execution to that profile only.
You can add an existing profile name to limit the execution to that profile only.
### ./bin/create_config.sh
The script is used to read a template (
*
.erb) to replace simple placeholders
by regex
`<\%\=\ *\@replace\[\"$key\"\]\ *\%>`
with a value coming from one or more
replacement data files. The output will be written to a target file.
```
txt
===== IML DEPLOYMENT :: replace variables in erb syntax =====
template :
output :
replacements: replace*.txt
ERROR: missing params.
create_config.sh TEMPLATE-FILE OUTFILE [optional: REPLACE-DATA-FILE]
```
A sample replacement file is profiles/example/replace.txt:
```
txt
# ----------------------------------------------------------------------
# REPLACEMENTS
# ----------------------------------------------------------------------
#
# SYNTAX:
# key=value
#
# - no spaces around first "="
# - value can contain any char, no quoting
# ----------------------------------------------------------------------
dbhost=localhost
dbuser=fred
dbpassword=vom-jupiter
dbport=3306
api-key=12345678
# ----------------------------------------------------------------------
```
The idea for several replacent files is that different groups can set
their replacement data:
*
sysadmins add connections and credentials to needed services/ database connections
*
developers add api keys and other internal values
*
...
### ./bin/getfile.sh
### ./bin/getfile.sh
With getfile.sh you can access the software archive.
With getfile.sh you can access the software archive.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment