From e479dff701bc75062eba30f5102c91a7910b77af Mon Sep 17 00:00:00 2001
From: Rich Megginson Configures the display name with a custom value for the system record
+in Host Based Inventory (HBI). This display name is only used to
+identify the host in the Inventory. It is Possible values of this variable: Note: If not set explicitly on registration, the display name is set
+to the hostname by default. It is not possible to automatically revert
+it to the hostname, but it can be set so manually. Whether the system is configured to run the Insights remediation;
valid values are Please note that the Insights remediation is supported only on RHEL
8.4 or greater, as the needed packages are available only starting from
that version; on older versions, this parameter has no effect. A dictionary of tags that is added to the system record in Host Based
Inventory (HBI); typically used for the grouping and tagging of systems,
and to search for systems in the inventory.Role Variables
rhc_insights:
- remediation: present
null
by default
+and will use the system host name if not specified.
+
+null
or an empty string: the display name is not
+changed rhc_insights:
+ remediation: present
present
(the default, to ensure
remediation), and absent
. rhc_insights:
- tags: {}
rhc_insights:
+ tags: {}
Role Variables
lists, dictionaries, etc).
Example of the tags configured in the insights-client
documentation:
rhc_insights:
- tags:
- group: _group-name-value_
- location: _location-name-value_
- description:
- - RHEL8
- - SAP
- key 4: value
rhc_proxy: {}
The details of the proxy server to use for connecting:
+class="sourceCode yaml">rhc_insights:
+ tags:
+ group: _group-name-value_
+ location: _location-name-value_
+ description:
+ - RHEL8
+ - SAP
+ key 4: value
rhc_proxy:
- hostname: "proxy-hostname"
- scheme: http
- port: 4321
- username: "proxy-hostname"
- password: "proxy-password"
rhc_proxy: {}
+The details of the proxy server to use for connecting:
+rhc_proxy:
+ hostname: "proxy-hostname"
+ scheme: http
+ port: 4321
+ username: "proxy-hostname"
+ password: "proxy-password"
hostname
is the hostname of the proxy serverscheme
is the scheme to use for the proxy server,
@@ -346,8 +363,8 @@ NB: the variables used for the authentication on the proxy server are considered secrets, and thus they ought to be secured. We recommend the usage of Ansible Vault as source for them.
- rhc_environments: []
rhc_environments: []
The list of environments to which register to when connecting the system.
NB:
@@ -362,49 +379,49 @@Ensure the connection to Red Hat including Insights, authenticating using username & password:
-- name: Register systems
- hosts: all
- vars:
- rhc_auth:
- login:
- username: "your-username"
- password: !vault |
-
- $ANSIBLE_VAULT;1.2;AES256;dev
- .... roles:
- - linux-system-roles.rhc
Ensure that certain RHEL 9 repositories are enabled, and another one -is not:
- name: Ensure RHEL 9 repositories are enabled
+class="sourceCode yaml">- name: Register systems
hosts: all
vars:
- rhc_repositories:
- - {name: "rhel-9-for-x86_64-baseos-rpms", state: enabled}
- - {name: "rhel-9-for-x86_64-appstream-rpms", state: enabled}
- - {name: "codeready-builder-for-rhel-9-x86_64-rpms", state: disabled}
- roles:
- - linux-system-roles.rhc
Ensure that a RHEL 8 system is locked on RHEL 8.6:
+ rhc_auth: + login: + username: "your-username" + password: !vault | + + $ANSIBLE_VAULT;1.2;AES256;dev + .... roles: + - linux-system-roles.rhc +Ensure that certain RHEL 9 repositories are enabled, and another one +is not:
- name: Ensure systems are locked at RHEL 8.6
+class="sourceCode yaml">- name: Ensure RHEL 9 repositories are enabled
hosts: all
vars:
- rhc_release: 8.6
- roles:
- - linux-system-roles.rhc
Ensure that a system is connected to Insights, without optional -features such as automatic updates and remediation:
+ rhc_repositories: + - {name: "rhel-9-for-x86_64-baseos-rpms", state: enabled} + - {name: "rhel-9-for-x86_64-appstream-rpms", state: enabled} + - {name: "codeready-builder-for-rhel-9-x86_64-rpms", state: disabled} + roles: + - linux-system-roles.rhc +Ensure that a RHEL 8 system is locked on RHEL 8.6:
- name: Ensure systems are connected to Insights
+class="sourceCode yaml">- name: Ensure systems are locked at RHEL 8.6
hosts: all
vars:
- rhc_insights:
- autoupdate: false
- remediation: absent
- roles:
- - linux-system-roles.rhc
Ensure that a system is connected to Insights, without optional +features such as automatic updates and remediation:
+- name: Ensure systems are connected to Insights
+ hosts: all
+ vars:
+ rhc_insights:
+ autoupdate: false
+ remediation: absent
+ roles:
+ - linux-system-roles.rhc
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e0fbe9..5ea6ba5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Changelog ========= +[1.6.0] - 2024-02-21 +-------------------- + +### New Features + +- feat: Add a display name parameter (#166) + [1.5.1] - 2024-02-09 --------------------