ELNBuildSync: Use different config branch on staging

Also fix missing variable reference for the main role deployment
playbook.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

rh-pre-commit.version: 2.4.0
rh-pre-commit.check-secrets: ENABLED
This commit is contained in:
Stephen Gallagher 2026-06-10 16:40:18 -04:00 committed by James Antill
commit 92d93d29f0
3 changed files with 5 additions and 0 deletions

View file

@ -29,6 +29,7 @@
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- /srv/private/ansible/vars.yml
- /srv/web/infra/ansible/vars/apps/elnbuildsync.yml
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:

View file

@ -23,6 +23,7 @@ spec:
containers:
- name: elnbuildsync
image: "image-registry.openshift-image-registry.svc:5000/elnbuildsync/elnbuildsync:{{ ebs_upstream_ref }}"
args: ['--config-branch', "{{ (env == 'production') | ternary(ebs_config_branch, ebs_stg_config_branch) }}" ]
startupProbe:
httpGet:
path: /startup

View file

@ -4,3 +4,6 @@ ebs_upstream_ref: 1.1.0
ebs_db_user: elnbuildsync
ebs_db_name: elnbuildsync
ebs_config_branch: main
ebs_stg_config_branch: staging