constants: Move most paths to separate module
This is inpreparation for the implementation of virtual clusters. Many paths will change based on an environment variable and are no longer constant and should no longer be in “constants.py”. Since “constants.py” is already huge a number of other paths are also moved in the process. For now a wildcard import is used to re-export all paths from “constants.py” (this will change over coming patches). Daemon log paths have been changed to use a function. “RUN_GANETI_DIR” was moved to “RUN_DIR” as the latter was only used in “constants.py”. Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- Makefile.am 1 addition, 0 deletionsMakefile.am
- htools/Ganeti/Runtime.hs 2 additions, 3 deletionshtools/Ganeti/Runtime.hs
- lib/backend.py 2 additions, 2 deletionslib/backend.py
- lib/bootstrap.py 1 addition, 1 deletionlib/bootstrap.py
- lib/constants.py 5 additions, 101 deletionslib/constants.py
- lib/daemon.py 5 additions, 3 deletionslib/daemon.py
- lib/hypervisor/hv_chroot.py 1 addition, 1 deletionlib/hypervisor/hv_chroot.py
- lib/hypervisor/hv_fake.py 1 addition, 1 deletionlib/hypervisor/hv_fake.py
- lib/hypervisor/hv_kvm.py 1 addition, 1 deletionlib/hypervisor/hv_kvm.py
- lib/hypervisor/hv_lxc.py 1 addition, 1 deletionlib/hypervisor/hv_lxc.py
- lib/pathutils.py 135 additions, 0 deletionslib/pathutils.py
- lib/tools/ensure_dirs.py 6 additions, 5 deletionslib/tools/ensure_dirs.py
- lib/utils/io.py 1 addition, 1 deletionlib/utils/io.py
Loading
Please register or sign in to comment