You should look into the Active & Fit Direct program:
https://www.activeandfitdirect.com/ For one monthly price, you can join multiple gyms in multiple areas (even if you are going to only hit them every few months)...I've got like 8 different gym memberships over a few different states (due to occasional business travel), and it works great!
The monthly price (to me at least) seems reasonable ($30-35/mth), and while there is an initial startup fee too, it isn't crazy, and you can stop the monthly billing/membership at any time without any fee.
Also, you might want to check with your health insurance, as when I joined they had a deal to waive the startup fee, and the monthly cost was like $5 per month less than the website pricing.