Ask Your Question
1

Install software from source and clean old versions

asked 2014-05-14 14:52:14 -0500

arjones85 gravatar image

updated 2014-05-14 14:54:44 -0500

Hi all,

I would like some feedback on if Puppet is the right software for this, and if so, the best way of going about doing this.

I am looking to automate software installation and cleanup of older versions. I will be compiling proprietary software from source and installing it out on an NFS mount that is served by an enterprise NFS appliance. The NFS appliance is not a normal Linux server, so installation from RPM/Deb is not an option. The software is also not provided via RPM/Deb packages.

I've read previous questions of this nature but they all seem to be geared towards installation of software locally on single machines. I am looking to do installation of software out on an NFS mount.

I saw that there is a Puppet module called "netinstall" that looked very close to what I am trying to do. I am hoping to have Puppet pick up a tar/gzip package from a certain directory, find the version number by the file name, do the install (configure; make; make install), then clean any versions out of the installation directory (simple rm -rf) that are N versions older than the one it just installed.

Any thoughts on if Puppet can achieve this "the right way" ?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-05-14 16:46:22 -0500

spuder gravatar image

Puppet is designed to integrate with Packages, files and services (called the trifecta). While you can compile from source, it is the least 'puppety' approach.It is best to somehow get the distributed software into a packages first.

If the NFS appliance has a package manager, I would suggest using FPM to create it, then using puppet to distribute it. If you frequently distribute new versions of the software, you can automate the creation of the package with scripts.

For reference, here is a bash script I wrote that downloads and compiles redis, then uses FPM to generate a RPM and a .deb file. https://github.com/spuder/fpm-redis

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-05-14 14:52:14 -0500

Seen: 235 times

Last updated: May 14 '14