検索

4.5. cloud-init を使用した Red Hat サブスクリプションの管理

download PDF

rh_subscription ディレクティブを使用してシステムを登録できます。サブスクリプションごとに、ユーザーデータを編集する必要があります。以下の手順では、rh_subscription ディレクティブを使用して加えることのできる変更の例をいくつか示します。

手順

  • 自動アタッチ オプションと サービスレベル オプションを使用するには、次の手順を実行します。

    rh_subscription の下に usernamepassword を追加して、auto-attachTrue に設定し、service-levelself-support に設定します。

    rh_subscription:
      username: sample@redhat.com
      password: 'mypassword'
      auto-attach: True
      service-level: self-support
    注記

    service-level オプションでは、auto-attach オプションを使用する必要があります。

  • activation-key および org オプションを使用するには、以下の手順を実行します。

    rh_subscription の下に activation keyorg の番号を追加し、auto-attachTrue に設定します。

    rh_subscription:
      activation-key: example_key
      org: 12345
      auto-attach: True
  • サブスクリプションプールを追加するには、以下の手順を実行します。

    rh_subscription の下に、usernamepassword、およびプール番号を追加します。

    rh_subscription:
      username: sample@redhat.com
      password: 'password'
      add-pool: XYZ01234567
    注記

    このサンプルは、subscription-manager attach --pool=XYZ01234567 コマンドに相当します。

  • /etc/rhsm/rhsm.conf ファイルでサーバーのホスト名を設定するには、以下の手順を実行します。

    rh_subscription の下に usernamepasswordserver-hostname を追加し、auto-attachTrue に設定します。

    rh_subscription:
      username: sample@redhat.com
      password: 'password'
      server-hostname: test.example.com
      auto-attach: True
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.