perl, templates, and rsync - here is my earlier solution for server configuration management & installation tool: http://www.jlsync.com/ and https://github.com/jlsync/jlsync
And there is a bonus version in ruby: https://github.com/jlsync/jlsync/blob/master/jlsync.rb