%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7 %global with_systemd 1 %else %global with_systemd 0 %endif Summary: Utility scripts for the OpenShift Origin node Name: openshift-origin-node-util Version: 1.2.7 Release: 3%{?dist} License: ASL 2.0 URL: http://openshift.redhat.com Source0: http://mirror.openshift.com/pub/origin-server/source/%{name}/%{name}-%{version}.tar.gz Requires: oddjob Requires: rng-tools Requires: rubygem-openshift-origin-node Requires: httpd Requires: php >= 5.3.2 # rhc-list-ports Requires: lsof # oo-setup-node Requires: policycoreutils # oo-setup-node Requires: system-config-firewall-base Requires: quota # oo-idler-stats Requires: git # oo-accept-node Requires: libcgroup-tools %if %{with_systemd} BuildRequires: systemd-units Requires: systemd-units %endif BuildArch: noarch %description This package contains a set of utility scripts for a OpenShift node. They must be run on a OpenShift node instance. %prep %setup -q %build %install mkdir -p %{buildroot}%{_sbindir} cp -p bin/oo-* %{buildroot}%{_sbindir}/ cp -p bin/rhc-* %{buildroot}%{_sbindir}/ mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/ mkdir -p %{buildroot}%{_sysconfdir}/oddjobd.conf.d/ mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/ mkdir -p %{buildroot}/%{_localstatedir}/www/html/ mkdir -p %{buildroot}%{_mandir}/man8/ cp -p conf/oddjob/openshift-restorer.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/ cp -p conf/oddjob/oddjobd-restorer.conf %{buildroot}%{_sysconfdir}/oddjobd.conf.d/ cp -p www/html/restorer.php %{buildroot}/%{_localstatedir}/www/html/ cp -p man8/*.8 %{buildroot}%{_mandir}/man8/ %if %{with_systemd} mkdir -p %{buildroot}/etc/systemd/system mv services/openshift-gears.service %{buildroot}/etc/systemd/system/openshift-gears.service %else mkdir -p %{buildroot}%{_initddir} cp -p init.d/openshift-gears %{buildroot}%{_initddir}/ %endif %if %{with_systemd} %post %systemd_post openshift-gears.service %preun %systemd_preun openshift-gears.service %postun %systemd_postun_with_restart openshift-gears.service %endif %files %doc LICENSE %doc README-Idler.md %attr(0750,-,-) %{_sbindir}/oo-accept-node %attr(0750,-,-) %{_sbindir}/oo-admin-ctl-gears %attr(0750,-,-) %{_sbindir}/oo-app-idle %attr(0750,-,-) %{_sbindir}/oo-autoidler %attr(0750,-,-) %{_sbindir}/oo-idler %attr(0750,-,-) %{_sbindir}/oo-idler-stats %attr(0750,-,-) %{_sbindir}/oo-init-quota %attr(0750,-,-) %{_sbindir}/oo-last-access %attr(0750,-,-) %{_sbindir}/oo-list-stale %attr(0750,-,-) %{_sbindir}/oo-list-access %attr(0750,-,-) %{_sbindir}/oo-restorer %attr(0750,-,apache) %{_sbindir}/oo-restorer-wrapper.sh %attr(0750,-,-) %{_sbindir}/oo-setup-node %attr(0755,-,-) %{_sbindir}/rhc-list-ports %attr(0755,-,-) %{_sbindir}/oo-httpd-singular %{_mandir}/man8/oo-accept-node.8.gz %{_mandir}/man8/oo-admin-ctl-gears.8.gz %{_mandir}/man8/oo-app-idle.8.gz %{_mandir}/man8/oo-autoidler.8.gz %{_mandir}/man8/oo-idler.8.gz %{_mandir}/man8/oo-idler-stats.8.gz %{_mandir}/man8/oo-init-quota.8.gz %{_mandir}/man8/oo-last-access.8.gz %{_mandir}/man8/oo-list-stale.8.gz %{_mandir}/man8/oo-list-access.8.gz %{_mandir}/man8/oo-restorer.8.gz %{_mandir}/man8/oo-restorer-wrapper.sh.8.gz %{_mandir}/man8/oo-setup-node.8.gz %{_mandir}/man8/rhc-list-ports.8.gz %{_mandir}/man8/oo-httpd-singular.8.gz %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/oddjobd.conf.d/oddjobd-restorer.conf %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/dbus-1/system.d/openshift-restorer.conf %{_localstatedir}/www/html/restorer.php %if %{with_systemd} %attr(0755,-,-) /etc/systemd/system/openshift-gears.service %else %attr(0755,-,-) %{_initddir}/openshift-gears %endif %changelog * Tue Dec 18 2012 Troy Dawson 1.2.7-3 - Added systemd macro's * Tue Dec 18 2012 Troy Dawson 1.2.7-2 - Cleanup for Fedora standards - Fix source URL - Removed Group - Fixed dependancies * Tue Dec 11 2012 Adam Miller 1.2.7-1 - Merge pull request #1045 from kraman/f17_fixes (openshift+bot@redhat.com) - Merge pull request #1044 from ramr/master (openshift+bot@redhat.com) - Fix bugz - log to access.log + websockets.log + log file rollover. And update idler's last access script to use the new node-web-proxy access.log file. (ramr@redhat.com) - Close the connection on a 302/temporary redirect - bugz where the clients loop. (ramr@redhat.com) - Switched console port from 3128 to 8118 due to selinux changes in F17-18 Fixed openshift-node-web-proxy systemd script Updates to oo-setup-broker script: - Fixes hardcoded example.com - Added basic auth based console setup - added openshift-node-web-proxy setup Updated console build and spec to work on F17 (kraman@gmail.com) * Mon Dec 10 2012 Adam Miller 1.2.6-1 - Adding oo-accept-systems script for verifying all node hosts from the broker. - also verifies cartridge consistency and checks for stale cartridge cache. oo-accept-node sanity checks public_ip and public_hostname. Minor edits to make node.conf easier to understand. (lmeyer@redhat.com) * Thu Dec 06 2012 Adam Miller 1.2.5-1 - Calculate date duration in a 1.9 compatible way (ironcladlou@gmail.com) * Wed Dec 05 2012 Adam Miller 1.2.4-1 - Fix for Bug 880699 (jhonce@redhat.com) * Tue Dec 04 2012 Adam Miller 1.2.3-1 - Move add/remove alias to the node API. (rmillner@redhat.com) - Fix for Bug 881920 (jhonce@redhat.com) * Thu Nov 29 2012 Adam Miller 1.2.2-1 - Remove unused phpmoadmin cartridge (jhonce@redhat.com) - use /bin/env for cron (dmcphers@redhat.com) - exit code and usage cleanup (dmcphers@redhat.com) - Merge pull request #962 from danmcp/master (openshift+bot@redhat.com) - Merge pull request #905 from kraman/ruby19 (openshift+bot@redhat.com) - add oo-ruby (dmcphers@redhat.com) - F18 compatibility fixes - apache 2.4 - mongo journaling - JDK 7 - parseconfig gem update Bugfix for Bind DNS plugin (kraman@gmail.com) * Sat Nov 17 2012 Adam Miller 1.2.1-1 - bump_minor_versions for sprint 21 (admiller@redhat.com) * Fri Nov 16 2012 Adam Miller 1.1.6-1 - Fix for Bug 876874 (jhonce@redhat.com) - Merge pull request #925 from ironcladlou/scl-refactor (dmcphers@redhat.com) - Only use scl if it's available (ironcladlou@gmail.com) * Thu Nov 15 2012 Adam Miller 1.1.5-1 - Fix for Bug 876874 (jhonce@redhat.com) * Tue Nov 13 2012 Adam Miller 1.1.4-1 - update verb in JSON payload (jhonce@redhat.com) - US2603 man page and packaging (jhonce@redhat.com) * Mon Nov 12 2012 Adam Miller 1.1.3-1 - Fix for Bug 874445 (jhonce@redhat.com) * Thu Nov 08 2012 Adam Miller 1.1.2-1 - Fix for BZ872313 (jhonce@redhat.com) * Thu Nov 01 2012 Adam Miller 1.1.1-1 - bump_minor_versions for sprint 20 (admiller@redhat.com) * Thu Nov 01 2012 Adam Miller 1.0.3-1 - Fix for bug# 869748 (rpenta@redhat.com) * Wed Oct 31 2012 Adam Miller 1.0.2-1 - Fixes for LiveCD build (kraman@gmail.com) - move broker/node utils to /usr/sbin/ everywhere (admiller@redhat.com) * Tue Oct 30 2012 Adam Miller 1.0.1-1 - fix man page path names for node-util spec (admiller@redhat.com) - Added man pages for broker-util/node-util, port complete-origin-setup to bash (admiller@redhat.com) - bumping specs to at least 1.0.0 (dmcphers@redhat.com) * Mon Oct 29 2012 Adam Miller 0.0.8-1 - Merge pull request #775 from brenton/rhc-list-ports1 (openshift+bot@redhat.com) - Fixing rhc-list-ports permissions issue (bleanhar@redhat.com) - Updating broker setup script (kraman@gmail.com) - Merge pull request #777 from rmillner/master (openshift+bot@redhat.com) - BZ 867242: Add a specific error on bad UUID. (rmillner@redhat.com) - BZ 869874: Do not attempt status report for non-existant cartridges. (rmillner@redhat.com) - node-util needs apache group created before it is installed (jhonce@redhat.com) - Fix for Bug 867198 (jhonce@redhat.com) - Bug 835501 - 'rhc-port-foward' returns 'No available ports to forward ' (bleanhar@redhat.com) * Fri Oct 26 2012 Adam Miller 0.0.7-1 - Fix lock file (jhonce@redhat.com) - Refactor oo-admin-ctl-gears to use lib/util functions (jhonce@redhat.com) * Wed Oct 24 2012 Adam Miller 0.0.6-1 - Update documentation with expected httpd access log format (jhonce@redhat.com) - Idler requires PHP to restore gear (jhonce@redhat.com) - fixed single quotes to doubble in oo-admin-ctl-gears GEAR_GECOS subst (mlamouri@redhat.com) * Mon Oct 22 2012 Adam Miller 0.0.5-1 - Fixing Origin build scripts (kraman@gmail.com) * Fri Oct 19 2012 Adam Miller 0.0.4-1 - Change libra guest to OpenShift guest (dmcphers@redhat.com) - Update Idler documentation (jhonce@redhat.com) - Wrong name transition in pam.d/sshd. (rmillner@redhat.com) * Thu Oct 18 2012 Adam Miller 0.0.3-1 - Port auto-Idler to origin-server (jhonce@redhat.com) - Fixing outstanding cgroups issues Removing hardcoded references to "OpenShift guest" and using GEAR_GECOS from node.conf instead (kraman@gmail.com) - Use internal functions for that. (rmillner@redhat.com) - setup polyinstantiation. (rmillner@redhat.com) - Move SELinux to Origin and use new policy definition. (rmillner@redhat.com) - Set a password on the mongo admin db so that application and ssh'd users cannot access the DB. Misc other fixes (kraman@gmail.com) - Adding support for quota and pam fs limits (kraman@gmail.com) - Move SELinux to Origin and use new policy definition. (rmillner@redhat.com) - Fixed broker/node setup scripts to install cgroup services. Fixed mcollective-qpid plugin so it installs during origin package build. Updated cgroups init script to work with both systemd and init.d Updated oo-trap-user script Renamed oo-cgroups to openshift-cgroups (service and init.d) and created oo-admin-ctl-cgroups Pulled in oo-get-mcs-level and abstract/util from origin-selinux branch Fixed invalid file path in rubygem-openshift- origin-auth-mongo spec Fixed invlaid use fo Mcollective::Config in mcollective-qpid-plugin (kraman@gmail.com) - Clean up spec file (jhonce@redhat.com) - Port oo-init-quota command (jhonce@redhat.com) - Port admin scripts for on-premise (jhonce@redhat.com) - Fixing a few missed references to ss-* Added command to load openshift-origin selinux module (kraman@gmail.com) - Removing old build scripts Moving broker/node setup utilities into util packages Fix Auth service module name conflicts (kraman@gmail.com) - Fixed gear admin script and added systemd and init.d startup scripts (kraman@gmail.com) * Mon Oct 08 2012 Dan McPherson 0.0.2-1 - new package built with tito