Building Amazon Linux RPMs (PRs, quick howto)

20 views
Skip to first unread message

Jeff Bachtel

unread,
May 5, 2014, 11:16:33 PM5/5/14
to puppet...@googlegroups.com, puppe...@googlegroups.com
I made the really minor tweaks required to make RPMs that build on and
are compatible with Amazon's RedHat-derived Linux distribution (for
EC2). Understandably PL might not have the customer demand for azn-linux
builds, but given how little the patches touch, I hope they can get
integrated so that building packages is easy for community members at
any rate.

To build your own packages, on an EC2 instance*

# install build tools
sudo yum install git rpm-build rubygem-rake
# clone and install facter
git clone https://github.com/jeffb-bt/facter.git; cd facter
git checkout feature/azn-linux-build-2.0.1
rake package:bootstrap
rake package:rpm
sudo yum install pkg/rpm/facter-2.0.1.1-1.amzn1.x86_64.rpm
# clone and install hiera
git clone https://github.com/jeffb-bt/hiera.git; cd hiera
git checkout feature/azn-linux-build-1.3.2
rake package:bootstrap
rake package:rpm
sudo yum install pkg/rpm/hiera-1.3.2.1-1.amzn1.noarch.rpm

# install puppet preq
sudo yum install
http://yum.puppetlabs.com/el/6/dependencies/x86_64/ruby-rgen-0.6.5-2.el6.noarch.rpm

# clone and install puppet
git clone https://github.com/jeffb-bt/puppet.git; cd puppet
git checkout feature/azn-linux-build-3.5.1
rake package:bootstrap
rake package:rpm
sudo yum install pkg/rpm/{puppet,puppet-server}-3.5.1.1-1.amzn1.noarch.rpm

Pull requests are up at

https://github.com/puppetlabs/facter/pull/674
https://github.com/puppetlabs/puppet/pull/2618
https://github.com/puppetlabs/hiera/pull/189

I hope that's useful for some others,
Jeff

* - yum install commands included to illustrate where the target rpms end up
Reply all
Reply to author
Forward
0 new messages