From 66af2e33a54853c281d0821e7b3e1a26527e55f6 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Wed, 9 Oct 2024 13:00:40 -0400 Subject: [PATCH] expose fastly purge configuration for docsbuild --- pillar/dev/secrets/docs.sls | 3 +++ salt/docs/init.sls | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/pillar/dev/secrets/docs.sls b/pillar/dev/secrets/docs.sls index 7ea7d12e..1dde112a 100644 --- a/pillar/dev/secrets/docs.sls +++ b/pillar/dev/secrets/docs.sls @@ -1,3 +1,6 @@ docs: sentry: dsn: https://deadbeefdeadbeefdeadbeefdeadbeef@sentry.io/6666666 + fastly: + service_id: deadbeefdeadbeefdead + token: deadbeefdeadbeefdeadbeefdeadbeef diff --git a/salt/docs/init.sls b/salt/docs/init.sls index 6cb56a3a..0191d31d 100644 --- a/salt/docs/init.sls +++ b/salt/docs/init.sls @@ -78,6 +78,18 @@ docsbuild-sentry: - name: SENTRY_DSN - value: {{ pillar.get('docs', {}).get('sentry', {}).get('dsn', '') }} +docsbuild-fastly-service-id: + cron.env_present: + - user: docsbuild + - name: FASTLY_SERVICE_ID + - value: {{ pillar.get('docs', {}).get('fastly', {}).get('service_id', '') }} + +docsbuild-fastly-token: + cron.env_present: + - user: docsbuild + - name: FASTLY_TOKEN + - value: {{ pillar.get('docs', {}).get('fastly', {}).get('token', '') }} + docsbuild-no-html: cron.present: - identifier: docsbuild-no-html