From 2326ab1da94031e7d4db4d67933fd72f6cfdf2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Tue, 27 Sep 2022 12:15:41 +0200 Subject: [PATCH] [release-monitoring] Scripts are named differently in poetry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Poetry creates it's own script file in /usr/local/ and the name is without .py. Reflect that in ansible. Signed-off-by: Michal Konečný --- playbooks/openshift-apps/release-monitoring.yml | 2 +- .../{files => templates}/deploymentconfig.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) rename roles/openshift-apps/release-monitoring/{files => templates}/deploymentconfig.yml (97%) diff --git a/playbooks/openshift-apps/release-monitoring.yml b/playbooks/openshift-apps/release-monitoring.yml index 482114f254..15923f45cc 100644 --- a/playbooks/openshift-apps/release-monitoring.yml +++ b/playbooks/openshift-apps/release-monitoring.yml @@ -59,7 +59,7 @@ objectname: route.yml - role: openshift/object app: release-monitoring - file: deploymentconfig.yml + template: deploymentconfig.yml objectname: deploymentconfig.yml - role: openshift/rollout app: release-monitoring diff --git a/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml b/roles/openshift-apps/release-monitoring/templates/deploymentconfig.yml similarity index 97% rename from roles/openshift-apps/release-monitoring/files/deploymentconfig.yml rename to roles/openshift-apps/release-monitoring/templates/deploymentconfig.yml index 540acaf466..35742ae970 100644 --- a/roles/openshift-apps/release-monitoring/files/deploymentconfig.yml +++ b/roles/openshift-apps/release-monitoring/templates/deploymentconfig.yml @@ -139,7 +139,11 @@ items: command: - python3 args: +{% if env == 'staging' %} + - /usr/local/bin/check_service +{% else %} - /usr/local/bin/check_service.py +{% endif %} env: - name: ANITYA_WEB_CONFIG value: /etc/anitya/anitya.toml @@ -227,7 +231,11 @@ items: command: - python3 args: +{% if env == 'staging' %} + - /usr/local/bin/librariesio_consumer +{% else %} - /usr/local/bin/librariesio_consumer.py +{% endif %} env: - name: ANITYA_WEB_CONFIG value: /etc/anitya/anitya.toml