Upgrade to 23.6.2

This commit is contained in:
sonny 2024-08-05 19:59:48 +02:00
parent f3f4733241
commit 8c59dc3069
3 changed files with 35 additions and 31 deletions

View file

@ -34,32 +34,34 @@
- { src: 'templates/sentry.conf.j2', dest: '{{ app_dir }}/sentry/sentry.conf.py' } - { src: 'templates/sentry.conf.j2', dest: '{{ app_dir }}/sentry/sentry.conf.py' }
- { src: 'templates/sentry.config.j2', dest: '{{ app_dir }}/sentry/config.yml' } - { src: 'templates/sentry.config.j2', dest: '{{ app_dir }}/sentry/config.yml' }
- name: stop running containers - block:
docker_compose: - name: stop running containers
project_src: '{{ app_dir }}' docker_compose:
env_file: '{{ app_dir }}/.env' project_src: '{{ app_dir }}'
state: absent env_file: '{{ app_dir }}/.env'
state: absent
# Note: run `docker-compose run --rm web export > backup.json` before upgrading
# TODO: tag other sentry images aswell # Note: run `docker-compose run --rm web export > backup.json` before upgrading
# can be ran multiple times to upgrade sentry # TODO: tag other sentry images aswell
- name: run sentry installer # can be ran multiple times to upgrade sentry
command: './install.sh' - name: run sentry installer
args: command: './install.sh'
chdir: '{{ app_dir }}' args:
environment: chdir: '{{ app_dir }}'
SENTRY_IMAGE: 'getsentry/sentry:{{ app_branch }}' environment:
SENTRY_BIND: '{{ bind_address }}' SENTRY_IMAGE: 'getsentry/sentry:{{ app_branch }}'
REPORT_SELF_HOSTED_ISSUES: 0 SENTRY_BIND: '{{ bind_address }}'
register: installer_output REPORT_SELF_HOSTED_ISSUES: 0
register: installer_output
- name: log installer output
debug: - name: log installer output
var: installer_output.stdout_lines debug:
var: installer_output.stdout_lines
- name: start sentry
docker_compose: - name: start sentry
project_src: '{{ app_dir }}' docker_compose:
# Note: docker-compose versions <=1.28 load the env file from the current working project_src: '{{ app_dir }}'
# directory of the docker-compose command rather than project_src. # Note: docker-compose versions <=1.28 load the env file from the current working
env_file: '{{ app_dir }}/.env' # directory of the docker-compose command rather than project_src.
env_file: '{{ app_dir }}/.env'
when: manage_docker is true

View file

@ -1,4 +1,4 @@
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} # {{ ansible_managed }}
# #
# This file is just Python, with a touch of Django which means # This file is just Python, with a touch of Django which means
# you can inherit and tweak settings to your hearts content. # you can inherit and tweak settings to your hearts content.

View file

@ -1,11 +1,13 @@
# Can either use a port number or an IP:PORT combo, see SENTRY_BIND # Can either use a port number or an IP:PORT combo, see SENTRY_BIND
bind_address: '9000' bind_address: '9000'
manage_docker: false
app_name: 'sentry' app_name: 'sentry'
app_dir: '/srv/docker/sentry' app_dir: '/srv/docker/sentry'
app_url: 'https://sentry.fudiggity.nl' app_url: 'https://sentry.fudiggity.nl'
app_repository: 'https://github.com/getsentry/onpremise.git' app_repository: 'https://github.com/getsentry/onpremise.git'
app_branch: '23.2.0' app_branch: '23.6.2'
app_user: 'sonny' app_user: 'sonny'
app_key: !vault | app_key: !vault |