forked from theforeman/foreman-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #33864 - Disable registration on upgrades
In Foreman 3.1 the registration module requires templates where it previously worked standalone. In a Foreman or Katello scenario the registration module doesn't make sense since the clients can connect directly to a Foreman, which makes the indirection redundant. The Smart Proxy may also not have plain HTTP enabled which then breaks things. It is explicitly enabled by default in the foreman-proxy-content scenario because there templates is enabled by default, which makes it safe to enable registration.
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 deletions.
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
6 changes: 6 additions & 0 deletions
6
...g/foreman-proxy-content.migrations/211108174119-disable-registration-without-templates.rb
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# In Foreman 3.1 the registration module requires templates where it previously | ||
# worked standalone. | ||
# https://github.com/theforeman/puppet-foreman_proxy/commit/6f64423e7ca25c8b58f8da4d371172c22eb9b0e3 | ||
if answers['foreman_proxy'].is_a?(Hash) && answers['foreman_proxy']['registration'] && !answers['foreman_proxy']['templates'] | ||
answers['foreman_proxy']['registration'] = false | ||
end |
6 changes: 6 additions & 0 deletions
6
config/foreman.migrations/20211108174119_disable_registration_without_templates.rb
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# In Foreman 3.1 the registration module requires templates where it previously | ||
# worked standalone. | ||
# https://github.com/theforeman/puppet-foreman_proxy/commit/6f64423e7ca25c8b58f8da4d371172c22eb9b0e3 | ||
if answers['foreman_proxy'].is_a?(Hash) && answers['foreman_proxy']['registration'] && !answers['foreman_proxy']['templates'] | ||
answers['foreman_proxy']['registration'] = false | ||
end |
6 changes: 6 additions & 0 deletions
6
config/katello.migrations/211108174119-disable-registration-without-templates.rb
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# In Foreman 3.1 the registration module requires templates where it previously | ||
# worked standalone. | ||
# https://github.com/theforeman/puppet-foreman_proxy/commit/6f64423e7ca25c8b58f8da4d371172c22eb9b0e3 | ||
if answers['foreman_proxy'].is_a?(Hash) && answers['foreman_proxy']['registration'] && !answers['foreman_proxy']['templates'] | ||
answers['foreman_proxy']['registration'] = false | ||
end |
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