Packaging NagiosXI into RPM for use with puppet?
Posted: Tue Apr 17, 2012 2:42 pm
I'd like to roll up the source installation of NagiosXI into an RPM so that we can deploy it with puppet. We're slowly replacing our old nagiosxi systems with 2011, and doing it manually is very time consuming.
Does anyone know the best way to roll this into an RPM? if I can specify a new install directory (rpmbuild's BUILDROOT/ dir) that would be best. I noticed there is a file xi-sys.cfg that comes with the installer, in which I could change proddir='/usr/local/nagiosxi' to proddir='/path/to/BUILDROOT/usr/local/nagiosxi'
Is that enough, or are there other directories hard-coded in the scripts that I would have to worry about?
Basically I just want to know if I am wasting my time, or there is a way to do this. I don't want to have puppet push out the source and have to build it from scratch every time.
Thanks guys
Does anyone know the best way to roll this into an RPM? if I can specify a new install directory (rpmbuild's BUILDROOT/ dir) that would be best. I noticed there is a file xi-sys.cfg that comes with the installer, in which I could change proddir='/usr/local/nagiosxi' to proddir='/path/to/BUILDROOT/usr/local/nagiosxi'
Is that enough, or are there other directories hard-coded in the scripts that I would have to worry about?
Basically I just want to know if I am wasting my time, or there is a way to do this. I don't want to have puppet push out the source and have to build it from scratch every time.
Thanks guys