This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic/autonomic/config.py

33 lines
851 B
Python
Raw Normal View History

2020-04-11 19:10:29 +00:00
"""Tool configuration."""
2020-04-11 21:56:38 +00:00
from getpass import getuser
2020-04-11 19:10:29 +00:00
# current user
2020-04-11 21:56:38 +00:00
WHOAMI = getuser()
2020-04-11 19:10:29 +00:00
# home directory of the current user
HOME_DIR = "/home/{}".format(WHOAMI)
2020-04-11 19:10:29 +00:00
# configuration directory for the toolbelt
CONFIG_DIR = "{}/.autonomic".format(HOME_DIR)
2020-04-11 19:10:29 +00:00
# SSH url for our infrastructure repository
INFRA_REPO = (
"ssh://git@git.autonomic.zone:222/autonomic-cooperative/infrastructure.git"
)
2020-04-11 19:10:29 +00:00
# infrastructure directory
INFRA_DIR = "{}/infrastructure".format(CONFIG_DIR)
2020-04-11 19:10:29 +00:00
# list of autonomic members yaml file
MEMBERS_YAML = "{}/resources/members.yml".format(INFRA_DIR)
2020-04-11 19:10:29 +00:00
# directory where we store our ansible action plays
ACTIONS_DIR = "{}/actions".format(INFRA_DIR)
2020-04-11 19:10:29 +00:00
# toolbelt configuration file
CONFIG_YAML = "{}/autonomic.yml".format(CONFIG_DIR)
2020-04-11 19:10:29 +00:00
# password store directory
PASS_STORE_DIR = "{}/credentials/password-store".format(INFRA_DIR)