Skip to content

Commit fa351d9

Browse files
authored
Use US OAuth urls instead of EU (#1116)
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.
1 parent b3e8952 commit fa351d9

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

recipes/newrelic/infrastructure/super-agent/debian.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ install:
521521
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.staging-service.newrelic.com/oauth2/token
522522
elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then
523523
REGISTRATION_ENDPOINT=https://api.eu.newrelic.com/graphql
524-
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.eu.newrelic.com/oauth2/token
524+
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
525525
else
526526
REGISTRATION_ENDPOINT=https://api.newrelic.com/graphql
527527
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
@@ -530,7 +530,7 @@ install:
530530
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
531531
NAME="System Identity for $(hostname) - $DATE"
532532
533-
for RETRY in 1 2 3; do
533+
for RETRY in 1 2 3; do
534534
HTTP_CODE=$(echo '{ "query":
535535
"mutation {
536536
systemIdentityCreate(
@@ -633,17 +633,17 @@ install:
633633
echo "detected newrelic-super-agent process running"
634634
exit 0
635635
fi
636-
636+
637637
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
638-
638+
639639
if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then
640640
journalctl -u newrelic-super-agent --no-pager
641641
fi
642-
642+
643643
exit 31
644644
fi
645645
fi
646-
646+
647647
sleep 2
648648
done
649649

recipes/newrelic/infrastructure/super-agent/rhel.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ install:
464464
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.staging-service.newrelic.com/oauth2/token
465465
elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then
466466
REGISTRATION_ENDPOINT=https://api.eu.newrelic.com/graphql
467-
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.eu.newrelic.com/oauth2/token
467+
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
468468
else
469469
REGISTRATION_ENDPOINT=https://api.newrelic.com/graphql
470470
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
@@ -576,17 +576,17 @@ install:
576576
echo "detected newrelic-super-agent process running"
577577
exit 0
578578
fi
579-
579+
580580
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
581-
581+
582582
if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then
583583
journalctl -u newrelic-super-agent --no-pager
584584
fi
585-
585+
586586
exit 31
587587
fi
588588
fi
589-
589+
590590
sleep 2
591591
done
592592

recipes/newrelic/infrastructure/super-agent/suse.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ install:
411411
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.staging-service.newrelic.com/oauth2/token
412412
elif [ "{{.NEW_RELIC_REGION}}" = "EU" ]; then
413413
REGISTRATION_ENDPOINT=https://api.eu.newrelic.com/graphql
414-
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.eu.newrelic.com/oauth2/token
414+
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
415415
else
416416
REGISTRATION_ENDPOINT=https://api.newrelic.com/graphql
417417
TOKEN_RENEWAL_ENDPOINT=https://system-identity-oauth.service.newrelic.com/oauth2/token
@@ -523,17 +523,17 @@ install:
523523
echo "detected newrelic-super-agent process running"
524524
exit 0
525525
fi
526-
526+
527527
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
528-
528+
529529
if [ {{.IS_SYSTEMCTL}} -gt 0 ]; then
530530
journalctl -u newrelic-super-agent --no-pager
531531
fi
532532
533533
exit 31
534534
fi
535535
fi
536-
536+
537537
sleep 2
538538
done
539539

0 commit comments

Comments
 (0)