{"id":3579,"date":"2023-08-21T07:00:00","date_gmt":"2023-08-21T05:00:00","guid":{"rendered":"https:\/\/www.my-it-brain.de\/wordpress\/?p=3579"},"modified":"2024-01-09T20:31:17","modified_gmt":"2024-01-09T19:31:17","slug":"red-hat-remote-host-configuration","status":"publish","type":"post","link":"https:\/\/www.my-it-brain.de\/wordpress\/red-hat-remote-host-configuration\/","title":{"rendered":"Red Hat Remote Host Configuration"},"content":{"rendered":"\n<p>Im folgenden Text gebe ich eine Einf\u00fchrung in Red Hat <em><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html-single\/remote_host_configuration_and_management\/index#doc-wrapper\">Remote Host Configuration (rhc)<\/a><\/em>. Dabei handelt es sich um ein Werkzeug, um Red Hat Enterprise Linux (RHEL) System mit der Hybrid Cloud Console zu verbinden und aus dieser heraus verwalten zu k\u00f6nnen.<\/p>\n\n\n\n<p>Der Artikel soll interessierten RHEL-Nutzern zur Information und Wissensvermittlung dienen. Dazu wird <code>rhc<\/code> auch im Kontext <code>subscription-manager<\/code> und <code>insights-client<\/code> eingeordnet.<\/p>\n\n\n\n<p>Aus Gr\u00fcnden der Transparenz weise ich hiermit darauf hin, dass ich Angestellter der Firma Red Hat bin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hintergrund<\/h2>\n\n\n\n<p>Als ich pers\u00f6nlich angefangen habe, mich f\u00fcr RHEL zu interessieren, war die Version 7 aktuell und von <a href=\"https:\/\/access.redhat.com\/articles\/simple-content-access\">Simple Content Access (SCA)<\/a> noch keine Rede. Um RHEL-Systeme betreiben zu k\u00f6nnen, waren diese beim Red Hat Subscription Management (RHSM), einem Satellite-Server oder offline zu registrieren, um Subscription Entitlements zuweisen zu k\u00f6nnen. Hierf\u00fcr gab und gibt es das Kommando <code>subscription-manager<\/code>.<\/p>\n\n\n\n<p>Im Laufe der Zeit kam der Dienst <a href=\"https:\/\/access.redhat.com\/products\/red-hat-insights\/\">Red Hat Insights<\/a> hinzu, zu welchem es hier im Blog bereits eine <a href=\"https:\/\/www.my-it-brain.de\/wordpress\/einfuehrung-in-red-hat-insights\/\" data-type=\"post\" data-id=\"2425\">Einf\u00fchrung<\/a> gab. Um Systeme hierf\u00fcr zu registrieren, gibt es das Kommando <code>insights-client<\/code>. Die Console, die einst nur Red Hat Insights beheimatete, hat sich zur Hybrid Cloud Console entwickelt, welche heute Heimat f\u00fcr viele weitere Dienste rund um RHEL, OpenShift und die Ansible Automation Platform (AAP) ist.<\/p>\n\n\n\n<p>Es hat sich viel getan. Dank SCA [<a href=\"#quellen-links\">1<\/a>] entf\u00e4llt die Notwendigkeit, Entitlements zuweisen zu m\u00fcssen und <a href=\"https:\/\/access.redhat.com\/articles\/transition_of_subscription_services_to_the_hybrid_cloud_console\">das Subscription Management befindet sich im \u00dcbergang zur Hybrid Cloud Console<\/a>. \u00dcbergang bedeutet hier insbesondere, dass viele Teile in Bewegung sind und sich in Zukunft noch \u00e4ndern werden. Der Artikel unter [<a href=\"#quellen-links\">6<\/a>] gibt einen \u00dcberblick dazu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hybrid Cloud Console mit Insights und Ansible Remediation Playbooks<\/h2>\n\n\n\n<p class=\"has-small-font-size\"><em>Die folgenden vier Abs\u00e4tze wurden der Dokumentation entnommen und mit www.DeepL.com\/Translator (kostenlose Version) \u00fcbersetzt.<\/em><\/p>\n\n\n\n<p>Die <a href=\"https:\/\/access.redhat.com\/products\/red-hat-hybrid-cloud-console\/\">Red Hat Hybrid Cloud Console<\/a> ist eine webbasierte, einheitliche Verwaltungsoberfl\u00e4che f\u00fcr Red Hat-L\u00f6sungen. Mit der Hybrid Cloud Console k\u00f6nnen Sie eine Verbindung zu Ihren verschiedenen Plattformen herstellen und dann Ihre Hybrid Cloud und die darin enthaltenen Systeme zentral verwalten und automatisieren.<\/p>\n\n\n\n<p>Verwenden Sie die Hybrid Cloud Console, um Ihre RHEL-Infrastruktur, Red Hat OpenShift-Cluster, AAP-Infrastruktur und Anwendungsdienste zu verwalten.<\/p>\n\n\n\n<p>Die Red Hat Hybrid Cloud Console bietet einen zentralen Einblick in Betrieb, Sicherheit und Subscriptions f\u00fcr Red Hat Enterprise Linux (RHEL).<\/p>\n\n\n\n<p>Mithilfe von Tools, regelbasierten Analysemodellen und der Unterst\u00fctzung von Red Hat k\u00f6nnen Sie die Konsole nutzen, um viele der Aufgaben und Analysen zu optimieren, die f\u00fcr den Aufbau und die Bereitstellung einer stabilen und sicheren Umgebung f\u00fcr Anwendungen auf RHEL erforderlich sind.<\/p>\n\n\n\n<p>Dem Marketing-Text der vorstehenden Abs\u00e4tze m\u00f6chte ich einen Hinweis hinterherschicken. Mit der Hybrid Cloud Console verh\u00e4lt es sich wie mit allen extern gehosteten Cloud-Diensten. Hat der Anbieter ein Problem oder ist die Cloud bzw. das Internet nicht verf\u00fcgbar, ist auch der Cloud-Dienst nicht verf\u00fcgbar. Bei der F\u00e4higkeit, meine Infrastruktur zu administrieren, m\u00f6chte ich mich pers\u00f6nlich daher nicht allein auf einen externen Dienst verlassen und empfehle dies auch niemanden. In meinen Augen ist die Hybrid Cloud Console ein zus\u00e4tzliches Werkzeug, welches mit Red Hat Insights einen hohen Mehrwert bietet.<\/p>\n\n\n\n<p>In den nun folgenden Abschnitten beschreibe ich, wie in der Hybrid Cloud Console ein <em>Activation Key<\/em> erstellt wird und wie man diesen nutzt, um Systeme mittels <code>rhc<\/code> in der Console zu registrieren. Anschlie\u00dfend zeige ich, wie dank <code>rhc<\/code> <em>Ansible Remediation Playbooks<\/em> direkt aus der Console heraus auf verbundenen RHEL-Systemen ausgef\u00fchrt werden k\u00f6nnen.<\/p>\n\n\n\n<p>Ob man einem extern durch Dritte gehosteten Dienst das Recht einr\u00e4umen m\u00f6chte, \u00c4nderungen an den eigenen Server-Systemen durchf\u00fchren zu k\u00f6nnen, muss jeder f\u00fcr sich selbst und seine Umgebung bewerten. Ich m\u00f6chte hier lediglich die Funktionalit\u00e4t in meiner Lab-Umgebung demonstrieren.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Activation Key erstellen<\/h3>\n\n\n\n<p>Um einen Activation Key zu erstellen [<a href=\"#quellen-links\">10<\/a>], meldet man sich an der Hybrid Cloud Console (<a href=\"https:\/\/console.redhat.com\">https:\/\/console.redhat.com<\/a>) an und tippt in das Suchfeld im oberen Bereich &#8222;create activation key&#8220; ein.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"255\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-7-800x255.png\" alt=\"Startseite der Hybrid Cloud Console. In das Suchfeld im oberen Bereich der Seite wurde der Text &quot;create activation key&quot; eingegeben. Es werden zwei Suchergebnisse angezeigt.\" class=\"wp-image-3586\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-7-800x255.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-7-300x96.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-7-768x245.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-7-624x199.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-7.png 1003w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Ausgef\u00fcllte Suchmaske in der Hybrid Cloud Console<\/figcaption><\/figure>\n\n\n\n<p>Der erste Treffer f\u00fchrt uns zu folgender Maske, in der ein Activation Key erstellt werden kann:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"495\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-10-800x495.png\" alt=\"\" class=\"wp-image-3589\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-10-800x495.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-10-300x186.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-10-768x475.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-10-624x386.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-10.png 997w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Men\u00fc zur Erstellung von Activation Keys<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"543\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-11-800x543.png\" alt=\"Dialog zum Erstellen von Activation Keys. Hier werden die Parameter Name, Role, SLA und Usage definiert.\" class=\"wp-image-3590\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-11-800x543.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-11-300x203.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-11-768x521.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-11-624x423.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-11.png 979w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Dialog zur Erstellung des Activation Keys<\/figcaption><\/figure>\n\n\n\n<p>Nach einem Klick auf die Schaltfl\u00e4che <em>Create activation key<\/em> erscheint der oben dargestellte Dialog. Die Optionen, die unter <em>Role, Service Level Agreement (SLA) <\/em>und <em>Usage<\/em> zur Auswahl stehen, h\u00e4ngen von den im Account vorhandenen Subscriptions ab. Mit ihnen wird der sogenannte <a href=\"https:\/\/access.redhat.com\/articles\/system-purpose\">System Purpose<\/a> bestimmt. Der Name kann frei gew\u00e4hlt werden. Er erscheint anschlie\u00dfend in der \u00dcbersicht.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"379\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-12-800x379.png\" alt=\"\u00dcbersicht existierender Activation Keys\" class=\"wp-image-3591\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-12-800x379.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-12-300x142.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-12-768x363.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-12-624x295.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-12.png 989w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">\u00dcbersicht der existierenden Activation Keys<\/figcaption><\/figure>\n\n\n\n<p><em>Hinweis:<\/em> Die Organization ID und der Name des Activation Key sind vertraulich zu behandeln, da mit diesen Informationen Systeme f\u00fcr die Hybrid Cloud Console registriert werden k\u00f6nnen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">System mit rhc registrieren<\/h3>\n\n\n\n<p>Mit dem Befehl <code>rhc -h<\/code> erh\u00e4lt man eine Beschreibung, wie Organization ID und Activation Key genutzt werden, um das System bei Red Hat zu registrieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DESCRIPTION:\n   The rhc command controls the system's connection to Red Hat.\n   \n   To connect the system using an activation key:\n     rhc connect --organization ID --activation-key KEY<\/code><\/pre>\n\n\n\n<p>F\u00fchrt man den Befehl wie angegeben aus und ist die Registrierung erfolgreich, erh\u00e4lt man folgende Ausgabe:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Connecting host.example.com to Red Hat.\nThis might take a few seconds.\n\n\u25cf Connected to Red Hat Subscription Management\n\u25cf Connected to Red Hat Insights\n\u25cf Activated the Remote Host Configuration daemon\n\u25cf Enabled console.redhat.com services: remote configuration, insights, remediations, compliance\n\nSuccessfully connected to Red Hat!\n\nManage your connected systems: https:\/\/red.ht\/connector<\/code><\/pre>\n\n\n\n<p>Unter der URL <a href=\"https:\/\/red.ht\/connector\">https:\/\/red.ht\/connector<\/a> ist der <em>Remote Host Configuration Manager<\/em> erreichbar. Hier werden die aktuellen Einstellungen angezeigt und k\u00f6nnen bei Bedarf ge\u00e4ndert werden.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"788\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-13-800x788.png\" alt=\"Das Bild zeigt die Konfigurationsseite des Remote Host Configuration Manager. Hier werden die Einstellungen f\u00fcr Insights Remediations, rhc Einstellungen und OpenSCAP Policies vorgenommen.\" class=\"wp-image-3593\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-13-800x788.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-13-300x295.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-13-768x756.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-13-624x615.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-13.png 998w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Darstellung der Seite Remote Host Configuration Manager<\/figcaption><\/figure>\n\n\n\n<p>Der <code>rhc<\/code> Client konfiguriert auf dem RHEL host den <code>rhcd<\/code> service, welcher die Verbindung zur Hybrid Cloud Console initiiert und \u00fcber eine MQTT-Verbindung auf Instruktionen lauscht [<a href=\"#quellen-links\">14<\/a>].<\/p>\n\n\n\n<p>M\u00f6chte man mehrere Systeme registrieren, empfehle ich die Verwendung der <a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/automating_system_administration_by_using_rhel_system_roles\/using-the-rhc-system-role-to-register-the-system_automating-system-administration-by-using-rhel-system-roles\">RHEL System Role rhc<\/a>. Auf diese werde ich in einem folgenden Beitrag noch genauer eingehen.<\/p>\n\n\n\n<p>Die Registrierung und Einbindung in die Hybrid Cloud Console ist damit abgeschlossen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Ansible Remediation Playbook erstellen und ausf\u00fchren<\/h3>\n\n\n\n<p>Die offizielle Dokumentation f\u00fcr die folgenden Schritte befindet sich unter [<a href=\"#quellen-links\">12<\/a>]. Ich habe ein System gew\u00e4hlt, welches noch nicht aktualisiert wurde und daher einige Schwachstellen aufweist.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"390\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-14-800x390.png\" alt=\"Das Bild zeigt eine \u00dcbersicht von CVEs. Zwei CVEs wurden f\u00fcr die Remediation mit Ansible ausgew\u00e4hlt.\" class=\"wp-image-3594\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-14-800x390.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-14-300x146.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-14-768x374.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-14-624x304.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-14.png 993w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">\u00dcbersicht der vorhandenen CVE. Zwei Eintr\u00e4ge wurden f\u00fcr die Remediation mit Ansible ausgew\u00e4hlt.<\/figcaption><\/figure>\n\n\n\n<p>In der \u00dcbersicht k\u00f6nnen CVE ausgew\u00e4hlt werden, welche mit Hilfe eines <em>Ansible Remediation Playbook<\/em> geschlossen werden sollen. Mit einem Klick auf die Schaltfl\u00e4che <em>Remediate<\/em> gelangt man in den Assistenten zur Erstellung des Playbooks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"628\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-15-800x628.png\" alt=\"Das Bild zeigt einen Dialog, in dem ein Name f\u00fcr ein neues Playbook vergeben wird.\" class=\"wp-image-3595\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-15-800x628.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-15-300x235.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-15-768x602.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-15-624x490.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-15.png 965w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Der Name des Playbooks kann frei gew\u00e4hlt werden.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"620\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-16-800x620.png\" alt=\"Im dargestellten Dialog werden die ausgew\u00e4hlten Systeme angezeigt. Eine Bearbeitung ist hier nochmals m\u00f6glich.\" class=\"wp-image-3596\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-16-800x620.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-16-300x232.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-16-768x595.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-16-624x483.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-16.png 967w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">In Schritt zwei k\u00f6nnen verwundbare Systeme ausgew\u00e4hlt werden.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"615\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-17-800x615.png\" alt=\"Das Bild zeigt den letzten Dialog des Remediate-Assistenten. Es wird auf einen automatischen Neustart hingewiesen.\" class=\"wp-image-3597\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-17-800x615.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-17-300x231.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-17-768x590.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-17-624x480.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-17.png 960w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Review der Einstellungen mit dem Hinweis, dass das Zielsystem durch das Playbook automatisch neugestartet wird.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"615\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-18-800x615.png\" alt=\"Das Bild zeigt einen Screenshot von der erfolgreichen Erstellung eines Playbooks.\" class=\"wp-image-3598\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-18-800x615.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-18-300x231.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-18-768x590.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-18-624x480.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-18.png 969w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Bis hierher wurde nur ein Playbook erstellt. Es wurde noch keine Remediation durchgef\u00fchrt.<\/figcaption><\/figure>\n\n\n\n<p>Die erstellten Playbooks findet man im Men\u00fc unter Red Hat Insights &#8211;&gt; Automation Toolkit &#8211;&gt; Remediations. Bisher kann das Playbook hier allerdings nur heruntergeladen werden, um es auf einem Ansible Controller in der eigenen Infrastruktur auszuf\u00fchren. Um diese Playbooks direkt aus der Hybrid Cloud Console heraus ausf\u00fchren zu k\u00f6nnen, muss der verwendete User Mitglied einer Gruppe mit der Rolle <em>Remediations administrator<\/em> sein.<\/p>\n\n\n\n<p>Ein Exkurs in die Rollen- und Rechteverwaltung der Hybrid Cloud Console w\u00fcrde an dieser Stelle zu weit f\u00fchren. Nachdem die <a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html\/red_hat_insights_remediations_guide\/executing-remediation-playbooks_red-hat-insights-remediation-guide\">Voraussetzungen f\u00fcr die Ausf\u00fchrung von Remediation Playbooks<\/a> geschafften wurden, stehen folgende Schritte zur Verf\u00fcgung.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"295\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-19-800x295.png\" alt=\"\" class=\"wp-image-3601\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-19-800x295.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-19-300x111.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-19-768x283.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-19-624x230.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-19.png 979w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">In der Ansicht des Remediation Jobs kann das Playbook nun direkt ausgef\u00fchrt werden.<\/figcaption><\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"275\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-20-300x275.png\" alt=\"\" class=\"wp-image-3602\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-20-300x275.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-20.png 567w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption class=\"wp-element-caption\">Eine letzte Best\u00e4tigung, dann geht es los.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Im Hintergrund passiert nun folgendes:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Das Playbook wird auf den oder die Hosts \u00fcbertragen<\/li>\n\n\n\n<li>Auf den Hosts wird es durch die dort lokal installierte Ansible Engine (Paket <code>ansible-core<\/code>) ausgef\u00fchrt<\/li>\n\n\n\n<li>Der Host wird anschlie\u00dfend automatisch neugestartet<\/li>\n\n\n\n<li>In der Console wird anschlie\u00dfend sichbar, dass die Remediation abgeschlossen wurde<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"328\" src=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-21-800x328.png\" alt=\"\" class=\"wp-image-3603\" srcset=\"https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-21-800x328.png 800w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-21-300x123.png 300w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-21-768x314.png 768w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-21-624x256.png 624w, https:\/\/www.my-it-brain.de\/wordpress\/wp-content\/uploads\/2023\/07\/image-21.png 989w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Ob man einem SaaS-Dienst, der von einem US-Unternehmen in den USA gehostet wird, Zugriff auf die eigenen Server gew\u00e4hren m\u00f6chte bzw. darf, muss individuell bewertet werden.<\/p>\n\n\n\n<p>Ich gestehe dem Service allerdings zu, dass er die Verwaltung und Remediation von Sicherheitsl\u00fccken, fehlenden Advisories und Konfigurationsanpassungen durch den <a href=\"https:\/\/www.my-it-brain.de\/wordpress\/erkundung-von-red-hat-insights-advisor\/\" data-type=\"post\" data-id=\"2428\">Advisor<\/a> denkbar einfach gestaltet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ein Werkzeug f\u00fcr alles?<\/h2>\n\n\n\n<p>F\u00fcr die in diesem Text aufgef\u00fchrten Anwendungsf\u00e4lle<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Registrieren eines RHEL-Hosts an der Hybrid Cloud Console<\/li>\n\n\n\n<li>Ausf\u00fchren von Ansible Remediation Playbooks<\/li>\n<\/ul>\n\n\n\n<p>ist die Verwendung des <code>rhc<\/code>-Clients ausreichend; ein Ersatz f\u00fcr den <code>insights-client<\/code> ist er allerdings nicht. Letzterer wird im Hintergrund weiterhin verwendet, um Insights-Reports an die Hybrid Cloud Console zu senden.<\/p>\n\n\n\n<p>Auch die vielf\u00e4ltigen Optionen des <code>subscription-manager<\/code> werden nicht abgebildet. Der <code>rhc<\/code>-Client ist daher mehr eine Erg\u00e4nzung als ein Ersatz f\u00fcr die bekannten Kommandos.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fazit<\/h2>\n\n\n\n<p>Der <code>rhc<\/code>-Client ist in meinen Augen das Mittel der Wahl, m\u00f6chte man RHEL-Systeme f\u00fcr die Verwaltung durch Insights und die Ausf\u00fchrung von Ansible Remediation Playbooks an die Hybrid Cloud Console anbinden.<\/p>\n\n\n\n<p>Ich hoffe euch interessierten Lesern, die bishierhin ausgehalten haben, hat diese Einf\u00fchrung gefallen. In der folgenden Liste findet ihr einige Links, hinter denen ihr euer Wissen noch vertiefen k\u00f6nnt.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"quellen-links\">Quellen und weiterf\u00fchrende Links<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html-single\/remote_host_configuration_and_management\/index#doc-wrapper\">Remote Host Configuration and Management &#8211; Using the remote host configuration and management features for Red Hat Insights<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/articles\/simple-content-access\">Simple Content Access<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/products\/red-hat-subscription-management\/\">Red Hat Subscription Management<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/products\/red-hat-insights\/\">Red Hat Insights<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.my-it-brain.de\/wordpress\/einfuehrung-in-red-hat-insights\/\" data-type=\"post\" data-id=\"2425\">Einf\u00fchrung in Red Hat Insights<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/articles\/transition_of_subscription_services_to_the_hybrid_cloud_console\">Transition of Red Hat&#8217;s subscription services to console.redhat.com<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/products\/red-hat-hybrid-cloud-console\/\">Red Hat Hybrid Cloud Console<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_hybrid_cloud_console\/2023\">Product Documentation for Red Hat Hybrid Cloud Console 2023<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/articles\/system-purpose\">Subscription-Manager for the former RHN user, part 13: System Purpose<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html\/remote_host_configuration_and_management\">Remote Host Configuration and Management<\/a>: <a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html-single\/remote_host_configuration_and_management\/index#activation-keys\">Chapter 6. Creating and managing activation keys in the Red Hat Hybrid Cloud Console<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/automating_system_administration_by_using_rhel_system_roles\">Automating system administration by using RHEL System Roles<\/a>: <a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/automating_system_administration_by_using_rhel_system_roles\/using-the-rhc-system-role-to-register-the-system_automating-system-administration-by-using-rhel-system-roles\">Chapter&nbsp;7.&nbsp;Using the rhc System Role to register the system<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html\/red_hat_insights_remediations_guide\/creating-managing-playbooks_host-communication-with-insights#doc-wrapper\">Creating and managing remediation playbooks in Insights<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_insights\/2023\/html\/red_hat_insights_remediations_guide\/executing-remediation-playbooks_host-communication-with-insights\">Executing remediation playbooks<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/articles\/rhc\">Remote Host Configuration (rhc)<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Im folgenden Text gebe ich eine Einf\u00fchrung in Red Hat Remote Host Configuration (rhc). Dabei handelt es sich um ein Werkzeug, um Red Hat Enterprise Linux (RHEL) System mit der Hybrid Cloud Console zu verbinden und aus dieser heraus verwalten zu k\u00f6nnen. Der Artikel soll interessierten RHEL-Nutzern zur Information und Wissensvermittlung dienen. Dazu wird rhc<span class=\"continue-reading\"> <a href=\"https:\/\/www.my-it-brain.de\/wordpress\/red-hat-remote-host-configuration\/\">[Weiterlesen&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_metis_text_type":"","_metis_text_length":0,"_post_count":0,"footnotes":""},"categories":[52],"tags":[798,797,581,430,305,707,796,795],"class_list":["post-3579","post","type-post","status-publish","format-standard","hentry","category-cloud-dienste","tag-ansible-remediation-playbook","tag-hybrid-cloud-console","tag-insights","tag-osbn","tag-planet","tag-red-hat-insights","tag-remote-host-configuration","tag-rhc"],"_links":{"self":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/comments?post=3579"}],"version-history":[{"count":13,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3579\/revisions"}],"predecessor-version":[{"id":3776,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3579\/revisions\/3776"}],"wp:attachment":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/media?parent=3579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/categories?post=3579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/tags?post=3579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}