File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66/usr/local/bin/sentry-checkin.sh :
77 file.managed :
8- - source: salt://base/scripts/sentry-checkin.sh
8+ - source: salt://base/scripts/sentry-checkin.sh.jinja
9+ - template: jinja
910 - mode: ' 0755'
1011 - user: root
1112 - group: root
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- MINION_ID=$( salt-call --local grains.get id --out=newline_values_only )
4- SENTRY_INGEST_URL=$( salt-call pillar.get secrets:sentry:ingest_url --out=newline_values_only )
5- SENTRY_PROJECT_ID=$( salt-call pillar.get secrets:sentry:project_id --out=newline_values_only )
6- SENTRY_PROJECT_KEY=$( salt-call pillar.get secrets:sentry:project_key --out=newline_values_only )
3+ MINION_ID=" {{ grains['id'] }} "
4+ SENTRY_INGEST_URL=" {{ pillar.get(' secrets:sentry:ingest_url', '') }} "
5+ SENTRY_PROJECT_ID=" {{ pillar.get(' secrets:sentry:project_id', '') }} "
6+ SENTRY_PROJECT_KEY=" {{ pillar.get(' secrets:sentry:project_key', '') }} "
77
88MONITOR_SLUG=" salt-highstate-${MINION_ID// ./ } "
99
You can’t perform that action at this time.
0 commit comments