Skip to content

Commit

Permalink
Update assembly and command line and content changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bangelic committed Feb 3, 2025
1 parent 0a10832 commit ea226ec
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ include::modules/con_understanding-multiple-content-view-environments.adoc[]

include::modules/con_content-view-environment-categories.adoc[leveloffset=+1]

include::modules/con_content-view-environment-ordering-and-priority.adoc[leveloffset=+1]

include::modules/con_comparing-multiple-content-view-environments-and-composite-content-views.adoc[leveloffset=+1]

include::modules/con_how-content-view-environments-are-handled-during-registration-with-multiple-activation-keys.adoc[leveloffset=+1]

include::modules/proc_assigning-multiple-content-view-environments-to-hosts.adoc[leveloffset=+1]

include::modules/proc_assigning-multiple-content-view-environments-to-hosts-with-subscription-manager.adoc[leveloffset=+1]
Expand All @@ -16,9 +10,14 @@ include::modules/proc_viewing-multiple-content-view-environment-hosts.adoc[level

include::modules/proc_assigning-multiple-content-view-environments-to-activation-keys.adoc[leveloffset=+1]

include::modules/proc_assigning-content-view-environments-to-an-activation-key-by-ID.adoc[leveloffset=+1]

include::modules/proc_viewing-multiple-content-view-environment-activation-keys.adoc[leveloffset=+1]

include::modules/proc_removing-all-content-view-environments-from-an-activation-key.adoc[leveloffset=+1]

include::modules/proc_assigning-content-view-environments-to-an-activation-key-by-ID.adoc[leveloffset=+1]
include::modules/con_content-view-environment-ordering-and-priority.adoc[leveloffset=+1]

include::modules/con_comparing-multiple-content-view-environments-and-composite-content-views.adoc[leveloffset=+1]

include::modules/con_how-content-view-environments-are-handled-during-registration-with-multiple-activation-keys.adoc[leveloffset=+1]
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ Composite content views provide an alternative method for granting hosts access
You can use composite content views, multiple content view environments, or a combination of both.
The key differences between these methods include the following:

* Access Timing:
* *Access Timing*:
Hosts assigned to composite content views gain access to the combined content only after you publish the composite content view.
Hosts assigned to multiple content view environments immediately access the combined content from all assigned environments.

* Conflict Resolution:
* *Conflict Resolution*:
Composite content views resolve conflicts at the time of publishing by merging duplicate repositories. For hosts assigned to multiple content view environments, repository conflicts are resolved based on the order of content view environments.
For more information about content view environment ordering and priority, see xref:content_view_environment_ordering_and_priority_{context}[].

* Version Selection:
* *Version Selection*:
Composite content views allow you to select specific versions of a content view, including older versions.
With multiple content view environments, the host always receives the latest version of the content view with no option to select a different version.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[id="Content_view_environment_categories_{context}"]
= Content view enviornment categories
= Content view environment categories

The content view environments available in your organization fall into the following categories:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ When you assign a host to multiple content view environments, the host gains acc
The `allow_multiple_content_views` setting controls whether hosts and activation keys can be assigned to multiple content view environments.
By default, this feature is disabled, limiting assignments to a single content view environment.
Enabling the setting allows you to assign multiple content view environments to both hosts and activation keys.
For more information on general settings, see {AdministeringDocURL}general_settings_information_[General settings] in _{AdministeringDocTitle}_.
For more information on content settings, see {AdministeringDocURL}general_settings_information_[General settings] in _{AdministeringDocTitle}_.

When you enable `allow_multiple_content_views`, hosts and activation keys can be assigned to one or more content view environments.
Hosts registered with multiple activation keys handle content view environment assignments based on the key order and settings configuration.
For more information about content view environment ordering and priority, see xref:content_view_environment_ordering_and_priority_{context}[].

When you disable `allow_multiple_content_views`, multi-environment hosts remain assigned to multiple content view environments and retain access to all their content.
Existing multi-environment activation keys remain associated with multiple content view environments, and both multi-environment hosts and activation keys remain visible in the web UI and accessible through the Hammer CLI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
To assign content view environments to an activation key, determine the IDs of the content view environments you want to assign.

.CLI procedure

. Run the `hammer content-view-environment list` command and note the IDs you want to use.
. Run the following command to assign the selected content view environments to an activation key by passing their IDs as an array:
+
[options="nowrap" subs="+quotes"]
----
$ hammer activation-key update --organization "My_Organization" --content-view-environment-ids [1,2,3]
$ hammer activation-key update --organization _"My_Organization"_ --content-view-environment-ids _[1,2,3]_
----
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ For more information, see xref:content_view_environment_ordering_and_priority_{c
+
[options="nowrap" subs="+quotes"]
----
$ hammer activation-key update --organization "My_Organization" --content-view-environments "My_env1/My_cv1,My_env2/My_cv2"
$ hammer activation-key update --organization _"My_Organization"_ --content-view-environments _"My_env1/My_cv1,My_env2/My_cv2"_
----
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The host’s current content view environments are replaced with the new list yo
+
[options="nowrap" subs="+quotes"]
----
$ hammer content-view-environment list --organization "My_Organization"
$ hammer content-view-environment list --organization _"My_Organization"_
----
+
[NOTE]
Expand All @@ -23,6 +23,6 @@ Use these labels in the command in the next step.
+
[options="nowrap" subs="+quotes"]
----
$ hammer host update --name rhel9.example.com --organization "My_Organization" --content-view-environments "My_env1/my_cv1,My_env2/my_cv2"
$ hammer host update --name rhel9.example.com --organization _"My_Organization"_ --content-view-environments _"My_env1/my_cv1,My_env2/my_cv2"_
----

Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ You can remove all content view environments from an activation key by doing eit
+
[options="nowrap" subs="+quotes"]
----
hammer activation-key update --name ak1 --organization "My_Org" --content-view-environment-ids []
hammer activation-key update --name ak1 --organization _"My_Org"_ --content-view-environment-ids []
This command clears all content view environments associated with the specified activation key.
----

. Run the following command to remove all content view environments from an activation key by passing an empty string:
+
[options="nowrap" subs="+quotes"]
----
hammer activation-key update --name ak1 --organization "My_Org" --content-view-environments ""
hammer activation-key update --name ak1 --organization _"My_Org"_ --content-view-environments ""
----
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[id="Viewing_multiple_content_view_environment_activation_keys_{context}"]
= Viewing multiple content view environment activation keys

Use this procedure to view activation keys with multiple content view environments or multi-environment activation keys in the {ProjectWebUI} and Hammer CLI.
Use this procedure to view activation keys with multiple content view environments, or multi-environment activation keys, in the {ProjectWebUI} and Hammer CLI.

.Prerequisites
* Ensure you have activation keys created.
Expand All @@ -15,23 +15,23 @@ For more information, see xref:Creating_an_Activation_Key_{context}[Creating an
[NOTE]
====
You cannot reassign a multi-environment activation key's content view environments using the web UI.
To change a multi-environment activation key's content view environments, update the activation key with Hammer.
To change content view environments, update the activation key with Hammer.
====

.CLI procedure
. Run the following command to view a list of activation keys in your organization including single environment and multi-environment keys:
+
[options="nowrap" subs="+quotes"]
----
$ hammer activation-key list --organization “Default Organization”
$ hammer activation-key list --organization _“Default Organization”_
----
The `CONTENT VIEW ENVIRONMENTS` column displays the labels of content view environments associated with each activation key. The `MULTI CONTENT VIEW ENVIRONMENT` column shows `Yes` for multi-environment activation keys.
+
. Run the following command to view multi-environment information for a single activation key:
+
[options="nowrap" subs="+quotes"]
----
$ hammer activation-key info --id
$ hammer activation-key info --id _[1,2,3]_
----
The information for the activation key is displayed including multiple content view environments.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[id="Viewing_multiple_content_view_environment_hosts{context}"]
= Viewing multiple content view environment hosts

Use this procedure to view hosts with multiple content view environments or multi-environment hosts in the {ProjectWebUI} and Hammer CLI.
Use this procedure to view hosts with multiple content view environments, or multi-environment hosts, in the {ProjectWebUI} and Hammer CLI.

.Prerequisites
Ensure that you have at least one multi-environment host.
Expand All @@ -12,6 +12,7 @@ Ensure that you have at least one multi-environment host.
[NOTE]
====
If you have the *Show new host overview page* setting enabled, the new UI appears by default.
If you do not have the setting enabled, the classic UI appears by default and you must click the *New UI* button.
====
+
. Click *Manage columns*.
Expand All @@ -23,23 +24,22 @@ On the *Host Details* page, the *Content view environments* card displays the de

[NOTE]
====
If you reassign the content view environment of a multi-environment host from the *Content view environments* card, the host's content view environments are overwritten and is no longer a multi-environment host.
To retain multiple environments, use Hammer to reassign the host's content view environments.
If you reassign the content view environments of a multi-environment host from the *Content view environments* card, the host's content view environments are overwritten and it is no longer a multi-environment host.
====

.CLI procedure
. Run the following command to view a list of hosts in your organization:
+
[options="nowrap" subs="+quotes"]
----
$ hammer host list --organization “Default Organization”
$ hammer host list --organization _“Default Organization”_
----
The `CONTENT VIEW ENVIRONMENTS` column displays the labels of content view environments associated with each host. The `MULTI CONTENT VIEW ENVIRONMENT` column shows `Yes` for multi-environment hosts.
+
. Run the following command to view multi-environment information for a host:
+
[options="nowrap" subs="+quotes"]
----
$ hammer host info --id
$ hammer host info --id _[1,2,3]_
----
The information for the host is displayed including multiple content view environments.

0 comments on commit ea226ec

Please sign in to comment.