I\'ve searched around a bit for similar questions, but other than running one command or perhaps a few command with items such as:
ssh user@host -t sudo su -
Have you looked at things like Puppet or Cfengine. They can do what you want and probably much more.