This repository has been archived by the owner. It is now read-only.
Permalink
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
URL: https://github.com/dcarley/puppet-ec2init
# 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
%description
Puppet module and sysvinit service to perform initialisation steps for EC2
instances. Additional configuration can be provided by passing JSON over
user-data.
%prep
%setup -q
%build
%install
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/
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add %{name} || :
%preun
if [ "$1" = 0 ] ; then
/sbin/chkconfig --del %{name} || :
fi
%files
%defattr(-,root,root,-)
%doc README.md
%doc LICENSE.md
%attr(0755, root, root) %{_initddir}/%{name}
%{_sysconfdir}/%{name}
%changelog
* Sat Apr 28 2012 Dan Carley <dan.carley@gmail.com> - 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 <dan.carley@gmail.com> - 0.1-1
- Initial release.