conference-website/playbooks/vars_common.yaml
Anna Sirota 4052fe9548 Playbooks: switch to Python 3.10
Upgrading to Python 3.10 lead to the following changes:

* Python's builtin `venv` is used instead of `virtualenv`:
    `python3-virtualenv` is packaged incorrectly making it impossible to
    use with Python binaries from ppa:deadsnakes,
    see https://github.com/pre-commit/pre-commit/issues/2211#issuecomment-1013954780

* uWSGI installed in the venv is used instead of OS-wide installed
2024-01-08 12:40:29 +01:00

58 lines
1.6 KiB
YAML

domain: staging.conference.blender.org
port: 8030
host: web-1.internal
project_name: Blender Conference
project_slug: blender-conference
service_name: "{{ project_slug }}-{{ env }}"
background_service_name: '{{ service_name }}-background.service'
django_settings_module: conference.settings
uwsgi_module: conference.wsgi:application
uwsgi_version: "2.0.23"
python_version: "3.10"
poetry_version: "1.4.2"
delete_venv: false # set to true if venv has to be re-created from scratch
dir:
source: "/opt/{{ service_name }}"
static: "/var/www/{{ service_name }}/static"
media: "/var/www/{{ service_name }}/media"
errors: "/var/www/{{ service_name }}/html/errors"
env_file: "{{ dir.source }}/.env"
uwsgi_pid: "{{ dir.source }}/{{ service_name }}.pid"
nginx:
user: www-data
group: www-data
nginx_conf_dir: /etc/nginx
user: "bconf-{{ env }}"
group: "{{ nginx.group }}"
mailto: cron@blender.org
certbot:
email: root@blender.org
source_url: https://projects.blender.org/infrastructure/{{ project_slug }}.git
branch: production
email:
host: proog.blender.org
port: 25
default_from: noreply@{{ domain }}
db_user: conference_staging
db_name: conference_staging
db_host: db-postgres-2.internal
# db_password: 'SET-PER-ENV-ENCRYPTED'
blender_id_url: https://id.blender.org/
blender_id_oauth_client: 'CHANGE-ME-IN-SETTINGS-PY'
blender_id_oauth_secret: 'CHANGE-ME-IN-SETTINGS-PY'
# The following variables should be encrypted with Ansible Vault
# and stored in environments/<env>/group_vars/all/99_vault.yaml.
# These should only be needed during first time use of `install.yaml`.
# sentry_dsn:
# (for staging only) allowed_ips: