This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (50 sloc) 1.54 KB
%{?_initddir:%define _initrddir %{_initrddir}}
Name: puppet-ec2init
Version: 0.2
Release: 1%{?dist}
Summary: EC2 bootstrapping using Puppet
Group: System Tools
License: ASL 2.0
# export TAG=%{version}
# git archive --format tar --prefix puppet-ec2init-${TAG}/ HEAD | gzip > puppet-ec2init-${TAG}.tgz
Source0: %{name}-%{version}.tgz
BuildArch: noarch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: curl
Requires: puppet >= 2.6
Requires: ec2ddns
Puppet module and sysvinit service to perform initialisation steps for EC2
instances. Additional configuration can be provided by passing JSON over
%setup -q
rm -rf %{buildroot}
install -d %{buildroot}%{_initddir}
install %{name}.init %{buildroot}%{_initddir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}/ec2init
cp -R manifests templates lib %{buildroot}%{_sysconfdir}/%{name}/ec2init/
rm -rf %{buildroot}
/sbin/chkconfig --add %{name} || :
if [ "$1" = 0 ] ; then
/sbin/chkconfig --del %{name} || :
%attr(0755, root, root) %{_initddir}/%{name}
* Sat Apr 28 2012 Dan Carley <> - 0.2-1
- Set new domain in resolv.conf and dhclient.conf
- Init script calls agent after initial run.
- Puppet code is unit tested.
* Fri Apr 20 2012 Dan Carley <> - 0.1-1
- Initial release.