Skip to content

Commit

Permalink
Replace db with db_host
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvanes committed Nov 3, 2023
1 parent 30513ca commit 743f427
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environments/vm/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ services_ldap:
o: "Services"
binddn: "cn=admin,dc=services,dc=vnet"

db_host: "{{ groups['db'][0] }}"
db_host: "db"
sbs_db_name: "sbs"
sbs_db_user: "sbs"

Expand Down
2 changes: 1 addition & 1 deletion roles/docker_sbs/templates/alembic.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ script_location = migrations
# are written from script.py.mako
# output_encoding = utf-8

sqlalchemy.url = mysql+mysqldb://{{ sbs_migration_user }}:{{ sbs_migration_password | percent_escape }}@db/{{ sbs_db_name }}?ssl=true&ssl_ca={{sbs_cert_dir}}/backend.crt&charset=utf8mb4
sqlalchemy.url = mysql+mysqldb://{{ sbs_migration_user }}:{{ sbs_migration_password | percent_escape }}@{{ db_host }}/{{ sbs_db_name }}?ssl=true&ssl_ca={{sbs_cert_dir}}/backend.crt&charset=utf8mb4


# Logging configuration
Expand Down
2 changes: 1 addition & 1 deletion roles/docker_sbs/templates/config.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
database:
uri: "mysql+mysqldb://{{ sbs_db_user }}:{{ sbs_db_password }}@db/{{ sbs_db_name }}?ssl=true&ssl_ca={{sbs_cert_dir}}/backend.crt&charset=utf8mb4"
uri: "mysql+mysqldb://{{ sbs_db_user }}:{{ sbs_db_password }}@{{ db_host }}/{{ sbs_db_name }}?ssl=true&ssl_ca={{sbs_cert_dir}}/backend.crt&charset=utf8mb4"

# Lifetime of session in minutes (one day is 60 * 24)
permanent_session_lifetime: 1440
Expand Down

0 comments on commit 743f427

Please sign in to comment.