2011-09-23 17:44:26 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
Name: cloud-init
|
2012-11-21 21:44:08 +00:00
|
|
|
Version: 0.7.1
|
2013-02-13 18:39:41 +00:00
|
|
|
Release: 3%{?dist}
|
2011-09-23 21:10:32 +00:00
|
|
|
Summary: Cloud instance init scripts
|
2011-09-23 17:44:26 +00:00
|
|
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
License: GPLv3
|
|
|
|
URL: http://launchpad.net/cloud-init
|
2012-11-21 21:44:08 +00:00
|
|
|
Source0: https://launchpad.net/cloud-init/trunk/0.7.1/+download/cloud-init-0.7.1.tar.gz
|
2011-09-23 17:44:26 +00:00
|
|
|
Source1: cloud-init-fedora.cfg
|
|
|
|
Source2: cloud-init-README.fedora
|
2012-09-17 17:09:31 +00:00
|
|
|
Patch0: cloud-init-0.7.0-fedora.patch
|
2012-11-21 21:49:33 +00:00
|
|
|
# Fix broken sudoers file generation
|
|
|
|
# http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/740
|
|
|
|
Patch1: cloud-init-0.7.1-sudo-iterstr.patch
|
2012-11-21 21:55:04 +00:00
|
|
|
# Fix "resize_root: noblock"
|
|
|
|
# https://launchpad.net/bugs/1080985
|
|
|
|
# http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/743
|
|
|
|
Patch2: cloud-init-0.7.1-noblock.patch
|
2011-09-23 17:44:26 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools-devel
|
|
|
|
BuildRequires: systemd-units
|
2012-09-23 03:06:30 +00:00
|
|
|
Requires: dmidecode
|
2011-09-23 17:44:26 +00:00
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: iproute
|
|
|
|
Requires: libselinux-python
|
|
|
|
Requires: net-tools
|
2012-09-17 17:09:31 +00:00
|
|
|
Requires: policycoreutils-python
|
2011-09-23 17:44:26 +00:00
|
|
|
Requires: procps
|
|
|
|
Requires: python-boto
|
|
|
|
Requires: python-cheetah
|
|
|
|
Requires: python-configobj
|
2012-09-17 17:09:31 +00:00
|
|
|
Requires: python-prettytable
|
2011-09-23 17:44:26 +00:00
|
|
|
Requires: PyYAML
|
2011-09-24 03:04:14 +00:00
|
|
|
Requires: rsyslog
|
2011-09-23 17:44:26 +00:00
|
|
|
Requires: shadow-utils
|
|
|
|
Requires: xfsprogs
|
2011-09-24 03:04:14 +00:00
|
|
|
Requires: /usr/bin/run-parts
|
2011-09-23 17:44:26 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cloud-init is a set of init scripts for cloud instances. Cloud instances
|
|
|
|
need special scripts to run during initialization to retrieve and install
|
|
|
|
ssh keys and to let the user run various scripts.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-10-10 01:41:26 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2012-09-17 17:09:31 +00:00
|
|
|
%patch0 -p1
|
2012-11-21 21:49:33 +00:00
|
|
|
%patch1 -p1
|
2011-09-23 17:44:26 +00:00
|
|
|
|
|
|
|
cp -p %{SOURCE2} README.fedora
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
2011-09-24 02:32:58 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/cloud
|
2011-09-23 17:44:26 +00:00
|
|
|
|
|
|
|
# We supply our own config file since our software differs from Ubuntu's.
|
2011-09-24 02:32:58 +00:00
|
|
|
cp -p %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/cloud/cloud.cfg
|
2011-09-23 17:44:26 +00:00
|
|
|
|
2011-09-24 02:32:58 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d
|
|
|
|
cp -p tools/21-cloudinit.conf $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d/21-cloudinit.conf
|
2011-09-23 17:44:26 +00:00
|
|
|
|
|
|
|
# Install the systemd bits
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
|
|
|
cp -p systemd/* $RPM_BUILD_ROOT/%{_unitdir}
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
# Initial installation
|
|
|
|
# Enabled by default per "runs once then goes away" exception
|
|
|
|
/bin/systemctl enable cloud-config.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl enable cloud-final.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl enable cloud-init.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl enable cloud-init-local.service >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
# Package removal, not upgrade
|
|
|
|
/bin/systemctl --no-reload disable cloud-config.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable cloud-final.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable cloud-init.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl --no-reload disable cloud-init-local.service >/dev/null 2>&1 || :
|
|
|
|
# One-shot services -> no need to stop
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
# One-shot services -> no need to restart
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc ChangeLog LICENSE TODO README.fedora
|
2011-09-24 02:32:58 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg
|
|
|
|
%dir %{_sysconfdir}/cloud/cloud.cfg.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg.d/*.cfg
|
|
|
|
%doc %{_sysconfdir}/cloud/cloud.cfg.d/README
|
|
|
|
%dir %{_sysconfdir}/cloud/templates
|
|
|
|
%config(noreplace) %{_sysconfdir}/cloud/templates/*
|
2011-09-23 17:44:26 +00:00
|
|
|
%{_unitdir}/cloud-config.service
|
|
|
|
%{_unitdir}/cloud-config.target
|
|
|
|
%{_unitdir}/cloud-final.service
|
|
|
|
%{_unitdir}/cloud-init-local.service
|
|
|
|
%{_unitdir}/cloud-init.service
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{_libexecdir}/%{name}
|
2011-09-24 02:32:58 +00:00
|
|
|
%{_bindir}/cloud-init*
|
|
|
|
%doc %{_datadir}/doc/%{name}
|
|
|
|
%dir %{_sharedstatedir}/cloud
|
2011-09-23 17:44:26 +00:00
|
|
|
|
2011-09-24 02:32:58 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/rsyslog.d/21-cloudinit.conf
|
2011-09-23 17:44:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2013-02-13 18:39:41 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-13 21:32:28 +00:00
|
|
|
* Thu Dec 13 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.7.1-2
|
|
|
|
- Added default_user to cloud.cfg (this is required for ssh keys to work)
|
|
|
|
|
2012-11-21 21:44:08 +00:00
|
|
|
* Wed Nov 21 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.7.1-1
|
|
|
|
- Rebased against version 0.7.1
|
2012-11-21 21:49:33 +00:00
|
|
|
- Fixed broken sudoers file generation
|
2012-11-21 21:55:04 +00:00
|
|
|
- Fixed "resize_root: noblock" [LP:1080985]
|
2012-11-21 21:44:08 +00:00
|
|
|
|
2012-10-10 01:41:26 +00:00
|
|
|
* Tue Oct 9 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.7.0-1
|
|
|
|
- Rebased against version 0.7.0
|
2012-10-10 01:40:22 +00:00
|
|
|
- Fixed / filesystem resizing
|
2012-10-10 01:41:26 +00:00
|
|
|
|
2012-09-23 03:06:30 +00:00
|
|
|
* Sat Sep 22 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.7.0-0.3.bzr659
|
|
|
|
- Added dmidecode dependency for DataSourceAltCloud
|
|
|
|
|
2012-09-23 00:06:28 +00:00
|
|
|
* Sat Sep 22 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.7.0-0.2.bzr659
|
|
|
|
- Rebased against upstream rev 659
|
2012-09-23 00:47:59 +00:00
|
|
|
- Fixed hostname persistence
|
2012-09-23 00:50:21 +00:00
|
|
|
- Fixed ssh key printing
|
2012-09-23 02:39:41 +00:00
|
|
|
- Fixed sudoers file permissions
|
2012-09-23 00:06:28 +00:00
|
|
|
|
2012-09-17 17:09:31 +00:00
|
|
|
* Mon Sep 17 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.7.0-0.1.bzr650
|
|
|
|
- Rebased against upstream rev 650
|
|
|
|
- Added support for useradd --selinux-user
|
|
|
|
|
2012-09-14 04:30:16 +00:00
|
|
|
* Thu Sep 13 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.3-0.5.bzr532
|
2012-09-13 20:48:55 +00:00
|
|
|
- Use a FQDN (instance-data.) for instance data URL fallback [RH:850916 LP:1040200]
|
2012-09-14 02:52:44 +00:00
|
|
|
- Shut off systemd timeouts [RH:836269]
|
2012-09-14 03:13:10 +00:00
|
|
|
- Send output to the console [RH:854654]
|
2012-09-13 20:48:55 +00:00
|
|
|
|
2012-07-18 19:12:24 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-0.4.bzr532
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-27 16:49:06 +00:00
|
|
|
* Wed Jun 27 2012 Pádraig Brady <P@draigBrady.com> - 0.6.3-0.3.bzr532
|
|
|
|
- Add support for installing yum packages
|
|
|
|
|
2012-03-31 19:54:53 +00:00
|
|
|
* Sat Mar 31 2012 Andy Grimm <agrimm@gmail.com> - 0.6.3-0.2.bzr532
|
|
|
|
- Fixed incorrect interpretation of relative path for
|
|
|
|
AuthorizedKeysFile (BZ #735521)
|
|
|
|
|
2012-03-05 21:32:08 +00:00
|
|
|
* Mon Mar 5 2012 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.3-0.1.bzr532
|
|
|
|
- Rebased against upstream rev 532
|
2012-03-05 21:34:38 +00:00
|
|
|
- Fixed runparts() incompatibility with Fedora
|
2012-03-05 21:32:08 +00:00
|
|
|
|
2012-01-12 23:29:57 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-0.8.bzr457
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-05 18:31:19 +00:00
|
|
|
* Wed Oct 5 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.7.bzr457
|
|
|
|
- Disabled SSH key-deleting on startup
|
|
|
|
|
2011-09-28 22:46:10 +00:00
|
|
|
* Wed Sep 28 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.6.bzr457
|
|
|
|
- Consolidated selinux file context patches
|
2011-09-28 22:48:21 +00:00
|
|
|
- Fixed cloud-init.service dependencies
|
2011-09-29 01:15:39 +00:00
|
|
|
- Updated sshkeytypes patch
|
2011-09-29 01:17:53 +00:00
|
|
|
- Dealt with differences from Ubuntu's sshd
|
2011-09-28 22:46:10 +00:00
|
|
|
|
2011-09-24 23:18:15 +00:00
|
|
|
* Sat Sep 24 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.5.bzr457
|
2011-09-24 22:44:42 +00:00
|
|
|
- Rebased against upstream rev 457
|
2011-09-24 03:04:14 +00:00
|
|
|
- Added missing dependencies
|
2011-09-24 22:44:42 +00:00
|
|
|
|
2011-09-24 02:32:58 +00:00
|
|
|
* Fri Sep 23 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.4.bzr450
|
|
|
|
- Added more macros to the spec file
|
|
|
|
|
2011-09-23 23:31:33 +00:00
|
|
|
* Fri Sep 23 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.3.bzr450
|
|
|
|
- Fixed logfile permission checking
|
2011-09-23 23:36:24 +00:00
|
|
|
- Fixed SSH key generation
|
2011-09-24 00:15:27 +00:00
|
|
|
- Fixed a bad method call in FQDN-guessing [LP:857891]
|
2011-09-24 01:02:34 +00:00
|
|
|
- Updated localefile patch
|
2011-09-24 01:08:57 +00:00
|
|
|
- Disabled the grub_dpkg module
|
2011-09-24 01:31:21 +00:00
|
|
|
- Fixed failures due to empty script dirs [LP:857926]
|
2011-09-23 23:31:33 +00:00
|
|
|
|
2011-09-23 17:49:01 +00:00
|
|
|
* Fri Sep 23 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.2.bzr450
|
|
|
|
- Updated tzsysconfig patch
|
|
|
|
|
2011-09-23 17:44:26 +00:00
|
|
|
* Wed Sep 21 2011 Garrett Holmstrom <gholms@fedoraproject.org> - 0.6.2-0.1.bzr450
|
|
|
|
- Initial packaging
|