Skip to content

Instantly share code, notes, and snippets.

@nachogarrone
Created October 30, 2018 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nachogarrone/6beaa7663771fa043db82a1e5bcd79b4 to your computer and use it in GitHub Desktop.
Save nachogarrone/6beaa7663771fa043db82a1e5bcd79b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
declare -a arr=("clt-guard-00" "clt-guard-01" "clt-guard-02" "clt-guard-08" "clt-guard-09" "clt-guard-10" "clt-guard-11" "clt-guard-12" "clt-guard-13")
for cluster in "${arr[@]}"
do
echo "PUT http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload"
curl -X PUT \
http://${cluster}:9290/collect/payment-methods/cache/overlapped/reload \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'X-Client: refresh-bash'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment