Mission define the default Ansible variables to use
![Hackathon Task for ChRIS Mission](https://github.com/team19hackathon2021/team19-hackathon-2021/raw/master/static/png/image.png)
Your mission, should you choose to accept it, is define the default Ansible variables to use.
The day of the operation is October 26th, 2021
You will have 4 hours to complete your mission.
ChRIS is a pervasively open source platform that utilizes cloud technologies to democratize medical analytics application development. It enables healthcare organizations to keep owning their data while benefiting from public cloud processing capabilities. ChRIS is developed as part of a collaborative effort between Boston Children’s Hospital, Red Hat, Boston University, and the Mass Open Cloud (MOC). ChRIS allows researchers the ability to simply deploy their applications in a cloud infrastructure with access to more data, more compute, and more collaboration to drive medical innovation. ChRIS uses leading open source technologies to standardize cloud-based healthcare application development, taking care of the infrastructure so medical researchers can focus on their data.
You will be joining a team of the boldest
of all Red Hatters for this mission, who will be at your service developing the code and automating the deployment to OpenShift.
- Should you, or any of your force be taken or compromised that day, you must report back as many changes as you have made, and any knowledge of your actions, by pull request or comments on the issue on the board.
How to get started:
Follow the instructions here to setup the project: https://github.com/team19hackathon2021/ChRIS_ultron_backEnd/tree/master/ansible
The details of your mission:
Define the main application variables.
Create a new file: /usr/local/src/ChRIS_ultron_backEnd/ansible/roles/chris_defaults/defaults/main.yml
---
# Define the main application variables.
APP_NAME: ChRIS
APP_POD: "{{ APP_NAME }}_pod"
APP_NETWORK: "ChRIS"
APP_PYTHON: "{{ '/usr/bin/python' if lookup('file', '/usr/bin/python', errors='ignore') else '/usr/bin/python3' }}"
APP_SRC: "/usr/local/src/ChRIS_ultron_backEnd"
APP_OPT: "/opt/{{ APP_NAME }}"
APP_VAR: "/var/{{ APP_NAME }}"
APP_DATA: "{{ APP_VAR }}/data"
APP_DEV_DB_DATA: "{{ APP_SRC }}/chris_dev_db_data"
APP_STORE_DB_DATA: "{{ APP_SRC }}/chris_store_db_data"
APP_SWIFT_DATA: "{{ APP_SRC }}/swift_storage_dev"
APP_QUEUE_DATA: "{{ APP_SRC }}/queue_data"
APP_BACKEND_DATA: "{{ APP_SRC }}/chris_backend"
APP_CONF: "{{ APP_OPT }}/conf/zoo.cfg"
APP_REPO: "https://github.com/FNNDSC/ChRIS_ultron_backEnd.git"
APP_VERSION:
APP_TAG: ""
APP_USER: "root"
APP_SECRET_KEY: "w1kxu^l=@pnsf!5piqz6!!5kdcdpo79y6jebbp+2244yjm*#+k"
APP_SUPER_USER_NAME: rudolph
APP_SUPER_USER_PASSWORD: rudolph1234
APP_SUPER_USER_EMAIL: [email protected]
Define the pman application variables.
# Define the pman application variables.
PMAN_NAME: "{{ APP_NAME }}_pman"
PMAN_POD: "{{ APP_NAME }}_pod"
PMAN_HOSTNAME: "localhost"
PMAN_IMAGE: "docker.io/computate/pman"
PMAN_VERSION: "latest"
PMAN_SERVICE: "{{ PMAN_NAME }}"
PMAN_SYSTEMD: "/usr/lib/systemd/system/{{ PMAN_SERVICE }}.service"
PMAN_SRC: "/usr/local/src/pman"
PMAN_REPO: "[email protected]:FNNDSC/pman.git"
PMAN_PORT: "5010"
Define the pfcon application variables.
# Define the pfcon application variables.
PFCON_NAME: "{{ APP_NAME }}_pfcon"
PFCON_POD: "{{ APP_NAME }}_pod"
PFCON_HOSTNAME: "localhost"
PFCON_IMAGE: "fnndsc/pfcon"
PFCON_VERSION: "latest"
PFCON_SERVICE: "{{ PFCON_NAME }}"
PFCON_SYSTEMD: "/usr/lib/systemd/system/{{ PFCON_SERVICE }}.service"
PFCON_SRC: "/usr/local/src/pfcon"
PFCON_REPO: "[email protected]:FNNDSC/pfcon.git"
PFCON_PORT: "30005"
Define the dev application variables.
# Define the dev application variables.
DEV_NAME: "{{ APP_NAME }}_dev"
DEV_POD: "{{ APP_NAME }}_pod"
DEV_HOSTNAME: "localhost"
DEV_IMAGE: "fnndsc/chris"
DEV_VERSION: "dev"
DEV_SERVICE: "{{ DEV_NAME }}"
DEV_SYSTEMD: "/usr/lib/systemd/system/{{ DEV_SERVICE }}.service"
DEV_PORT: "8000"
Define the dev database application variables.
# Define the dev database application variables.
DEV_DB_NAME: "{{ APP_NAME }}_dev_db"
DEV_DB_POD: "{{ APP_NAME }}_pod"
DEV_DB_HOSTNAME: "localhost"
DEV_DB_IMAGE: "postgres"
DEV_DB_VERSION: "13"
DEV_DB_SERVICE: "{{ DEV_DB_NAME }}"
DEV_DB_SYSTEMD: "/usr/lib/systemd/system/{{ DEV_DB_SERVICE }}.service"
DEV_DB_PORT: "5432"
DEV_DB_DATABASE: "chris_dev"
DEV_DB_USER: "chris"
DEV_DB_PASSWORD: "Chris1234"
DEV_DB_BECOME_USER: "{{ DEV_DB_USER }}"
DEV_DB_BECOME_PASSWORD: "{{ DEV_DB_PASSWORD }}"
Define the store database application variables.
# Define the store database application variables.
STORE_DB_DATABASE: "chris_store"
STORE_DB_USER: "chris"
STORE_DB_PASSWORD: "Chris1234"
Define the swift storage application variables.
# Define the swift storage application variables.
SWIFT_NAME: "{{ APP_NAME }}_swift"
SWIFT_POD: "{{ APP_NAME }}_pod"
SWIFT_HOSTNAME: "localhost"
SWIFT_IMAGE: "fnndsc/docker-swift-onlyone"
SWIFT_VERSION: "latest"
SWIFT_SERVICE: "{{ SWIFT_NAME }}"
SWIFT_SYSTEMD: "/usr/lib/systemd/system/{{ SWIFT_SERVICE }}.service"
SWIFT_USERNAME: "chris:chris1234"
SWIFT_KEY: "testing"
SWIFT_PORT: "8080"
Define the RabbitMQ queue application variables.
# Define the RabbitMQ queue application variables.
QUEUE_NAME: "{{ APP_NAME }}_queue"
QUEUE_POD: "{{ APP_NAME }}_pod"
QUEUE_HOSTNAME: "localhost"
QUEUE_IMAGE: "rabbitmq"
QUEUE_VERSION: "3"
QUEUE_SERVICE: "{{ QUEUE_NAME }}"
QUEUE_SYSTEMD: "/usr/lib/systemd/system/{{ QUEUE_SERVICE }}.service"
Define the ChRIS store application variables.
# Define the ChRIS store application variables.
STORE_NAME: "{{ APP_NAME }}_store"
STORE_POD: "{{ APP_NAME }}_pod"
STORE_HOSTNAME: "localhost"
STORE_IMAGE: "fnndsc/chris_store"
STORE_VERSION: "latest"
STORE_SERVICE: "{{ STORE_NAME }}"
STORE_SYSTEMD: "/usr/lib/systemd/system/{{ STORE_SERVICE }}.service"
STORE_PORT: "8010"
Define the scheduler application variables.
# Define the scheduler application variables.
SCHEDULER_NAME: "{{ APP_NAME }}_scheduler"
SCHEDULER_POD: "{{ APP_NAME }}_pod"
SCHEDULER_HOSTNAME: "localhost"
SCHEDULER_IMAGE: "fnndsc/chris"
SCHEDULER_VERSION: "dev"
SCHEDULER_SERVICE: "{{ SCHEDULER_NAME }}"
SCHEDULER_SYSTEMD: "/usr/lib/systemd/system/{{ SCHEDULER_SERVICE }}.service"
Define the worker periodic application variables.
# Define the worker periodic application variables.
WORKER_PERIODIC_NAME: "{{ APP_NAME }}_worker_periodic"
WORKER_PERIODIC_POD: "{{ APP_NAME }}_pod"
WORKER_PERIODIC_HOSTNAME: "localhost"
WORKER_PERIODIC_IMAGE: "fnndsc/chris"
WORKER_PERIODIC_VERSION: "dev"
WORKER_PERIODIC_SERVICE: "{{ WORKER_PERIODIC_NAME }}"
WORKER_PERIODIC_SYSTEMD: "/usr/lib/systemd/system/{{ WORKER_PERIODIC_SERVICE }}.service"
Define the worker application variables.
# Define the worker application variables.
WORKER_NAME: "{{ APP_NAME }}_worker"
WORKER_POD: "{{ APP_NAME }}_pod"
WORKER_HOSTNAME: "localhost"
WORKER_IMAGE: "fnndsc/chris"
WORKER_VERSION: "dev"
WORKER_SERVICE: "{{ WORKER_NAME }}"
WORKER_SYSTEMD: "/usr/lib/systemd/system/{{ WORKER_SERVICE }}.service"
Define the ChRIS UI application variables.
# Define the ChRIS UI application variables.
UI_NAME: "ChRIS_ui"
UI_REPO: "[email protected]:FNNDSC/ChRIS_ui.git"
UI_SRC: "/usr/local/src/{{ UI_NAME }}"
UI_POD: "{{ APP_NAME }}_pod"
UI_HOSTNAME: "localhost"
UI_IMAGE: "fnndsc/chris_ui"
UI_VERSION: "dev"
UI_SERVICE: "{{ UI_NAME }}"
UI_SYSTEMD: "/usr/lib/systemd/system/{{ UI_SERVICE }}.service"
UI_PORT: "3000"
UI_DATA: "{{ UI_SRC }}"
Define the Podman TCP related application variables.
# Define the Podman TCP related application variables.
##############
# Podman TCP #
##############
PODMAN_TCP_NAME: "podman_tcp"
PODMAN_TCP_SERVICE: "{{ PODMAN_TCP_NAME }}"
PODMAN_TCP_SYSTEMD: "/usr/lib/systemd/system/{{ PODMAN_TCP_SERVICE }}.service"
PODMAN_IP_ADDRESS: "{{ lookup('env', 'HOSTNAME') }}"
PODMAN_TCP_PORT: 5000
Define other Ansible related application variables.
# Define other Ansible related application variables.
####################
# Ansible defaults #
####################
# Add to an ansible-vault the username of your user on your computer (echo $HOSTNAME).
USER_NAME: "{{ lookup('env', 'USER') }}"
![This message will not self-destruct. This message will not self-destruct.](https://camo.githubusercontent.com/66adad374ae69aa5ecdacff128de27a48ada944e0c7e37d2d3b5b513357f9d71/68747470733a2f2f636f6d7075746174652e6e656f6369746965732e6f72672f706e672f6d697373696f6e2d696d706f737369626c652d6d6573736167652e706e67)
This message will not self destruct, because this project is open source.