Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
mediaserver
envsetup
Commits
f35b90d5
Commit
f35b90d5
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Changed readme.
parent
ad07d0fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+14
-6
14 additions, 6 deletions
README.md
envsetup.py
+1
-1
1 addition, 1 deletion
envsetup.py
with
15 additions
and
7 deletions
README.md
+
14
−
6
View file @
f35b90d5
...
@@ -9,11 +9,19 @@ Script to setup and configure softwares used in our servers.
...
@@ -9,11 +9,19 @@ Script to setup and configure softwares used in our servers.
## How to add a software setup
## How to add a software setup
*
Add a folder next to "envsetup.py" named using the following pattern: "
<number>
.
<name>
".
*
Add a folder next to "envsetup.py" named using the following pattern: "
<number>
.
<name>
".
The number should not be used by any other setup.
The number should not be used by any other setup.
*
Add a file named "0_setup.py" in this folder.
*
Add a the actions that have to be done in a function named "setup" in the "0_setup.py" file.
## Notes
*
Add a file named "0_setup.py" or "0_setup.sh" in this folder.
*
All the adjustable configurations must be in the "conf.py" file.
*
If the file you use is the python one ("0_setup.py"), you should add a function named setup in it.
*
The "setup" function should be non interactive.
The file will be run with python3.
For example:
```
python
def
setup
(
interactive
=
True
):
pass
```
## Important notes
*
All setup actions should be safe to be run multiple times (to allow reconfiguration of the service).
*
All the adjustable configurations must be in the "conf.sh" file.
This diff is collapsed.
Click to expand it.
envsetup.py
+
1
−
1
View file @
f35b90d5
...
@@ -91,7 +91,7 @@ class EnvSetup():
...
@@ -91,7 +91,7 @@ class EnvSetup():
log
(
'
c: Configuration status
'
)
log
(
'
c: Configuration status
'
)
log
(
'
e: Exit
\n
'
)
log
(
'
e: Exit
\n
'
)
log
(
'
Info:
'
)
log
(
'
Info:
'
)
log
(
'
\033
[0;36m To setup a system entirely for a determined purpose (Worker, MS, CM, ...), you
can
use the launcher:
\033
[0m
'
)
log
(
'
\033
[0;36m To setup a system entirely for a determined purpose (Worker, MS, CM, ...), you
should
use the launcher:
\033
[0m
'
)
log
(
'
\033
[0;36m bash /root/envsetup/launcher.sh
\033
[0m
'
)
log
(
'
\033
[0;36m bash /root/envsetup/launcher.sh
\033
[0m
'
)
log
(
'
\n
What action do you want to start ?
'
)
log
(
'
\n
What action do you want to start ?
'
)
try
:
try
:
...
...
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