|
%global release 1
|
|
%global prerelease develop
|
|
|
|
Name: foreman-installer
|
|
Epoch: 1
|
|
Version: 1.24.0
|
|
Release: %{?prerelease:0.}%{release}%{?prerelease:.}%{?prerelease}%{?nightly}%{?dist}
|
|
Summary: Puppet-based installer for The Foreman
|
|
Group: Applications/System
|
|
License: GPLv3+ and ASL 2.0
|
|
URL: https://theforeman.org
|
|
Source0: https://downloads.theforeman.org/%{name}/%{name}-%{version}%{?prerelease:-}%{?prerelease}.tar.bz2
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: curl
|
|
Requires: %{?scl_prefix}puppet-agent >= 5.5.10
|
|
Requires: %{?scl_prefix}rubygem-kafo >= 3.0.0
|
|
Requires: foreman-selinux
|
|
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
Requires: %{?scl_prefix}rubygem-highline
|
|
|
|
BuildRequires: asciidoc
|
|
BuildRequires: rubygem(rake)
|
|
BuildRequires: %{?scl_prefix}puppet-agent >= 1.9.0
|
|
BuildRequires: %{?scl_prefix}rubygem-kafo >= 2.1.0
|
|
BuildRequires: puppet-agent-puppet-strings >= 1.2.0
|
|
BuildRequires: puppet-agent-puppet-strings < 3
|
|
|
|
%description
|
|
Complete installer for The Foreman life-cycle management system based on Puppet.
|
|
|
|
%package katello
|
|
Summary: Katello installer bits
|
|
Group: Applications/System
|
|
Provides: katello-installer-base < 3.11.0-1
|
|
Obsoletes: katello-installer-base < 3.11.0-1
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
Requires: openssl
|
|
Requires: katello-selinux
|
|
Requires: katello-certs-tools
|
|
Requires: foreman-maintain
|
|
|
|
%description katello
|
|
Various scenarios and tools for the Katello ecosystem
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}%{?prerelease:-}%{?prerelease}
|
|
|
|
%build
|
|
#replace shebangs for SCL
|
|
%if %{?scl:1}%{!?scl:0}
|
|
sed -ri '1sX(/usr/bin/ruby|/usr/bin/env ruby)X/usr/bin/%{?scl:%{scl_prefix}}rubyX' bin/foreman-installer bin/foreman-proxy-certs-generate bin/katello-certs-check
|
|
%endif
|
|
rake build \
|
|
VERSION=%{version} \
|
|
LOCALSTATEDIR=%{_localstatedir} \
|
|
PREFIX=%{_prefix} \
|
|
SBINDIR=%{_sbindir} \
|
|
SYSCONFDIR=%{_sysconfdir} \
|
|
--trace
|
|
|
|
%install
|
|
rake install \
|
|
PREFIX=%{buildroot}%{_prefix} \
|
|
LOCALSTATEDIR=%{buildroot}%{_localstatedir} \
|
|
SBINDIR=%{buildroot}%{_sbindir} \
|
|
SYSCONFDIR=%{buildroot}%{_sysconfdir} \
|
|
--trace
|
|
|
|
%post
|
|
foreman-installer --scenario foreman --migrations-only > /dev/null
|
|
|
|
%post katello
|
|
foreman-installer --scenario foreman-proxy-content --migrations-only > /dev/null
|
|
foreman-installer --scenario katello --migrations-only > /dev/null
|
|
|
|
%pretrans katello
|
|
# RPM can't change a directory into a symlink
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=447156
|
|
for scenario in foreman-proxy-content katello ; do
|
|
MIGRATIONS=%{_sysconfdir}/%{name}/scenarios.d/$scenario.migrations
|
|
if [ -d $MIGRATIONS ] ; then
|
|
mv $MIGRATIONS/.applied %{_sysconfdir}/%{name}/scenarios.d/$scenario-migrations-applied
|
|
rm -rf $MIGRATIONS
|
|
fi
|
|
done
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.*
|
|
%license LICENSE
|
|
%dir %{_sysconfdir}/%{name}
|
|
%config(noreplace) %{_sysconfdir}/%{name}/custom-hiera.yaml
|
|
%dir %{_sysconfdir}/%{name}/scenarios.d
|
|
%{_sysconfdir}/%{name}/scenarios.d/foreman.migrations
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/%{name}/scenarios.d/foreman.yaml
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/%{name}/scenarios.d/foreman-answers.yaml
|
|
%config(noreplace) %{_sysconfdir}/%{name}/scenarios.d/foreman-migrations-applied
|
|
%{_sbindir}/%{name}
|
|
%{_datadir}/%{name}
|
|
%{_mandir}/man8
|
|
|
|
# katello files
|
|
%exclude %{_datadir}/%{name}/config/foreman-proxy-content*
|
|
%exclude %{_datadir}/%{name}/config/katello*
|
|
%exclude %{_datadir}/%{name}/katello
|
|
%exclude %{_datadir}/%{name}/katello-certs
|
|
%exclude %{_datadir}/%{name}/parser_cache/foreman-proxy-certs.yaml
|
|
%exclude %{_datadir}/%{name}/parser_cache/foreman-proxy-content.yaml
|
|
%exclude %{_datadir}/%{name}/parser_cache/katello.yaml
|
|
|
|
%files katello
|
|
# common
|
|
%{_sbindir}/katello-certs-check
|
|
%{_datadir}/%{name}/katello
|
|
|
|
# foreman-proxy-content scenario
|
|
%{_datadir}/%{name}/config/foreman-proxy-content*
|
|
%{_datadir}/%{name}/parser_cache/foreman-proxy-content.yaml
|
|
%{_sysconfdir}/%{name}/scenarios.d/foreman-proxy-content.migrations
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/%{name}/scenarios.d/foreman-proxy-content.yaml
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/%{name}/scenarios.d/foreman-proxy-content-answers.yaml
|
|
%config(noreplace) %{_sysconfdir}/%{name}/scenarios.d/foreman-proxy-content-migrations-applied
|
|
|
|
# katello scenario
|
|
%{_datadir}/%{name}/config/katello*
|
|
%{_datadir}/%{name}/parser_cache/katello.yaml
|
|
%{_sysconfdir}/%{name}/scenarios.d/katello.migrations
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/%{name}/scenarios.d/katello.yaml
|
|
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/%{name}/scenarios.d/katello-answers.yaml
|
|
%config(noreplace) %{_sysconfdir}/%{name}/scenarios.d/katello-migrations-applied
|
|
|
|
# foreman-proxy-certs-generate
|
|
%{_datadir}/%{name}/katello-certs
|
|
%{_datadir}/%{name}/parser_cache/foreman-proxy-certs.yaml
|
|
%{_sbindir}/foreman-proxy-certs-generate
|
|
|
|
%changelog
|
|
* Tue Jul 30 2019 Evgeni Golov - 1:1.24.0-0.1.develop
|
|
- Bump version to 1.24-develop
|
|
|
|
* Tue May 21 2019 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.23.0-0.2.develop
|
|
- Require at least Puppet 5.5.10 (#26844)
|
|
|
|
* Tue Apr 23 2019 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.23.0-0.1.develop
|
|
- Bump version to 1.23-develop
|
|
|
|
* Fri Mar 08 2019 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.22.0-0.3.develop
|
|
- Update to Kafo 3 (#26282)
|
|
- Require Puppet >= 5.5.8 (#26339)
|
|
- Require puppet-agent-puppet-strings >= 1.2.0
|
|
|
|
* Fri Feb 22 2019 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.22.0-0.2.develop
|
|
- Remove katello-service dependency (#26111)
|
|
|
|
* Wed Jan 16 2019 Evgeni Golov <evgeni@golov.de> - 1:1.22.0-0.1.develop
|
|
- Bump to 1.22
|
|
|
|
* Wed Dec 12 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.21.0-0.3.develop
|
|
- Add Katello installer subpackage
|
|
|
|
* Wed Oct 24 2018 Adam Price <komidore64@gmail.com> - 1:1.21.0-0.2.develop
|
|
- add nightly macro
|
|
|
|
* Wed Oct 17 2018 Eric D. Helms <ericdhelms@gmail.com> - 1:1.21.0-0.1.develop
|
|
- Bump version to 1.21 and reset release
|
|
|
|
* Wed Jul 25 2018 Eric D. Helms <ericdhelms@gmail.com> - 1:1.20.0-0.1.develop
|
|
- Add prerelease macro
|
|
|
|
* Tue Jul 17 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.20.0-0.develop
|
|
- Bump version to 1.20-develop
|
|
|
|
* Thu May 31 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1:1.19.0-0.develop
|
|
- Bump version to 1.19-develop
|
|
|
|
* Mon Aug 28 2017 Daniel Lobato Garcia <me@daniellobato.me> - 1.17.0-0.develop
|
|
- Bump version to 1.17-develop
|
|
|
|
* Wed Mar 29 2017 Eric D Helms <ericdhelms@gmail.com> - 1.16.0-0.develop
|
|
- Bump version to 1.16-develop
|
|
|
|
* Tue Dec 06 2016 Dominic Cleal <dominic@cleal.org> - 1.15.0-0.develop
|
|
- Bump version to 1.15-develop
|
|
|
|
* Wed Sep 07 2016 Dominic Cleal <dominic@cleal.org> - 1.14.0-0.develop
|
|
- Bump version to 1.14-develop
|
|
|
|
* Tue May 31 2016 Dominic Cleal <dominic@cleal.org> - 1.13.0-0.develop
|
|
- Bump version to 1.13-develop
|
|
|
|
* Fri Feb 19 2016 Dominic Cleal <dominic@cleal.org> - 1.12.0-0.develop
|
|
- Bump version to 1.12-develop
|
|
|
|
* Wed Oct 07 2015 Dominic Cleal <dcleal@redhat.com> - 1.11.0-0.develop
|
|
- Bump version to 1.11-develop
|
|
|
|
* Fri Jun 26 2015 Dominic Cleal <dcleal@redhat.com> - 1.10.0-0.develop
|
|
- Bump version to 1.10-develop
|
|
|
|
* Tue Mar 03 2015 Dominic Cleal <dcleal@redhat.com> - 1.9.0-0.develop
|
|
- Bump version to 1.9-develop
|
|
|
|
* Tue Oct 28 2014 Dominic Cleal <dcleal@redhat.com> - 1.8.0-0.develop
|
|
- Bump version to 1.8-develop
|
|
|
|
* Mon Aug 11 2014 Dominic Cleal <dcleal@redhat.com> - 1.7.0-0.develop
|
|
- Bump version to 1.7-develop
|
|
|
|
* Wed Apr 16 2014 Dominic Cleal <dcleal@redhat.com> - 1.6.0-0.develop
|
|
- Bump to version 1.6-develop
|
|
|
|
* Thu Jan 16 2014 Dominic Cleal <dcleal@redhat.com> - 1.5.0-0.develop
|
|
- Bump to version 1.5-develop
|
|
|
|
* Thu Nov 21 2013 Dominic Cleal <dcleal@redhat.com> - 1.4.0-0.develop
|
|
- Bump and change versioning scheme (#3712)
|
|
|
|
* Fri Nov 08 2013 Marek Hulan <mhulan[@]redhat.com> - 1.3.9999-4
|
|
- upgrade to kafo 0.3.0
|
|
|
|
* Thu Sep 12 2013 Marek Hulan <mhulan[@]redhat.com> - 1.3.9999-3
|
|
- set config flag on configuration files
|
|
|
|
* Thu Sep 12 2013 Marek Hulan <mhulan[@]redhat.com> - 1.3.9999-2
|
|
- config files packaging fix
|
|
|
|
* Wed Sep 11 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.3.9999-1
|
|
- bump to version 1.3-develop
|
|
|
|
* Mon Jul 22 2013 Marek Hulan <mhulan[@]redhat.com> - 1.2.9999-3
|
|
- new files structure for a installer based on kafo
|
|
|
|
* Mon Jul 22 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.2.9999-2
|
|
- adding foreman_api as a dependency
|
|
|
|
* Thu May 23 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.2.9999-1
|
|
- initial version
|