Skip to content

Commit

Permalink
Extracts site name from hostname in a v1-v2-friendly way for the Core…
Browse files Browse the repository at this point in the history
…OS configure_tc_fq.sh script. Fixes #176. (#177)
  • Loading branch information
nkinkade authored May 5, 2020
1 parent 2458fe1 commit 8b0f729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs/stage3_coreos/resources/cloud-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ write_files:
owner: root:root
content: |
#!/bin/bash
SITE=$(dnsdomainname | cut -d. -f1)
SITE=${HOSTNAME:6:5}
SPEED=$(curl --silent --show-error --location \
https://siteinfo.mlab-oti.measurementlab.net/v1/sites/switches.json \
| jq -r ".${SITE}.uplink_speed")
Expand Down

0 comments on commit 8b0f729

Please sign in to comment.