diff --git a/.README.html b/.README.html index 29b5b35..0f88c83 100644 --- a/.README.html +++ b/.README.html @@ -265,16 +265,33 @@
rhc_insights:
- remediation: present
Configures the ansible host name with a custom value for the system
+record in Host Based Inventory (HBI). This host name is used in
+playbooks by remediations. It is null
by default and will
+use the system host name if not specified.
Possible values of this variable:
+null
or an empty value: the ansible host name is not
+changed.{state: absent}
: the ansible host name is unset in the
+insights-client config file and Host Based Inventory (HBI) is updated to
+use the system host name. rhc_insights:
+ remediation: present
Whether the system is configured to run the Insights remediation;
valid values are present
(the default, to ensure
remediation), and absent
.
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.
- rhc_insights:
- tags: {}
rhc_insights:
+ tags: {}
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.
@@ -292,25 +309,25 @@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,
@@ -329,8 +346,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:
@@ -345,49 +362,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 90ab3b8..2dbe313 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ Changelog ========= +[1.5.0] - 2024-01-23 +-------------------- + +### New Features + +- feat: add ansible host parameter to insights configuration (#155) + +### Other Changes + +- tests: temporarily pin Candlepin to 4.4.2 (#159) + [1.4.1] - 2024-01-16 --------------------