|
|
0ccf279 |
%if 0%{?el5}%{?el6}%{?fc16}
|
|
|
0ccf279 |
%global ruby_vendorlibdir %{_prefix}/lib/ruby/site_ruby/1.8
|
|
|
0ccf279 |
%global ruby_version 1.8
|
|
|
0ccf279 |
%else
|
|
|
0ccf279 |
%global ruby_version 1.9.1
|
|
|
0ccf279 |
%endif
|
|
|
1f13e14 |
|
|
|
0ccf279 |
Summary: A framework to build server orchestration or parallel job execution systems
|
|
|
0ccf279 |
Name: mcollective
|
|
|
f2919b5 |
Version: 2.2.0
|
|
|
f2919b5 |
Release: 1%{?dist}
|
|
|
0ccf279 |
Group: Applications/System
|
|
|
0ccf279 |
License: ASL 2.0
|
|
|
1f13e14 |
|
|
|
0ccf279 |
URL: http://docs.puppetlabs.com/mcollective/
|
|
|
1f13e14 |
|
|
|
0ccf279 |
Source0: http://puppetlabs.com/downloads/mcollective/%{name}-%{version}.tgz
|
|
|
0ccf279 |
Source1: mcollective.service
|
|
|
1f13e14 |
|
|
|
1f13e14 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
1f13e14 |
|
|
|
0ccf279 |
BuildRequires: ruby-devel
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
BuildRequires: systemd-units
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
0ccf279 |
BuildArch: noarch
|
|
|
0ccf279 |
|
|
|
0ccf279 |
Requires: mcollective-common = %{version}-%{release}
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
0ccf279 |
Requires(post): systemd-units
|
|
|
0ccf279 |
Requires(preun): systemd-units
|
|
|
1f13e14 |
Requires(postun): systemd-units
|
|
|
0ccf279 |
Requires(post): systemd-sysv
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%package common
|
|
|
1f13e14 |
Summary: Common libraries for the mcollective clients and servers
|
|
|
1f13e14 |
Group: Applications/System
|
|
|
1f13e14 |
Requires: ruby
|
|
|
0ccf279 |
Requires: ruby(abi) = %{ruby_version}
|
|
|
1f13e14 |
Requires: rubygems
|
|
|
1f13e14 |
Requires: rubygem(json)
|
|
|
1f13e14 |
Requires: rubygem(stomp)
|
|
|
1f13e14 |
Requires: rubygem(systemu)
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%description common
|
|
|
1f13e14 |
Common libraries for the mcollective clients and servers
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%package client
|
|
|
1f13e14 |
Summary: Client tools for the mcollective application server
|
|
|
1f13e14 |
Requires: mcollective-common = %{version}-%{release}
|
|
|
1f13e14 |
Group: Applications/System
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%description client
|
|
|
1f13e14 |
Client tools for the mcollective application server
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%description
|
|
|
1f13e14 |
The Marionette Collective is a framework to build server orchestration
|
|
|
1f13e14 |
or parallel job execution systems.
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%prep
|
|
|
1f13e14 |
%setup0 -q
|
|
|
671a2ea |
rm -rf lib/mcollective/vendor/json
|
|
|
671a2ea |
rm -rf lib/mcollective/vendor/systemu
|
|
|
671a2ea |
rm -rf lib/mcollective/vendor/load_*.rb
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%build
|
|
|
1f13e14 |
%if 0%{?fedora} <= 14 || 0%{?rhel}
|
|
|
1f13e14 |
%{__sed} -i -e 's/^daemonize = .*$/daemonize = 1/' etc/server.cfg.dist
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
%{__sed} -i -e 's/^daemonize = .*$/daemonize = 0/' etc/server.cfg.dist
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%install
|
|
|
1f13e14 |
rm -rf %{buildroot}
|
|
|
1f13e14 |
|
|
|
0ccf279 |
%{__install} -d -m0755 %{buildroot}/%{ruby_vendorlibdir}/mcollective
|
|
|
0ccf279 |
cp --preserve=timestamps --recursive lib/* %{buildroot}/%{ruby_vendorlibdir}
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%{__install} -d -m0755 %{buildroot}/usr/sbin
|
|
|
54860e3 |
%{__install} -p -m0755 bin/mcollectived %{buildroot}/usr/sbin/mcollectived
|
|
|
54860e3 |
%{__install} -p -m0755 bin/mco %{buildroot}/usr/sbin/mco
|
|
|
1f13e14 |
|
|
|
0ccf279 |
%if 0%{?fedora} <= 14 || 0%{?rhel}
|
|
|
1f13e14 |
%{__install} -d -m0755 %{buildroot}%{_initrddir}
|
|
|
cf47a32 |
%{__install} -p -m0755 ext/redhat/mcollective.init %{buildroot}%{_initrddir}/mcollective
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
0ccf279 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
%{__install} -d -m0755 %{buildroot}%{_unitdir}
|
|
|
1f13e14 |
%{__install} -p -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/mcollective.service
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
0ccf279 |
%{__install} -d -m0755 %{buildroot}%{_libexecdir}/mcollective
|
|
|
0ccf279 |
cp --preserve=timestamps --recursive plugins/* %{buildroot}%{_libexecdir}/mcollective
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%{__install} -d -m0755 %{buildroot}/etc/mcollective
|
|
|
1f13e14 |
%{__install} -d -m0755 %{buildroot}/etc/mcollective/ssl
|
|
|
1f13e14 |
%{__install} -d -m0755 %{buildroot}/etc/mcollective/ssl/clients
|
|
|
f2919b5 |
%{__install} -d -m0755 %{buildroot}/etc/mcollective/plugin.d/clients
|
|
|
1f13e14 |
%{__install} -p -m0640 etc/server.cfg.dist %{buildroot}/etc/mcollective/server.cfg
|
|
|
f287961 |
%{__install} -p -m0644 etc/client.cfg.dist %{buildroot}/etc/mcollective/client.cfg
|
|
|
1f13e14 |
%{__install} -p -m0644 etc/facts.yaml.dist %{buildroot}/etc/mcollective/facts.yaml
|
|
|
f2919b5 |
%{__install} -p -m0644 etc/*.erb %{buildroot}/etc/mcollective/
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%clean
|
|
|
1f13e14 |
rm -rf %{buildroot}
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%post
|
|
|
1f13e14 |
%if 0%{?fedora} <= 14 || 0%{?rhel}
|
|
|
1f13e14 |
/sbin/chkconfig --add mcollective || :
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
if [ $1 -eq 1 ] ; then
|
|
|
1f13e14 |
# Initial installation
|
|
|
1f13e14 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
1f13e14 |
fi
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%postun
|
|
|
1f13e14 |
%if 0%{?fedora} <= 14 || 0%{?rhel}
|
|
|
1f13e14 |
if [ "$1" -ge 1 ]; then
|
|
|
1f13e14 |
/sbin/service mcollective condrestart &>/dev/null || :
|
|
|
1f13e14 |
fi
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
1f13e14 |
if [ $1 -ge 1 ] ; then
|
|
|
1f13e14 |
# Package upgrade, not uninstall
|
|
|
1f13e14 |
/bin/systemctl try-restart mcollective.service >/dev/null 2>&1 || :
|
|
|
1f13e14 |
fi
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%preun
|
|
|
1f13e14 |
%if 0%{?fedora} <= 14 || 0%{?rhel}
|
|
|
1f13e14 |
if [ "$1" = 0 ] ; then
|
|
|
1f13e14 |
/sbin/service mcollective stop > /dev/null 2>&1
|
|
|
1f13e14 |
/sbin/chkconfig --del mcollective || :
|
|
|
1f13e14 |
fi
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
if [ $1 -eq 0 ] ; then
|
|
|
1f13e14 |
# Package removal, not upgrade
|
|
|
1f13e14 |
/bin/systemctl --no-reload disable mcollective.service > /dev/null 2>&1 || :
|
|
|
1f13e14 |
/bin/systemctl stop mcollective.service > /dev/null 2>&1 || :
|
|
|
1f13e14 |
fi
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
%triggerun -- mcollective < 1.3.1-1
|
|
|
1f13e14 |
# Save the current service runlevel info
|
|
|
1f13e14 |
# User must manually run systemd-sysv-convert --apply httpd
|
|
|
1f13e14 |
# to migrate them to systemd targets
|
|
|
1f13e14 |
/usr/bin/systemd-sysv-convert --save mcollective >/dev/null 2>&1 ||:
|
|
|
1f13e14 |
|
|
|
1f13e14 |
# Run these because the SysV package being removed won't do them
|
|
|
1f13e14 |
/sbin/chkconfig --del mcollective >/dev/null 2>&1 || :
|
|
|
1f13e14 |
/bin/systemctl try-restart mcollective.service >/dev/null 2>&1 || :
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%files common
|
|
|
1f13e14 |
%defattr(-,root,root,-)
|
|
|
1f13e14 |
%doc COPYING
|
|
|
0ccf279 |
%{ruby_vendorlibdir}/mcollective.rb
|
|
|
0ccf279 |
%{ruby_vendorlibdir}/mcollective
|
|
|
0ccf279 |
%{_libexecdir}/mcollective
|
|
|
0ccf279 |
%dir %{_sysconfdir}/mcollective
|
|
|
0ccf279 |
%dir %{_sysconfdir}/mcollective/ssl
|
|
|
f2919b5 |
%config(noreplace) %{_sysconfdir}/mcollective/*.erb
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%files client
|
|
|
1f13e14 |
%defattr(-,root,root,-)
|
|
|
1f13e14 |
%doc COPYING
|
|
|
f287961 |
%config(noreplace) %{_sysconfdir}/mcollective/client.cfg
|
|
|
1f13e14 |
%{_sbindir}/mco
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%files
|
|
|
1f13e14 |
%defattr(-,root,root,-)
|
|
|
1f13e14 |
%doc COPYING
|
|
|
1f13e14 |
%config(noreplace) /etc/mcollective/server.cfg
|
|
|
1f13e14 |
%config(noreplace) /etc/mcollective/facts.yaml
|
|
|
1f13e14 |
%{_sbindir}/mcollectived
|
|
|
0ccf279 |
%if 0%{?fedora} <= 14 || 0%{?rhel}
|
|
|
1f13e14 |
%{_initrddir}/mcollective
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
%if 0%{?fedora} >= 15
|
|
|
1f13e14 |
%{_unitdir}/mcollective.service
|
|
|
1f13e14 |
%endif
|
|
|
1f13e14 |
%dir /etc/mcollective/ssl/clients
|
|
|
f2919b5 |
%dir /etc/mcollective/plugin.d
|
|
|
1f13e14 |
|
|
|
1f13e14 |
%changelog
|
|
|
f2919b5 |
* Sat Sep 22 2012 Steve Traylen <steve.traylen@cern.ch> - 2.2.0-1
|
|
|
f2919b5 |
- Update to 2.2.0, add plugin.d directory to package, add missing
|
|
|
f2919b5 |
.erb help files.
|
|
|
f2919b5 |
|
|
|
f287961 |
* Wed Sep 5 2012 Steve Traylen <steve.traylen@cern.ch> - 2.0.0-6
|
|
|
f287961 |
- Fix rhbz#853574 in different way. 0644 client.cfg.
|
|
|
f287961 |
|
|
|
257a65e |
* Wed Sep 5 2012 Steve Traylen <steve.traylen@cern.ch> - 2.0.0-5
|
|
|
257a65e |
- Add mco unix group who can read client.cfg rhbz#853574
|
|
|
257a65e |
|
|
|
ff461f3 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4
|
|
|
ff461f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ff461f3 |
|
|
|
671a2ea |
* Tue May 22 2012 Steve Traylen <steve.traylen@cern.ch> - 2.0.0-3
|
|
|
671a2ea |
- Drop 0001-get-rid-of-vendor-libraries.patch and
|
|
|
671a2ea |
0002-Don-t-enable-services-by-default.patch. vendor load falls
|
|
|
671a2ea |
back to system path.
|
|
|
671a2ea |
|
|
|
0ef7831 |
* Mon May 21 2012 Steve Traylen <steve.traylen@cern.ch> - 2.0.0-2
|
|
|
0ef7831 |
- Fix ExecReload in systemd file.
|
|
|
cf47a32 |
- Use alternate SysV start up file dropping lsb requires.
|
|
|
0ef7831 |
|
|
|
cc1b2d2 |
* Thu May 3 2012 Steve Traylen <steve.traylen@cern.ch> - 2.0.0-1
|
|
|
cc1b2d2 |
- New version.
|
|
|
cc1b2d2 |
|
|
|
caa5433 |
* Fri Apr 27 2012 Steve Traylen <steve.traylen@cern.ch> - 1.3.3-5
|
|
|
caa5433 |
- Finger trouble.
|
|
|
caa5433 |
|
|
|
06d3028 |
* Fri Apr 27 2012 Steve Traylen <steve.traylen@cern.ch> - 1.3.3-4
|
|
|
06d3028 |
- Fix patch 0001 to stop loading verdor directory.
|
|
|
06d3028 |
|
|
|
f94ae5c |
* Tue Apr 24 2012 Steve Traylen <steve.traylen@cern.ch> - 1.3.3-3
|
|
|
f94ae5c |
- Fix systemd start up file.
|
|
|
f94ae5c |
|
|
|
0ccf279 |
* Wed Apr 18 2012 Steve Traylen <steve.traylen@cern.ch> - 1.3.3-2
|
|
|
0ccf279 |
- Update to Fedora's new ruby guidelines.
|
|
|
0ccf279 |
|
|
|
54860e3 |
* Tue Apr 17 2012 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.3-1
|
|
|
54860e3 |
- 1.3.3
|
|
|
54860e3 |
- see releasenotes: http://docs.puppetlabs.com/mcollective/releasenotes.html
|
|
|
54860e3 |
|
|
|
d9d873a |
* Fri Jan 13 2012 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.2-1
|
|
|
d9d873a |
- 1.3.2
|
|
|
d9d873a |
- see releasenotes: http://docs.puppetlabs.com/mcollective/releasenotes.html
|
|
|
d9d873a |
|
|
|
3134b54 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-7
|
|
|
3134b54 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3134b54 |
|
|
|
1f13e14 |
* Wed Dec 7 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.1-6
|
|
|
1f13e14 |
- Use sed instead of perl in build section
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Tue Dec 6 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.1-5
|
|
|
1f13e14 |
- Use patches instead of perl
|
|
|
1f13e14 |
- Remove included copy of systemu
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Mon Dec 5 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.1-4
|
|
|
1f13e14 |
- More work on keeping init scripts disabled by default
|
|
|
1f13e14 |
- reorder defattr and doc lines
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Thu Dec 1 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.1-3
|
|
|
1f13e14 |
- Don't enable SysV init script by default
|
|
|
1f13e14 |
- use sbindir macro for a few more things
|
|
|
1f13e14 |
- fix config(noreplace) flag
|
|
|
1f13e14 |
- default file attributes for EPEL
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Thu Nov 17 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.1-2
|
|
|
1f13e14 |
- Remove internal copy of JSON library
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Thu Nov 17 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.1-1
|
|
|
1f13e14 |
- Update to 1.3.1
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Thu Aug 18 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.3.0-1
|
|
|
1f13e14 |
- Update to 1.3.0
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Fri May 27 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.2.0-2
|
|
|
1f13e14 |
- Add mco script
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Mon May 23 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.2.0-1
|
|
|
1f13e14 |
- Update to 1.2.0
|
|
|
1f13e14 |
|
|
|
1f13e14 |
* Wed Apr 20 2011 Jeffrey Ollie <jeff@ocjtech.us> - 1.1.3-3
|
|
|
1f13e14 |
- First version for Fedora
|