Use the same framework for all hosts, and run per-host scripts where needed.
Archive of posts filed under the shell category.
It's not straightforward, but it can be done.
Shorten your ssh commands, but in a kludgy way.
Ever wanted to do this?
Unlikely to help someone, but anyway.