Skip to content

Commit

Permalink
Use US OAuth urls instead of EU (#1116)
Browse files Browse the repository at this point in the history
IAM doesn't have system-identity-oauth in EU. There are no instances of system identity oauth running in EU.
This change can be permanent.
  • Loading branch information
davidgit authored Sep 6, 2024
1 parent b3e8952 commit fa351d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions recipes/newrelic/infrastructure/super-agent/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ install:
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.staging-service.newrelic.com/oauth2/token
elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then
REGISTRATION_ENDPOINT=https://api.eu.newrelic.com/graphql
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.eu.newrelic.com/oauth2/token
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
else
REGISTRATION_ENDPOINT=https://api.newrelic.com/graphql
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
Expand All @@ -530,7 +530,7 @@ install:
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
NAME="System Identity for $(hostname) - $DATE"
for RETRY in 1 2 3; do
for RETRY in 1 2 3; do
HTTP_CODE=$(echo '{ "query":
"mutation {
systemIdentityCreate(
Expand Down Expand Up @@ -633,17 +633,17 @@ install:
echo "detected newrelic-super-agent process running"
exit 0
fi
echo "New Relic Agent Control has not started after installing. Please try again later, or see our documentation for installing manually https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/install-new-relic" >&2
if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then
journalctl -u newrelic-super-agent --no-pager
fi
exit 31
fi
fi
sleep 2
done
Expand Down
10 changes: 5 additions & 5 deletions recipes/newrelic/infrastructure/super-agent/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ install:
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.staging-service.newrelic.com/oauth2/token
elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then
REGISTRATION_ENDPOINT=https://api.eu.newrelic.com/graphql
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.eu.newrelic.com/oauth2/token
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
else
REGISTRATION_ENDPOINT=https://api.newrelic.com/graphql
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
Expand Down Expand Up @@ -576,17 +576,17 @@ install:
echo "detected newrelic-super-agent process running"
exit 0
fi
echo "New Relic Agent Control has not started after installing. Please try again later, or see our documentation for installing manually https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/install-new-relic" >&2
if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then
journalctl -u newrelic-super-agent --no-pager
fi
exit 31
fi
fi
sleep 2
done
Expand Down
8 changes: 4 additions & 4 deletions recipes/newrelic/infrastructure/super-agent/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ install:
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.staging-service.newrelic.com/oauth2/token
elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then
REGISTRATION_ENDPOINT=https://api.eu.newrelic.com/graphql
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.eu.newrelic.com/oauth2/token
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
else
REGISTRATION_ENDPOINT=https://api.newrelic.com/graphql
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
Expand Down Expand Up @@ -523,17 +523,17 @@ install:
echo "detected newrelic-super-agent process running"
exit 0
fi
echo "New Relic Agent Control has not started after installing. Please try again later, or see our documentation for installing manually https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/install-configure/install-new-relic" >&2
if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then
journalctl -u newrelic-super-agent --no-pager
fi
exit 31
fi
fi
sleep 2
done
Expand Down

0 comments on commit fa351d9

Please sign in to comment.