fix(litellm): use UI_USERNAME and UI_PASSWORD env vars instead of LITELLM_ prefixed

This commit is contained in:
Haitao Pan 2026-06-11 22:33:35 +08:00
parent c22a8c8266
commit 21cbbca9be
2 changed files with 3 additions and 11 deletions

View File

@ -37,15 +37,7 @@
executable: /bin/bash
changed_when: false
- name: Apply schema.sql to litellm database
ansible.builtin.shell: |
# - name: Apply schema.sql to litellm database
# ansible.builtin.shell: |
# cat {{ litellm_config_dir }}/schema.sql | docker exec -i postgresql-svc-plus psql -U postgres -d {{ litellm_database_name }}
# args:
# executable: /bin/bash
# register: apply_schema_result
# changed_when: "'CREATE' in apply_schema_result.stdout | default('')"
- name: Grant schema privileges to user
ansible.builtin.shell: |

View File

@ -6,8 +6,8 @@ LOCAL_MODEL_API_KEY={{ litellm_local_model_api_key }}
AZURE_AI_API_KEY={{ lookup('ansible.builtin.env', 'AZURE_AI_API_KEY') | default('', true) }}
LITELLM_MASTER_KEY={{ litellm_master_key }}
LITELLM_SALT_KEY={{ litellm_salt_key }}
LITELLM_UI_USERNAME={{ litellm_ui_username }}
LITELLM_UI_PASSWORD={{ litellm_ui_password }}
UI_USERNAME={{ litellm_ui_username }}
UI_PASSWORD={{ litellm_ui_password }}
LITELLM_DB_PASSWORD={{ litellm_database_password }}
{% if litellm_database_url | trim | length > 0 %}
DATABASE_URL={{ litellm_database_url }}