Skip to content

Commit

Permalink
Add separate profiles for Varnish cache (#7727)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanElawady committed Sep 1, 2023
1 parent 9d3c806 commit 618ddf6
Show file tree
Hide file tree
Showing 4 changed files with 842 additions and 3 deletions.
5 changes: 3 additions & 2 deletions infrastructure/cdn-in-a-box/traffic_ops/to-access.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ to-enroll() {
MY_IP6_ADDRESS="${MY_IP6_ADDRESS}/64"
fi
export MY_IP6_GATEWAY="$(route -n6 | grep UG | awk '{print $2}')"
local cacheType="${CACHE_SERVER_TYPE:-ATS}"

case "$serverType" in
"db" )
Expand All @@ -213,12 +214,12 @@ to-enroll() {
;;
"edge" )
export MY_TYPE="EDGE"
export MY_PROFILE="EDGE_TIER_ATS_CACHE"
export MY_PROFILE="EDGE_TIER_${cacheType}_CACHE"
export MY_STATUS="REPORTED"
;;
"mid" )
export MY_TYPE="MID"
export MY_PROFILE="MID_TIER_ATS_CACHE"
export MY_PROFILE="MID_TIER_${cacheType}_CACHE"
export MY_STATUS="REPORTED"
;;
"origin" )
Expand Down

0 comments on commit 618ddf6

Please sign in to comment.