# # Copyright [2011] [Red Hat, Inc.] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # %define app_root %{_datadir}/%{name} Name: aeolus-configserver Version: 0.4.1 Release: 2%{?dist} Summary: The Aeolus Config Server Group: Applications/System License: ASL 2.0 URL: http://aeolusproject.org Source0: http://joev.fedorapeople.org/configserver/aeolus-configserver-%{version}.tgz BuildRequires: ruby BuildRequires: ruby-devel BuildRequires: help2man Requires: httpd Requires: mod_ssl Requires: puppet Requires: ruby >= 1.8.1 Requires: ruby-nokogiri Requires: rubygem(sinatra) Requires: rubygem(thin) Requires: rubygem(archive-tar-minitar) Requires: rubygem(activesupport) Requires: rubygem(oauth) Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts BuildArch: noarch %description The Aeolus Config Server, a service for storing and retrieving VM configurations. %prep %setup -q %build # rake %install rm -rf %{buildroot} ## # aeolus-configserver ## mkdir -p %{buildroot}%{app_root}/configure mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_initrddir} mkdir -p %{buildroot}%{_sysconfdir}/sysconfig mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d mkdir -p %{buildroot}%{_sysconfdir}/%{name} mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/schema mkdir -p %{buildroot}%{_localstatedir}/log/%{name} mkdir -p %{buildroot}%{_localstatedir}/run/%{name} mkdir -p %{buildroot}%{_mandir}/man8 # copy over all of the src directory... cp -R src/* %{buildroot}/%{app_root} # copy over init scripts and configs cp conf/%{name} %{buildroot}/%{_initrddir} cp conf/%{name}.sysconf %{buildroot}%{_sysconfdir}/sysconfig/%{name} cp conf/%{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name} # copy relaxNG schema files cp schema/*.rng %{buildroot}%{_localstatedir}/lib/%{name}/schema/ # copy over all puppet scripts and bin files cp -R configure/puppet %{buildroot}%{app_root}/configure/ cp configure/bin/config_httpd.sh %{buildroot}%{_bindir}/aeolus-configserver-setup cp conf/%{name}-proxy.sysconf %{buildroot}%{_sysconfdir}/sysconfig/%{name}-proxy # copy the generated man page from the buildroot cp aeolus-configserver-setup.8 %{buildroot}%{_mandir}/man8 %clean rm -rf %{buildroot} %pre # Ensure the aeolus user/group is created (same IDs as in aeolus-conductor) getent group aeolus >/dev/null || \ /usr/sbin/groupadd -g 180 -r aeolus 2>/dev/null || : getent passwd aeolus >/dev/null || \ /usr/sbin/useradd -u 180 -g aeolus -c "aeolus" \ -s /sbin/nologin -r -d /var/aeolus aeolus 2> /dev/null || : %post # Register the service /sbin/chkconfig --add %{name} %preun # stop and unregister the service before package deletion if [ $1 = 0 ]; then /sbin/service %{name} stop > /dev/null 2>&1 /sbin/chkconfig --del %{name} fi %files %defattr(-,root,root,-) %{_bindir}/aeolus-configserver-setup %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-proxy %{app_root} %dir %{_sysconfdir}/%{name} %{_initrddir}/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %attr(-, aeolus, aeolus) %{_localstatedir}/lib/%{name} %ghost %attr(-, aeolus, aeolus) %{_localstatedir}/run/%{name} %attr(-, aeolus, aeolus) %{_localstatedir}/log/%{name} %{_mandir}/man8/aeolus-configserver-setup.8* %doc COPYING %changelog * Mon Nov 20 2011 Joe VLcek 0.4.1-2 - Packaging for Fedora * Mon Nov 14 2011 Greg Blomquist 0.4.1-1 - Enabling Config Server to process inline configuration files * Mon Nov 14 2011 Greg Blomquist 0.4.0-4 - Allow httpd and config server to run with selinux enabled - Configure ip tables to open port 443 * Fri Nov 04 2011 Greg Blomquist 0.4.0-3 - Adding new "auth" endpoint for testing oauth credentials - Fixing audrey_data unsigned parameter name for oauth * Thu Nov 03 2011 Greg Blomquist 0.4.0-1 - Version bump to start being consistent with Audrey Client * Tue Nov 01 2011 Greg Blomquist 0.3.0-3 - Few small fixes for OAuth signature validation * Wed Oct 26 2011 Greg Blomquist 0.3.0-2 - Now using oauth for authentication - Fix logging for production deployment * Tue Oct 25 2011 Greg Blomquist 0.2.3-5 - Explicitly require mod_ssl for proxy package * Wed Oct 05 2011 Greg Blomquist 0.2.3-4 - Fix rakefile to build on f16, and fixup extrarelease and dist tags in the version * Wed Sep 07 2011 Greg Blomquist 0.2.3-3 - Fix service to return 202 when configs are not complete * Thu Aug 18 2011 Greg Blomquist 0.2.3-2 - Fix syntax in spec * Tue Aug 16 2011 Greg Blomquist 0.2.3-1 - Updated data format for Config Server -> Audrey client API * Wed Jul 27 2011 Greg Blomquist 0.2.2-3 - Ability to read tarball from instance-config - Added minitar dependency * Tue Jul 12 2011 Greg Blomquist 0.2.1-5 - Adding ability to upload and download a tarball for instances * Mon Jun 27 2011 Greg Blomquist 0.2.0-1 - Add the "proxy" sub-package * Thu May 26 2011 Greg Blomquist 0.1.2-2 - Kludge release that allows guests to PUT to invalid UUIDs (RHEV-M) * Mon May 09 2011 Greg Blomquist 0.1.2-1 - Fixed POST bug that allowed POSTing no data * Wed May 04 2011 Greg Blomquist 0.1.1-3 - Fixed IP storage bugs * Wed May 04 2011 Greg Blomquist 0.1.1-2 - Removed arch requirement from rpm spec * Wed May 04 2011 Greg Blomquist 0.1.1-1 - Storing IP address of instances that check-in * Fri Apr 09 2011 Greg Blomquist 0.1.0-1 - Now supporting multi-instance configuration * Thu Mar 24 2011 Greg Blomquist 0.0.2-2 - Added Nokogiri dependency * Thu Mar 24 2011 Greg Blomquist 0.0.2-1 - Version bump for major functionality implementation * Wed Mar 16 2011 Greg Blomquist 0.0.1-1 - Initial spec