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