I use Puppet to automate setting up servers for work. The only problem with this is that installing the specific version of the software in my stack is a bit tricky as dependencies are sometimes not met. For example, I use Apache 2.2.25 but Ubunu 12.04 currently has 2.4 as the base.
Since I didn't want to upgrade right away, I setup Puppet to compile and install Apache from source. Since this generally takes awhile I was wondering whether I could build and compile Apache and keep reusing the built version?
What folders, binaries, files would I need to copy and is this even possible?
Alternatives to what I'm trying out are welcome as well.