foreman_theme_satellite 15.0.1 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57d1c10a945a4ca3a9acb424095ac0c06cc3c0e5ff80b81845fb70557bf407c4
4
- data.tar.gz: e6bdbe897bb42bf32c56ce145da297ae3f4a9c7ea8482ecfd1b7cdd2097c4855
3
+ metadata.gz: 28d862fbdb104b79fa833150bb249feab7187f414864781f125cb257ba515dd4
4
+ data.tar.gz: 50f529104715b7cc4946768896f85aa01f1fa33b1efa84f6f45395c2440c1a1c
5
5
  SHA512:
6
- metadata.gz: 283e64a919a07d076d10cc48f29a7fe0b04c0e18b3cfe79e776776af8fc42e55ca222d90cee4a9de8b48796f32ad3e0fdb7b3ed40e23febb0b8c1352f0d3ff0d
7
- data.tar.gz: 53025f3274b9f40da49cc3e38e127c9aa006fe82af9abfde896fb75d30e0d897dca1a207fd1a74e9c3258ae23ea607d88653a743436a4a57156438f295972c48
6
+ metadata.gz: 60a19d65b32f48568cd7c50e4a2afd0ed3313e4e217b3b52b888834cecdace43dfb3c961f00fcdcfa5e17ae35e94d9af0152d8e25722860e09a2bad48f8bb582
7
+ data.tar.gz: 647be6e21bb8a1508828af5ab46f7c7854e7654c72ef0fe0c0826ea5e9068a750a5b8f1a317929576c0f529eed3b3592d287620185c8f75ca793f125c1f0d6e7
data/README.md CHANGED
@@ -361,7 +361,6 @@ class ComputeResource < ApplicationRecord
361
361
  def self.supported_providers
