Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't update sentry release in formplayer application.properties during update-config #6395

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/commcare_cloud/ansible/roles/formplayer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@
- formplayer_deploy
when: not _should_update_formplayer_in_place and current_stat.stat.exists

- name: Get current formplayer release
shell: "basename $(readlink {{ formplayer_current_dir }})-{{ env_monitoring_id }}"
check_mode: no
register: current_release_result
tags:
- localsettings
- formplayer_deploy

- name: Update formplayer config files
become: yes
template:
Expand All @@ -179,6 +187,8 @@
filename: application.properties
- template: logback-spring.xml.j2
filename: logback-spring.xml
vars:
formplayer_current_release_name: "{{ current_release_result.stdout }}"
tags:
- localsettings
- formplayer_deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sentry.dsn={{ formplayer_sentry_dsn }}
{% endif %}
sentry.environment={{ env_monitoring_id }}
sentry.tags.HQHost={{ host }}
sentry.release={{ formplayer_release_name }}
sentry.release={{ formplayer_current_release_name if _should_update_formplayer_in_place else formplayer_release_name }}

spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://{{ postgresql_dbs.formplayer.pgbouncer_endpoint }}:{{ postgresql_dbs.formplayer.port
Expand Down
Loading