第8章 cloud-init を使用した Red Hat サブスクリプションの管理
rh_subscription ディレクティブを使用してシステムを登録できます。サブスクリプションごとに、ユーザーデータを編集する必要があります。
defaultオプションの使用rh_subscriptionの下に、usernameとpasswordを追加します。rh_subscription: username: <example@redhat.com> password: <example_password>
rh_subscription: username: <example@redhat.com> password: <example_password>Copy to Clipboard Copied! Toggle word wrap Toggle overflow activation-keyとorgオプションの使用rh_subscriptionの下に、activation keyとorgの番号を追加します。rh_subscription: activation-key: <example_key> org: <example_id>
rh_subscription: activation-key: <example_key> org: <example_id>Copy to Clipboard Copied! Toggle word wrap Toggle overflow server-hostnameオプションの使用/etc/rhsm/rhsm.confファイルでサーバーのホスト名を設定できます。rh_subscriptionの下に、username、password、およびserver-hostnameを追加します。rh_subscription: username: <example@redhat.com> password: <example_password> server-hostname: <test.example.com>
rh_subscription: username: <example@redhat.com> password: <example_password> server-hostname: <test.example.com>Copy to Clipboard Copied! Toggle word wrap Toggle overflow