362
362
  {
363
363
  'Libvirt' => 'Foreman::Model::Libvirt',
364
- 'Ovirt' => 'Foreman::Model::Ovirt',
365
364
  'EC2' => 'Foreman::Model::EC2',
366
365
  'Vmware' => 'Foreman::Model::Vmware',
367
366
  'Openstack' => 'Foreman::Model::Openstack',
@@ -379,7 +378,7 @@ module ComputeResourceBranding
379
378
  end
380
379
 
381
380
  def providers_requiring_url
382
- _('Libvirt, oVirt and OpenStack')
381
+ _('Libvirt and OpenStack')
383
382
  end
384
383
  end
385
384
  end
@@ -29,6 +29,10 @@ module DocumentationControllerBranding
29
29
  documentation_url(section)
30
30
  end
31
31
 
32
+ def support_url
33
+ 'https://access.redhat.com/products/red-hat-satellite#get-support'
34
+ end
35
+
32
36
  # For new documentation at docs.theforeman.org
33
37
  # We do not use flavor downstream, but keeping it here for the same method signature
34
38
  # rubocop:disable Lint/UnusedMethodArgument
@@ -36,5 +40,14 @@ module DocumentationControllerBranding
36
40
  url = ForemanThemeSatellite::Documentation::DOCS_GUIDES_LINKS.dig(guide, chapter)
37
41
  url || "#{ForemanThemeSatellite.documentation_root}/#{guide.downcase}/#{chapter}"
38
42
  end
43
+
44
+ def upgrade_url(section)
45
+ case section
46
+ when 'documentation'
47
+ "#{ForemanThemeSatellite.unversioned_documentation_root}#Upgrade"
48
+ when 'helper'
49
+ 'https://access.redhat.com/labs/satelliteupgradehelper'
50
+ end
51
+ end
39
52
  # rubocop:enable Lint/UnusedMethodArgument
40
53
  end
@@ -47,8 +47,6 @@ module ProvisioningTemplatesControllerBranding
47
47
  'kickstart_ifcfg_get_identifier_names',
48
48
  'kickstart_kernel_options',
49
49
  'kickstart_networking_setup',
50
- 'Kickstart oVirt-RHVH',
51
- 'Kickstart oVirt-RHVH PXELinux',
52
50
  'kickstart_rhsm',
53
51
  'Linux host_init_config default',
54
52
  'ntp',
@@ -22,7 +22,6 @@ module ForemanThemeSatellite
22
22
  'ComputeResources' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/",
23
23
  'NoVNC' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/configuring_provisioning_resources_provisioning#using-novnc-to-access-virtual-machines_provisioning",
24
24
  'VMwareNotes' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_virtual_machines_in_vmware_vmware-provisioning",
25
- 'RHEVNotes' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_virtual_machines_on_ovirt_rhv-provisioning",
26
25
  'OpenStackNotes' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_cloud_instances_openstack_openstack-provisioning",
27
26
  'LibvirtNote' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_virtual_machines_on_kvm_kvm-provisioning",
28
27
  'EC2' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_cloud_instances_in_amazon_ec2_ec2-provisioning",
@@ -41,7 +40,7 @@ module ForemanThemeSatellite
41
40
  'ConfigurationOptions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/",
42
41
  'PuppetReports' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/monitoring_resources_admin#Using_the_Project_Content_Dashboard_admin",
43
42
  'Mail_Notifications' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/configuring_email_notifications_admin",
44
- 'Realm' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring-external-services#configuring-project-to-manage-the-lifecycle-of-a-host-registered-to-a-freeipa-realm_satellite",
43
+ 'Realm' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/performing-additional-configuration-on-server_satellite#configuring-project-to-manage-the-lifecycle-of-a-host-registered-to-a-freeipa-realm_satellite",
45
44
  'Searching' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/searching_and_bookmarking_admin",
46
45
  'RolesandPermissions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/managing_users_and_roles_admin",
47
46
  'LDAPAuthentication' => "#{ForemanThemeSatellite.documentation_root}/configuring_authentication_for_red_hat_satellite_users/configuring-an-ldap-server-as-an-external-identity-provider-for-project_authentication",
@@ -51,7 +50,7 @@ module ForemanThemeSatellite
51
50
  'CreatingSCAPcontent' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/configuring_scap_contents_security-compliance",
52
51
 
53
52
  # Planning
54
- 'SmartProxies' => "#{ForemanThemeSatellite.documentation_root}/overview_concepts_and_deployment_considerations/major-satellite-components_planning#capsule-Overview_planning",
53
+ 'SmartProxies' => "#{ForemanThemeSatellite.documentation_root}/overview_concepts_and_deployment_considerations/satellite-overview-and-concepts#Major-Satellite-Components_planning",
55
54
  'Auditing' => "#{ForemanThemeSatellite.documentation_root}/overview_concepts_and_deployment_considerations/glossary-of-terms-used-in-satellite_planning#Audits",
56
55
 
57
56
  # Install
@@ -69,7 +69,6 @@ module ForemanThemeSatellite
69
69
  ::ForemanGoogle::GCE.send(:prepend, GCE::ClassMethods) if Foreman::Plugin.installed?("foreman_google")
70
70
  UINotifications::RssNotificationsChecker.send :prepend, RssCheckerBranding
71
71
  Foreman::Model::Openstack.send :include, Openstack
72
- Foreman::Model::Ovirt.send :include, Ovirt
73
72
  Realm.send :include, RealmTheme
74
73
  ProvisioningTemplate.send :include, Provisioning
75
74
 
@@ -137,7 +136,13 @@ module ForemanThemeSatellite
137
136
 
138
137
  def self.documentation_root
139
138
  @documentation_root ||= begin
140
- "#{documentation_server}/documentation/en-us/red_hat_satellite/#{documentation_version}/html"
139
+ "#{unversioned_documentation_root}/#{documentation_version}/html"
140
+ end
141
+ end
142
+
143
+ def self.unversioned_documentation_root
144
+ @unversioned_documentation_root ||= begin
145
+ "#{documentation_server}/documentation/en-us/red_hat_satellite"
141
146
  end
142
147
  end
143
148
 
@@ -33,7 +33,6 @@ module ForemanThemeSatellite
33
33
  /\b[Ss]mart[- ]?[pP]roxies\b(?!-)/ => 'Capsules',
34
34
  /\b[Pp]roxy\b(?!-)/ => 'Capsule',
35
35
  /\b[Pp]roxies\b(?!-)/ => 'Capsules',
36
- /\b[Oo][Vv]irt\b(?!-)/ => 'RHV',
37
36
  /\bFreeIPA\b(?!-)/ => 'Red Hat Identity Management',
38
37
  /\b[Oo]pen[Ss]tack\b(?!-)/ => 'Red Hat OpenStack Platform',
39
38
  /\b[Kk]atello 4.0\b(?!-)/ => 'Satellite 6.11',
@@ -1,3 +1,3 @@
1
1
  module ForemanThemeSatellite
2
- VERSION = '15.0.1'.freeze
2
+ VERSION = '15.2.0'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_theme_satellite",
3
- "version": "15.0.1",
3
+ "version": "15.1.0",
4
4
  "description": "Satellite theme =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+
3
+ import { Card, CardBody, CardTitle, CardFooter, Button } from '@patternfly/react-core';
4
+ import { ExternalLinkSquareAltIcon } from '@patternfly/react-icons';
5
+
6
+ import { translate as __ } from 'foremanReact/common/I18n';
7
+ import { getUpgradeURL } from 'foremanReact/common/helpers';
8
+
9
+ const SatelliteUpgradeHelperCard = () => (
10
+ <Card ouiaId="upgrade-docs-satellite-helper" isFlat>
11
+ <CardTitle component="h4">{__('Satellite upgrade helper')}</CardTitle>
12
+ <CardBody>
13
+ {__('Generate a customized upgrade plan based on your current Satellite environment.' +
14
+ ' This tool will guide you through the upgrade process and provide additional steps to avoid known issues specific to your upgrade scenario.')}
15
+ </CardBody>
16
+ <CardFooter>
17
+ <Button
18
+ ouiaId="upgrade-helper-button"
19
+ component="a"
20
+ variant="link"
21
+ icon={<ExternalLinkSquareAltIcon />}
22
+ iconPosition="right"
23
+ target="_blank"
24
+ isInline
25
+ href={getUpgradeURL('helper')}
26
+ >
27
+ {__('Try the Satellite upgrade helper')}
28
+ </Button>
29
+ </CardFooter>
30
+ </Card>
31
+ );
32
+
33
+ export default SatelliteUpgradeHelperCard;
data/webpack/index.js CHANGED
@@ -1,5 +1,27 @@
1
+ import React from 'react';
2
+
1
3
  import componentRegistry from 'foremanReact/components/componentRegistry';
4
+ import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';
5
+ import { translate as __ } from 'foremanReact/common/I18n';
2
6
  import { Helmet } from 'react-helmet';
3
7
 
8
+ import SatelliteUpgradeHelperCard from './components/fills/UpgradePage/SatelliteUpgradeHelperCard';
9
+
4
10
  // register components for erb mounting
5
11
  componentRegistry.register({ name: 'Helmet', type: Helmet });
12
+
13
+ addGlobalFill(
14
+ 'upgrade-page-additional-docs',
15
+ 'Satellite upgrade helper card',
16
+ <SatelliteUpgradeHelperCard key="satellite-upgrade-helper-card" />,
17
+ 1000,
18
+ );
19
+ addGlobalFill(
20
+ 'upgrade-page-footer',
21
+ 'Satellite upgrade page footer',
22
+ {
23
+ helpDesc: __('If you require assistance or encounter issues, reach out to Red Hat Support or explore the resources available in the Customer Portal for troubleshooting.'),
24
+ helpLinkText: __('Contact support'),
25
+ },
26
+ 1000,
27
+ );
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_theme_satellite
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.0.1
4
+ version: 15.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimon Stein
8
8
  - Eric Helms
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-08 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -105,7 +105,6 @@ files:
105
105
  - app/controllers/concerns/documentation_controller_branding.rb
106
106
  - app/controllers/concerns/provisioning_templates_controller_branding.rb
107
107
  - app/helpers/provisioning_templates_helper_branding.rb
108
- - app/helpers/rhev_helper.rb
109
108
  - app/helpers/theme_application_helper.rb
110
109
  - app/helpers/theme_css_class_helper.rb
111
110
  - app/helpers/theme_discovery_helper.rb
@@ -117,7 +116,6 @@ files:
117
116
  - app/models/concerns/distributor_version.rb
118
117
  - app/models/concerns/gce.rb
119
118
  - app/models/concerns/openstack.rb
120
- - app/models/concerns/ovirt.rb
121
119
  - app/models/concerns/provisioning.rb
122
120
  - app/models/concerns/realm_theme.rb
123
121
  - app/models/concerns/satellite_packages.rb
@@ -128,15 +126,12 @@ files:
128
126
  - app/overrides/layouts/base/theme_react_root.html.erb.deface
129
127
  - app/overrides/layouts/base/theme_resources.html.erb.deface
130
128
  - app/overrides/layouts/base/theme_style_resources.html.erb.deface
131
- - app/overrides/rhev.rb
132
129
  - app/overrides/satellite_name_override.rb
133
130
  - app/services/concerns/setting_registry_branding.rb
134
131
  - app/services/foreman_theme_satellite/lifecycle.rb
135
132
  - app/services/foreman_theme_satellite/renderer_methods.rb
136
133
  - app/views/api/v2/home/status_extensions.json.rabl
137
134
  - app/views/foreman_theme_satellite/_theme_client_side_branding.js.erb
138
- - app/views/foreman_theme_satellite/rhev/_form.erb
139
- - app/views/foreman_theme_satellite/rhev/_show.html.erb
140
135
  - config/initializers/inflections.rb
141
136
  - config/initializers/zeitwerk.rb
142
137
  - db/migrate/20160404130619_remove_satellite_from_notification_name.rb
@@ -181,6 +176,7 @@ files:
181
176
  - locale/zh_CN/LC_MESSAGES/foreman_theme_satellite.mo
182
177
  - locale/zh_CN/foreman_theme_satellite.po
183
178
  - package.json
179
+ - webpack/components/fills/UpgradePage/SatelliteUpgradeHelperCard.js
184
180
  - webpack/index.js
185
181
  homepage: https://github.com/RedHatSatellite/foreman_theme_satellite
186
182
  licenses:
@@ -201,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
197
  - !ruby/object:Gem::Version
202
198
  version: '0'
203
199
  requirements: []
204
- rubygems_version: 3.6.2
200
+ rubygems_version: 3.6.7
205
201
  specification_version: 4
206
202
  summary: This is a plugin that enables building a theme for Foreman.
207
203
  test_files: []
@@ -1,10 +0,0 @@
1
- module RhevHelper
2
- def rhev_deprecation_alert
3
- header = _('RHEV integration is deprecated.')
4
- text = _('On August 31, 2022, Red Hat Virtualization entered the Maintenance Support Phase. The Maintenance Support Phase runs until August 31, 2024, followed by the Extended Life Phase, which runs until August 31, 2026.')
5
- link = link_to(_('More information'), 'https://access.redhat.com/announcements/6960518', target: '_blank', rel: 'noopener')
6
- alert = "<strong>#{header}</strong><p>#{text}&nbsp;#{link}</p>"
7
-
8
- content_tag(:div, alert.html_safe, class: 'alert alert-warning')
9
- end
10
- end
@@ -1,8 +0,0 @@
1
- module Ovirt
2
- extend ActiveSupport::Concern
3
- included do
4
- define_singleton_method :provider_friendly_name do
5
- "RHV"
6
- end
7
- end
8
- end
@@ -1,14 +0,0 @@
1
- Deface::Override.new(virtual_path: 'compute_resources/form/_ovirt',
2
- name: 'rhev_new',
3
- insert_before: "erb[loud]:contains(':url')",
4
- partial: 'foreman_theme_satellite/rhev/form')
5
-
6
- Deface::Override.new(virtual_path: 'compute_resources/show/_ovirt',
7
- name: 'rhev_show',
8
- insert_after: 'tr:nth-child(4)',
9
- partial: 'foreman_theme_satellite/rhev/show')
10
-
11
- Deface::Override.new(virtual_path: 'compute_resources_vms/form/ovirt/_base',
12
- name: 'rhev_vm',
13
- insert_after: "erb[loud]:contains(':keyboard_layout')",
14
- partial: 'foreman_theme_satellite/rhev/form')
@@ -1,8 +0,0 @@
1
- <div class="clearfix">
2
- <div class="form-group ">
3
- <label class="col-md-2 control-label">&nbsp;</label>
4
- <div class="col-md-8">
5
- <%= rhev_deprecation_alert %>
6
- </div>
7
- </div>
8
- </div>
@@ -1,6 +0,0 @@
1
- <tr>
2
- <td>&nbsp;</td>
3
- <td colspan="2">
4
- <%= rhev_deprecation_alert %>
5
- </td>
6
- </tr>