foreman_theme_satellite 16.3.0 → 16.4.1
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 +4 -4
- data/README.md +14 -3
- data/app/assets/stylesheets/foreman_theme_satellite/topbar.scss +1 -1
- data/lib/foreman_theme_satellite/documentation.rb +17 -14
- data/lib/foreman_theme_satellite/engine.rb +6 -1
- data/{app/services → lib}/foreman_theme_satellite/lifecycle.rb +7 -4
- data/lib/foreman_theme_satellite/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32be64dac79d555b3e377502e059e1b3dd5a8fabcb459dbc8b778758a3b51409
|
|
4
|
+
data.tar.gz: eeb1151190cad9e338da092c25e2e96132e55b57a3f75763e730de42c50a2c91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50fe01b8ea75504bb0e290df0330b46cebe71f87df6f7778b9aa8f77fa7094ef31faca80e104c15319f855736096f0b2a3266900a5ca0b0d55e3fe45e05fb634
|
|
7
|
+
data.tar.gz: ff22352113ead26533ea39802ae51f214cc203165a897a1b2196d1e02d5a8555b932f8b7dbd469192e73fc16e00b009c8b971531f0724a4e9f21939a22254ff3
|
data/README.md
CHANGED
|
@@ -422,11 +422,17 @@ version: '6.8.000'
|
|
|
422
422
|
documentation_version: "6.6"
|
|
423
423
|
```
|
|
424
424
|
the metadata file should be called `/usr/share/satellite/metadata.yml` for
|
|
425
|
-
production style deployments, or used from
|
|
425
|
+
production style deployments, or used from the
|
|
426
426
|
[source](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/config/metadata.yml)
|
|
427
|
-
directory for development and test environments.
|
|
427
|
+
directory for development and test environments. `SATELLITE_VERSION` and the
|
|
428
|
+
`version` key take precedence over the lifecycle metadata.
|
|
428
429
|
|
|
429
|
-
The
|
|
430
|
+
The Satellite version is also provided by the `satellite-lifecycle` package in
|
|
431
|
+
`/usr/share/satellite/lifecycle-metadata.yml` as `satellite_version`. This is
|
|
432
|
+
used when the main metadata file is unavailable. If neither file is present,
|
|
433
|
+
the theme falls back to `6.20.0-development`.
|
|
434
|
+
|
|
435
|
+
The mechanism resides in the theme's
|
|
430
436
|
[`engine.rb`](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/lib/foreman_theme_satellite/engine.rb#L119)
|
|
431
437
|
|
|
432
438
|
## Testing documentation
|
|
@@ -446,6 +452,11 @@ Another option is to add or change keys in `/usr/share/satellite/metadata.yml`:
|
|
|
446
452
|
documentation_version: "6.6"
|
|
447
453
|
```
|
|
448
454
|
|
|
455
|
+
The Satellite version itself is normally supplied by
|
|
456
|
+
`/usr/share/satellite/lifecycle-metadata.yml` from the `satellite-lifecycle`
|
|
457
|
+
package. Use the `version` key in `metadata.yml` or `SATELLITE_VERSION` only
|
|
458
|
+
when an explicit override is required.
|
|
459
|
+
|
|
449
460
|
There is also an automatic test that tests all documentation links on each PR,
|
|
450
461
|
for the test to work
|
|
451
462
|
[`metadata.yml`](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/config/metadata.yml)
|
|
@@ -14,19 +14,19 @@ module ForemanThemeSatellite
|
|
|
14
14
|
# Provisioning Hosts
|
|
15
15
|
'Architectures' => "provisioning_hosts/index#creating-architectures-by-using-web-ui",
|
|
16
16
|
'Provisioning' => "provisioning_hosts/index",
|
|
17
|
-
'InstallationMedia' => "provisioning_hosts/index#adding-installation-media-by-using-web-ui",
|
|
17
|
+
'InstallationMedia' => "provisioning_hosts/index#adding-installation-media-to-satellite-by-using-web-ui",
|
|
18
18
|
'PartitionTables' => "provisioning_hosts/index#creating-partition-tables-by-using-web-ui",
|
|
19
19
|
'ProvisioningTemplates' => "provisioning_hosts/index#provisioning-templates",
|
|
20
20
|
'OperatingSystems' => "provisioning_hosts/index#creating-operating-systems-by-using-web-ui",
|
|
21
21
|
'UsingComputeProfiles' => "provisioning_hosts/index#creating-compute-profiles-by-using-web-ui",
|
|
22
22
|
'ComputeResources' => "provisioning_hosts/index",
|
|
23
|
-
'NoVNC' => "provisioning_hosts/index#using-novnc-to-access-virtual-
|
|
24
|
-
'VMwareNotes' => "provisioning_hosts/index#
|
|
25
|
-
'OpenStackNotes' => "provisioning_hosts/index#
|
|
26
|
-
'LibvirtNote' => "provisioning_hosts/index#
|
|
23
|
+
'NoVNC' => "provisioning_hosts/index#using-novnc-to-access-virtual-machines",
|
|
24
|
+
'VMwareNotes' => "provisioning_hosts/index#provisioning-virtual-machines-in-vmware",
|
|
25
|
+
'OpenStackNotes' => "provisioning_hosts/index#provisioning-cloud-instances-on-red-hat-openstack-services-on-openshift",
|
|
26
|
+
'LibvirtNote' => "provisioning_hosts/index#provisioning-virtual-machines-on-kvm",
|
|
27
27
|
'EC2' => "provisioning_hosts/index#provisioning-cloud-instances-on-amazon-ec2",
|
|
28
|
-
'GoogleComputeEngineNotes' => "provisioning_hosts/index#
|
|
29
|
-
'Networking' => "provisioning_hosts/index#adding-a-subnet-to-server-by-using-web-ui",
|
|
28
|
+
'GoogleComputeEngineNotes' => "provisioning_hosts/index#provisioning-cloud-instances-on-google-compute-engine",
|
|
29
|
+
'Networking' => "provisioning_hosts/index#adding-a-subnet-to-satellite-server-by-using-web-ui",
|
|
30
30
|
|
|
31
31
|
# Puppet Guide
|
|
32
32
|
'FactsandtheENC' => "managing_configurations_by_using_puppet_integration/index#high-level-steps-for-configuration-management-with-puppet",
|
|
@@ -40,12 +40,12 @@ module ForemanThemeSatellite
|
|
|
40
40
|
'ConfigurationOptions' => "administering_red_hat_satellite/index",
|
|
41
41
|
'PuppetReports' => "administering_red_hat_satellite/index#Using_the_Project_Content_Dashboard_admin",
|
|
42
42
|
'Mail_Notifications' => "administering_red_hat_satellite/index#Configuring_Email_Notifications_admin",
|
|
43
|
-
'Realm' => "
|
|
44
|
-
'Searching' => "administering_red_hat_satellite/index#
|
|
43
|
+
'Realm' => "integrating_provisioning_infrastructure_services/index#configuring-satellite-to-manage-the-lifecycle-of-a-host-registered-to-a-identity-management-realm",
|
|
44
|
+
'Searching' => "administering_red_hat_satellite/index#working-efficiently-with-web-ui",
|
|
45
45
|
'RolesandPermissions' => "administering_red_hat_satellite/index#Managing_Users_and_Roles_admin",
|
|
46
46
|
'LDAPAuthentication' => "configuring_authentication_for_red_hat_satellite_users/index#configuring-an-ldap-server-as-an-external-identity-provider-for-project_authentication",
|
|
47
47
|
'ExternalAuthentication' => "configuring_authentication_for_red_hat_satellite_users/index",
|
|
48
|
-
'Bookmarks' => "administering_red_hat_satellite/index#
|
|
48
|
+
'Bookmarks' => "administering_red_hat_satellite/index#working-efficiently-with-web-ui",
|
|
49
49
|
|
|
50
50
|
# Planning
|
|
51
51
|
'SmartProxies' => "overview_concepts_and_deployment_considerations/index#Major-Satellite-Components_planning",
|
|
@@ -59,20 +59,23 @@ module ForemanThemeSatellite
|
|
|
59
59
|
}.freeze
|
|
60
60
|
|
|
61
61
|
PLUGINS_DOCUMENTATION = {
|
|
62
|
-
'foreman_azure' => "provisioning_hosts/index#
|
|
62
|
+
'foreman_azure' => "provisioning_hosts/index#provisioning-cloud-instances-on-microsoft-azure",
|
|
63
63
|
'foreman_discovery' => "provisioning_hosts/index#discovering-hosts-on-a-network",
|
|
64
|
-
'foreman_kubevirt' => "provisioning_hosts/index#
|
|
64
|
+
'foreman_kubevirt' => "provisioning_hosts/index#provisioning-virtual-machines-on-openshift-virtualization",
|
|
65
65
|
}.freeze
|
|
66
66
|
|
|
67
67
|
DOCS_GUIDES_LINKS = {
|
|
68
|
+
'Administering_Project' => {
|
|
69
|
+
'configuring-foreman-server-for-cloud-connection' => "administering_red_hat_satellite/index#configuring-satellite-server-for-cloud-connection",
|
|
70
|
+
},
|
|
68
71
|
'Managing_Content' => {
|
|
69
72
|
'Products_and_Repositories_content-management' => "managing_content/index#Products_and_Repositories_content-management",
|
|
70
73
|
},
|
|
71
74
|
'Managing_Hosts' => {
|
|
72
75
|
'creating-a-job-template_managing-hosts' => "managing_hosts/index#creating-a-job-template-by-using-web-ui",
|
|
73
76
|
'executing-a-remote-job_managing-hosts' => "managing_hosts/index#Remote-Execution-in-Satellite_managing-hosts",
|
|
74
|
-
'registering-a-host_managing-hosts' => "managing_hosts/index#
|
|
75
|
-
'setting-minimal-data-collection' => "
|
|
77
|
+
'registering-a-host_managing-hosts' => "managing_hosts/index#registering-hosts-by-using-global-registration",
|
|
78
|
+
'setting-minimal-data-collection' => "administering_red_hat_satellite/index#data-control-settings-for-hosted-red-hat-lightspeed",
|
|
76
79
|
},
|
|
77
80
|
'Managing_Configurations_Ansible' => {
|
|
78
81
|
'Importing_Ansible_Roles_and_Variables_ansible' => "managing_configurations_by_using_ansible_integration/index#Importing_Ansible_Roles_and_Variables_ansible",
|
|
@@ -2,6 +2,7 @@ require 'fast_gettext'
|
|
|
2
2
|
require 'gettext_i18n_rails'
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
require 'deface'
|
|
5
|
+
require 'foreman_theme_satellite/lifecycle'
|
|
5
6
|
|
|
6
7
|
module ForemanThemeSatellite
|
|
7
8
|
class Engine < ::Rails::Engine
|
|
@@ -125,12 +126,16 @@ module ForemanThemeSatellite
|
|
|
125
126
|
@metadata_yaml.fetch(key, default)
|
|
126
127
|
end
|
|
127
128
|
|
|
129
|
+
def self.lifecycle_metadata_field(key, default)
|
|
130
|
+
ForemanThemeSatellite::Lifecycle.metadata.fetch(key, default)
|
|
131
|
+
end
|
|
132
|
+
|
|
128
133
|
def self.lifecycle_data
|
|
129
134
|
@lifecycle_data ||= ForemanThemeSatellite::Lifecycle.lifecycle_data(get_satellite_version)
|
|
130
135
|
end
|
|
131
136
|
|
|
132
137
|
def self.get_satellite_version
|
|
133
|
-
metadata_field('version', '6.
|
|
138
|
+
metadata_field('version', nil) || lifecycle_metadata_field('satellite_version', '6.20.0-development')
|
|
134
139
|
end
|
|
135
140
|
|
|
136
141
|
def self.get_satellite_short_version
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
module ForemanThemeSatellite
|
|
2
2
|
class Lifecycle
|
|
3
3
|
class << self
|
|
4
|
-
|
|
5
|
-
def lifecycle_data(version)
|
|
4
|
+
def metadata
|
|
6
5
|
metadata_path = ::ForemanThemeSatellite::LIFECYCLE_METADATA_PATH
|
|
6
|
+
File.exist?(metadata_path) ? (YAML.load_file(metadata_path) || {}) : {}
|
|
7
|
+
end
|
|
7
8
|
|
|
9
|
+
# rubocop:disable Metrics/AbcSize
|
|
10
|
+
def lifecycle_data(version)
|
|
11
|
+
yaml = metadata
|
|
8
12
|
parsed = Foreman::Version.new(version)
|
|
9
13
|
lifecycle_data = { current_version: version, short_version: "#{parsed.major}.#{parsed.minor}" }
|
|
10
14
|
|
|
11
|
-
return lifecycle_data
|
|
15
|
+
return lifecycle_data if yaml.empty?
|
|
12
16
|
|
|
13
|
-
yaml = YAML.load_file(metadata_path)
|
|
14
17
|
raise "Unexpected lifecycle metadata file version '#{yaml['version']}'" unless yaml['version'] == '1'
|
|
15
18
|
|
|
16
19
|
eol = yaml['releases'].fetch(lifecycle_data[:short_version], {})['end_of_life']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_theme_satellite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.
|
|
4
|
+
version: 16.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shimon Stein
|
|
@@ -100,7 +100,6 @@ files:
|
|
|
100
100
|
- app/overrides/layouts/base/theme_style_resources.html.erb.deface
|
|
101
101
|
- app/overrides/satellite_name_override.rb
|
|
102
102
|
- app/services/concerns/setting_registry_branding.rb
|
|
103
|
-
- app/services/foreman_theme_satellite/lifecycle.rb
|
|
104
103
|
- app/services/foreman_theme_satellite/renderer_methods.rb
|
|
105
104
|
- app/views/api/v2/home/status_extensions.json.rabl
|
|
106
105
|
- app/views/foreman_theme_satellite/_theme_client_side_branding.js.erb
|
|
@@ -119,6 +118,7 @@ files:
|
|
|
119
118
|
- lib/foreman_theme_satellite/documentation.rb
|
|
120
119
|
- lib/foreman_theme_satellite/engine.rb
|
|
121
120
|
- lib/foreman_theme_satellite/foreman_brand.rb
|
|
121
|
+
- lib/foreman_theme_satellite/lifecycle.rb
|
|
122
122
|
- lib/foreman_theme_satellite/pry_rack.rb
|
|
123
123
|
- lib/foreman_theme_satellite/replacer_repository.rb
|
|
124
124
|
- lib/foreman_theme_satellite/rss_checker_branding.rb
|
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
173
|
version: '0'
|
|
174
174
|
requirements: []
|
|
175
|
-
rubygems_version: 4.0.
|
|
175
|
+
rubygems_version: 4.0.20
|
|
176
176
|
specification_version: 4
|
|
177
177
|
summary: This is a plugin that enables building a theme for Foreman.
|
|
178
178
|
test_files: []
|