Skip to content
Snippets Groups Projects
Commit f35b90d5 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed readme.

parent ad07d0fa
No related branches found
No related tags found
No related merge requests found
...@@ -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.
...@@ -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('\nWhat action do you want to start ?') log('\nWhat action do you want to start ?')
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment