Skip to content
Snippets Groups Projects
user avatar
Nicolas KAROLAK authored
commit d37f6bd9bd6a932f7ed82e3b9d522848e8fe0fe0
Author: Nicolas KAROLAK <nicolas@karolak.fr>
Date:   Mon Jul 8 09:07:08 2019 +0000

    add flag to base64 enconding
59036730
History

EnvSetup

Script to setup and configure softwares used in our servers.

Dependencies

  • python3

How to add a software setup

  • Add a folder next to "envsetup.py" named using the following pattern: ".". The number should not be used by any other setup.

  • Add a file named "0_setup.py" or "0_setup.sh" in this folder.

  • If the file you use is the python one ("0_setup.py"), you should add a function named setup in it. The file will be run with python3. For example:

    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.

Test EnvSetup loading

Two fake tasks are used to test that EnvSetup can correctly be loaded.

These tasks can be started with the following commands:

./envsetup.py -d 201
./envsetup.py -d 202