From 63cecaaf9d8f95e647924088e4d3fe427f402a00 Mon Sep 17 00:00:00 2001 From: Jonathan S Berry Date: Thu, 19 Dec 2024 11:07:05 +0000 Subject: [PATCH] Get rid of deprecated api key --- roles/ckan/defaults/main.yml | 2 +- roles/ckan/templates/kubernetes/ckan_cronjob.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ckan/defaults/main.yml b/roles/ckan/defaults/main.yml index e62c521..a892b7d 100644 --- a/roles/ckan/defaults/main.yml +++ b/roles/ckan/defaults/main.yml @@ -14,7 +14,7 @@ ckan_debug_enabled: "false" fjelltopp_base_image: "fjelltopp/ubuntu:base" -ckan_sysadmin_api_key: dummyvalue +ckan_admin_api_token: dummyvalue ckan_recaptcha_publickey: "" ckan_recaptcha_privatekey: "" diff --git a/roles/ckan/templates/kubernetes/ckan_cronjob.yaml b/roles/ckan/templates/kubernetes/ckan_cronjob.yaml index a024801..9a5e4fe 100644 --- a/roles/ckan/templates/kubernetes/ckan_cronjob.yaml +++ b/roles/ckan/templates/kubernetes/ckan_cronjob.yaml @@ -14,8 +14,8 @@ spec: image: {{ fjelltopp_base_image }} command: ['bash', '-c'] args: - - "curl -rl -X POST -H 'Authorization: {{ ckan_sysadmin_api_key }}' {{ ckan_site_url }}/api/action/send_email_notifications; - curl -rl -X POST -H 'Authorization: {{ ckan_sysadmin_api_key }}' {{ ckan_site_url }}/api/action/send_phone_notifications" + - "curl -rl -X POST -H 'Authorization: {{ ckan_admin_api_token }}' {{ ckan_site_url }}/api/action/send_email_notifications;" + - "curl -rl -X POST -H 'Authorization: {{ ckan_admin_api_token }}' {{ ckan_site_url }}/api/action/send_phone_notifications;" restartPolicy: Never