Yum update/install script

Any one know of a way to do a yum -install and draw the argument of what to install from a text file?

I have a huge list of rpms that I have to install on a bunch of machines and I would like to run one script that goes to each machine and installs all rpms in the list I have.

Like this?

yum -y install $(cat list)

Totally!

Thanks!