Thursday, December 8, 2011
Centos create puppet RPM package.
I usually upgrade puppet using rpm package and always love to stay on latest stable. The EPEL repo usually does not update the repositories as I want. Recently I wanted to update to latest stable 2.7.6
Ensure that you have rpm-build package installed.
yum -y install rpm-build
tar zxf puppet-2.7.6.tar.gz
cp puppet-2.7.6.tar.gz /usr/src/rpm/SOURCES/puppet-2.7.6.tar.gz
rpmbuild -bb puppet-2.7.6/conf/redhat/puppet.spec
The above command should provide you the new rpms
While I was installing 2.7.6 I had issues that the rpmbuild failed with the following error.
sed: can't read lib/puppet/network/http_server/mongrel.rb: No such file or directory
Replacing http_server with http in line number 79 in the puppet.spec file fixed the issue.