New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #10161 - Convert foreman-installer config to scenario #996
Closed
mbacovsky
wants to merge
1
commit into
theforeman:rpm/develop
from
mbacovsky:rpm/foreman-installer_scenarios
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ BuildArch: noarch | |
|
||
Requires: curl | ||
Requires: %{?scl_prefix}puppet >= 3.0.0 | ||
Requires: %{?scl_prefix}rubygem-kafo >= 0.6.5 | ||
Requires: %{?scl_prefix}rubygem-kafo >= 0.7.1 | ||
Requires: %{?scl_prefix}rubygem-apipie-bindings >= 0.0.6 | ||
Requires: foreman-selinux | ||
|
||
|
@@ -31,7 +31,7 @@ Requires: %{?scl_prefix}rubygem-highline | |
BuildRequires: asciidoc | ||
BuildRequires: rubygem(rake) | ||
BuildRequires: %{?scl_prefix}puppet >= 3.0.0 | ||
BuildRequires: %{?scl_prefix}rubygem-kafo | ||
BuildRequires: %{?scl_prefix}rubygem-kafo >= 0.7.1 | ||
|
||
%description | ||
Complete installer for The Foreman life-cycle management system based on Puppet. | ||
|
@@ -58,11 +58,16 @@ rake install \ | |
SYSCONFDIR=%{buildroot}%{_sysconfdir} \ | ||
--trace | ||
|
||
%post | ||
foreman-installer --scenario foreman --migrations-only > /dev/null | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc README.* LICENSE | ||
%config %attr(600, root, root) %{_sysconfdir}/foreman/%{name}.yaml | ||
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/foreman/%{name}-answers.yaml | ||
%dir %{_sysconfdir}/foreman-installer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick, prefer %{name} rather than repeating foreman-installer here and below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed in 5ea91c1. |
||
%dir %{_sysconfdir}/foreman-installer/scenarios.d | ||
%config %attr(600, root, root) %{_sysconfdir}/foreman-installer/scenarios.d/foreman.yaml | ||
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/foreman-installer/scenarios.d/foreman-answers.yaml | ||
%{_sbindir}/foreman-installer | ||
%{_datadir}/%{name} | ||
%{_mandir}/man8 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is specifying the scenario here going to cause any problems if more are added to the package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be run for each scenario. It is here for the configuration to get updated before users can touch it and is more of cosmetic thing.
Installer ensures the migrations are run on its start anyway.