No description
Find a file
Setyo Nugroho 3b50557a6a fix setup
2023-10-03 01:02:04 +07:00
yuyu fix: Fix list project 2023-10-03 00:38:41 +07:00
yuyu_demo Yuyu demo dashboard 2023-10-02 23:10:35 +07:00
.gitignore initial commit 2022-05-13 14:01:58 +07:00
CHANGELOG.txt Add multi region support 2022-11-01 02:19:44 +07:00
README.md Add multi region support 2022-11-01 02:19:44 +07:00
remove_yuyu.sh Add Balance Feature 2023-03-08 14:45:30 +07:00
remove_yuyu_demo.sh Yuyu demo dashboard 2023-10-02 23:10:35 +07:00
requirements.txt - Billing Setting form description 2022-09-20 06:05:57 +07:00
setup_yuyu.sh Add Balance Feature 2023-03-08 14:45:30 +07:00
setup_yuyu_demo.sh fix setup 2023-10-03 01:02:04 +07:00

Yuyu

Setup

Make sure you know where Horizon is located

Run this command

./setup_yuyu.sh

Enter horizon location and press ENTER.

Activate Horzon Virtual Environment if exist.

Install Yuyu Dashboard Depencencies with

pip3 install -r requirements.txt

Add this config to your horizon local_settings.py

YUYU_URL="http://yuyu_server_url:8182"
CURRENCIES = ('IDR',)
DEFAULT_CURRENCY = "IDR"

Then restart Horizon.

Multi Region

If your openstack using multiple region, and each region have its own Yuyu server, you can specify Yuyu server URL for each region.

To do that, you can add YUYU_URL_REGION to horizon local_settings.py

YUYU_URL_REGION is a list of tuples which define a mapping from region name (as in horizon AVAILABLE_REGIONS) to Yuyu URL for each. The tuple format is ('{{ region_name }}', 'http://{yuyu_url}').

For example:

# Example AVAILABLE_REGIONS settings

AVAILABLE_REGIONS = [
    ("https://172.12.12.10:5000/v3", 'US'),
    ("https://172.12.12.11:5000/v3", 'Singapore')
]

# Set Yuyu URL for each region
YUYU_URL_REGION = [
    ('US', 'http://region_a_yuyu_server_url:8182'),
    ('Singapore', 'http://region_b_yuyu_server_url:8182'),
]