{"id":3577,"date":"2023-09-11T07:00:00","date_gmt":"2023-09-11T05:00:00","guid":{"rendered":"https:\/\/www.my-it-brain.de\/wordpress\/?p=3577"},"modified":"2023-08-24T20:39:21","modified_gmt":"2023-08-24T18:39:21","slug":"rhel-system-roles-rhc","status":"publish","type":"post","link":"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-rhc\/","title":{"rendered":"RHEL System Roles: rhc"},"content":{"rendered":"\n<p>Im siebten Teil meiner losen Reihe \u00fcber die RHEL System Roles stelle ich die Rolle <em>rhc<\/em> vor, mit welcher sich RHEL-Systeme (Version >= 8.6) in der Hybrid Cloud Console, Insights und dem RHSM registrieren lassen.<\/p>\n\n\n\n<p>Das Tool <code>rhc<\/code> selbst habe ich bereits im Artikel <a href=\"https:\/\/www.my-it-brain.de\/wordpress\/red-hat-remote-host-configuration\/\" data-type=\"post\" data-id=\"3579\">Red Hat Remote Host Configuration<\/a> ausf\u00fchrlich vorgestellt.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Anwendungsfall<\/h2>\n\n\n\n<p>M\u00f6chte man ein oder mehrere RHEL-Systeme in der Hybrid Cloud Console registrieren, kann man dazu die RHEL System Role <em>rhc<\/em> verwenden.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Die Rolle<\/h2>\n\n\n\n<p>Durch die Installation des Pakets <code>rhel-system-roles<\/code> existiert die Rolle <em>rhc <\/em>bereits auf meinem System und muss nur noch konfiguriert werden. Die Rolle selbst findet man im Pfad <code>\/usr\/share\/ansible\/roles\/rhel-system-roles.rhc\/<\/code> und die Dokumentation in <code>\/usr\/share\/doc\/rhel-system-roles\/rhc\/README.md<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Das Playbook<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>- name: Register systems\n  hosts: all\n  vars:\n    rhc_auth:\n      activation_keys:\n        keys: &#91;\"key-1\", ...]\n    rhc_organization: \"your-organization\"\n  roles:\n    - rhel-system-roles.rhc<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>key-1<\/code> ist durch den eigenen Activation Key zu ersetzen<\/li>\n\n\n\n<li><code>your-organization<\/code> ist durch die eigene Org-ID zu ersetzen<\/li>\n\n\n\n<li>Mit diesem Playbook werden die Hosts im RHSM und der Hybrid Cloud Console registriert<\/li>\n\n\n\n<li>Die Systeme werden bei Insights registriert und laden regelm\u00e4\u00dfig aktuelle Daten hoch<\/li>\n\n\n\n<li>Die Systeme werden f\u00fcr die Ausf\u00fchrung von Remediation Playbooks konfiguriert<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Fazit<\/h2>\n\n\n\n<p>Mit dieser System Role ist es einfach m\u00f6glich, eine gro\u00dfe Anzahl Systeme in die Hybrid Cloud Console aufzunehmen. Dabei l\u00e4sst sich konfigurieren, ob Funktionen wie Insights und Remediation Playbooks genutzt werden k\u00f6nnen.<\/p>\n\n\n\n<p>Eine weitere tolle Rolle aus dem Paket <code>rhel-system-roles<\/code>, die sich einfach zur Anwendung bringen l\u00e4sst.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Weiterf\u00fchrende Quellen und Links<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/access.redhat.com\/articles\/3050101\">Red Hat Enterprise Linux (RHEL) System Roles {en}<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.ansible.com\/ansible\/latest\/user_guide\/playbooks_reuse_roles.html#role-directory-structure\">Ansible Documentation: Role Directory Structure {en}<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/access.redhat.com\/downloads\/\">Red Hat Software and Download Center {en}<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.redhat.com\/de\/about\/value-of-subscription\">Die Vorteile einer Red Hat Subskription<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-selinux\/\">RHEL System Roles: selinux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-timesync\/\">RHEL System Roles: timesync<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-sshd\/\">RHEL System Roles: sshd<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-firewall\/\">RHEL System Roles: firewall<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-storage\/\">RHEL System Roles: storage<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Im siebten Teil meiner losen Reihe \u00fcber die RHEL System Roles stelle ich die Rolle rhc vor, mit welcher sich RHEL-Systeme (Version >= 8.6) in der Hybrid Cloud Console, Insights und dem RHSM registrieren lassen. Das Tool rhc selbst habe ich bereits im Artikel Red Hat Remote Host Configuration ausf\u00fchrlich vorgestellt. Anwendungsfall M\u00f6chte man ein<span class=\"continue-reading\"> <a href=\"https:\/\/www.my-it-brain.de\/wordpress\/rhel-system-roles-rhc\/\">[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":[532],"tags":[430,305,796,795],"class_list":["post-3577","post","type-post","status-publish","format-standard","hentry","category-ansible","tag-osbn","tag-planet","tag-remote-host-configuration","tag-rhc"],"_links":{"self":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3577","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=3577"}],"version-history":[{"count":3,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3577\/revisions"}],"predecessor-version":[{"id":3624,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3577\/revisions\/3624"}],"wp:attachment":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/media?parent=3577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/categories?post=3577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/tags?post=3577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}