[heat] Initial import (#840619)

Jeff Peeler jpeeler at fedoraproject.org
Wed Jul 25 23:49:47 UTC 2012


commit 971ca7823bec68d98a315bb1790f84d376721f2a
Author: Jeff Peeler <jpeeler at redhat.com>
Date:   Wed Jul 25 19:37:01 2012 -0400

    Initial import (#840619)
    
    Signed-off-by: Jeff Peeler <jpeeler at redhat.com>

 .gitignore            |    1 +
 heat-api.service      |   12 ++++
 heat-engine.service   |   12 ++++
 heat-metadata.service |   12 ++++
 heat.logrotate        |    7 ++
 heat.spec             |  147 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 7 files changed, 192 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3eaa307 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/heat-4.tar.gz
diff --git a/heat-api.service b/heat-api.service
new file mode 100644
index 0000000..66a0b30
--- /dev/null
+++ b/heat-api.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=The Heat API provides an AWS CloudFormation-compatible API to the Heat Engine for starting AWS CloudFormation templates on OpenStack.
+After=syslog.target network.target heat-engine.service
+Requires=syslog.target network.target heat-engine.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/heat-api
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/heat-engine.service b/heat-engine.service
new file mode 100644
index 0000000..d4c0c7e
--- /dev/null
+++ b/heat-engine.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=The Heat Engine provides an OpenStack API for starting AWS CloudFormation templates on OpenStack.
+After=syslog.target network.target qpidd.service mysqld.service openstack-keystone.service tgtd.service openstack-glance-api.service openstack-glance-registry.service openstack-nova-api.service openstack-nova-objectstore.service openstack-nova.compute.service openstack-nova-network.service openstack-nova-volume.service openstack-nova-scheduler.service openstack-nova-cert.service
+Requires=syslog.target network.target qpidd.service mysqld.service openstack-keystone.service tgtd.service openstack-glance-api.service openstack-glance-registry.service openstack-nova-api.service openstack-nova-objectstore.service openstack-nova-compute.service openstack-nova-network.service openstack-nova-volume.service openstack-nova-scheduler.service openstack-nova-cert.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/heat-engine
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/heat-metadata.service b/heat-metadata.service
new file mode 100644
index 0000000..2d80538
--- /dev/null
+++ b/heat-metadata.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=The Heat Metadata server provides an OpenStack API for Nova instances to communicate metadata to and from the Heat Engine.
+After=syslog.target network.target heat-engine.service
+Requires=syslog.target network.target heat-engine.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/heat-metadata
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/heat.logrotate b/heat.logrotate
new file mode 100644
index 0000000..9ba4cf6
--- /dev/null
+++ b/heat.logrotate
@@ -0,0 +1,7 @@
+/var/log/heat/*.log {
+    weekly
+    rotate 4
+    missingok
+    compress
+    minsize 100k
+}
diff --git a/heat.spec b/heat.spec
new file mode 100644
index 0000000..65c9046
--- /dev/null
+++ b/heat.spec
@@ -0,0 +1,147 @@
+Name: heat
+Summary: This software provides AWS CloudFormation functionality for OpenStack Essex
+Version: 4
+Release: 5%{?dist}
+License: ASL 2.0
+Group: System Environment/Base
+URL: http://heat-api.org
+Source0: https://github.com/downloads/heat-api/heat/heat-%{version}.tar.gz
+Source1: heat.logrotate
+Source2: heat-api.service
+Source3: heat-engine.service
+Source4: heat-metadata.service
+
+BuildArch: noarch
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: systemd-units
+
+Requires: python-eventlet
+Requires: python-glance
+Requires: python-greenlet
+Requires: python-httplib2
+Requires: python-iso8601
+Requires: python-keystoneclient
+Requires: python-kombu
+Requires: python-lxml
+Requires: python-memcached
+Requires: python-migrate
+Requires: python-novaclient
+Requires: python-paste
+Requires: python-qpid
+Requires: python-routes
+Requires: pysendfile
+Requires: python-sqlalchemy
+Requires: python-webob
+
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
+sed -i -e '/^#!/,1 d' $RPM_BUILD_ROOT/%{python_sitelib}/heat/db/sqlalchemy/manage.py
+sed -i -e '/^#!/,1 d' $RPM_BUILD_ROOT/%{python_sitelib}/heat/db/sqlalchemy/migrate_repo/manage.py
+sed -i -e '/^#!/,1 d' $RPM_BUILD_ROOT/%{python_sitelib}/heat/testing/runner.py
+mkdir -p $RPM_BUILD_ROOT/var/log/heat/
+install -p -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/heat
+
+# install systemd unit files
+install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/heat-api.service
+install -p -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/heat-engine.service
+install -p -D -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_unitdir}/heat-metadata.service
+
+mkdir -p $RPM_BUILD_ROOT/var/lib/heat/
+mkdir -p $RPM_BUILD_ROOT/etc/heat/
+cp -r etc/* $RPM_BUILD_ROOT/etc/heat/
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
+cp -v docs/man/man1/* $RPM_BUILD_ROOT/%{_mandir}/man1/
+rm -rf $RPM_BUILD_ROOT/var/lib/heat/.dummy
+
+%description
+Heat provides AWS CloudFormation functionality for OpenStack.
+
+%files
+%doc README.rst LICENSE
+%{_mandir}/man1/*.gz
+%{_bindir}/*
+%{python_sitelib}/heat*
+%dir %{_localstatedir}/log/heat
+%dir %{_localstatedir}/lib/heat
+%{_unitdir}/heat*.service
+%dir %{_sysconfdir}/heat
+%config(noreplace) %dir %{_sysconfdir}/heat/bash_completion.d/heat
+%config(noreplace) %{_sysconfdir}/heat/heat-api-paste.ini
+%config(noreplace) %{_sysconfdir}/heat/heat-api.conf
+%config(noreplace) %{_sysconfdir}/heat/heat-engine-paste.ini
+%config(noreplace) %{_sysconfdir}/heat/heat-engine.conf
+%config(noreplace) %{_sysconfdir}/heat/heat-metadata-paste.ini
+%config(noreplace) %{_sysconfdir}/heat/heat-metadata.conf
+%config(noreplace) %{_sysconfdir}/logrotate.d/heat
+
+%post
+if [ $1 -eq 1 ] ; then
+    # initial installation
+    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+fi
+
+%preun
+if [ $1 -eq 0 ] ; then
+    # package removal, not upgrade
+    /bin/systemctl --no-reload disable heat-api.service > /dev/null 2>&1 || :
+    /bin/systemctl --no-reload disable heat-engine.service > /dev/null 2>&1 || :
+    /bin/systemctl --no-reload disable heat-metadata.service > /dev/null 2>&1 || :
+    /bin/systemctl stop heat-api.service > /dev/null 2>&1 || :
+    /bin/systemctl stop heat-engine.service > /dev/null 2>&1 || :
+    /bin/systemctl stop heat-metadata.service > /dev/null 2>&1 || :
+fi
+
+%postun
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+    # package upgrade, not uninstall
+    /bin/systemctl try-restart heat-api.service >/dev/null 2>&1 || :
+    /bin/systemctl try-restart heat-engine.service >/dev/null 2>&1 || :
+    /bin/systemctl try-restart heat-metadata.service >/dev/null 2>&1 || :
+fi
+
+%changelog
+* Tue Jul 24 2012 Jeff Peeler <jpeeler at redhat.com> - 4-5
+- added LICENSE to docs
+- added dist tag
+- added heat directory to files section
+- removed unnecessary defattr 
+
+* Tue Jul 24 2012 Jeff Peeler <jpeeler at redhat.com> - 4-4
+- remove pycrypto requires
+
+* Fri Jul 20 2012 Jeff Peeler <jpeeler at redhat.com> - 4-3
+- change python-devel to python2-devel
+
+* Wed Jul 11 2012 Jeff Peeler <jpeeler at redhat.com> - 4-2
+- add necessary requires
+- removed shebang line for scripts not requiring executable permissions
+- add logrotate, removes all rpmlint warnings except for python-httplib2
+- remove buildroot tag since everything since F10 has a default buildroot
+- remove clean section as it is not required as of F13
+- add systemd unit files
+- change source URL to download location which doesn't require a SHA
+
+* Fri Jun 8 2012 Steven Dake <sdake at redhat.com> - 4-1
+- removed jeos from packaging since that comes from another repository
+- compressed all separate packages into one package
+- removed setup options which were producing incorrect results
+- replaced python with {__python}
+- added a br on python-devel
+- added a --skip-build to the install step
+- added percent-dir for directories
+- fixed most rpmlint warnings/errors
+
+* Mon Apr 16 2012 Chris Alfonso <calfonso at redhat.com> - 3-1
+- initial openstack package log
diff --git a/sources b/sources
index e69de29..6cec258 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b68933487b4669de3ae100663bd35f62  heat-4.tar.gz


More information about the scm-commits mailing list