SUSE Multi-Linux Manager 5.1プロキシの配備
This guide outlines the deployment process for the SUSE Multi-Linux Manager 5.1 Proxy container on SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7. This guide presumes you have already successfully deployed a SUSE Multi-Linux Manager 5.1 Server.
SL Micro is only supported as regular minion ( |
正常に配備するには、次のアクションを実行します。
-
ハードウェア要件を確認します。
-
Synchronize the SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 parent channel and the proxy extension child channel on the server.
-
Install SL Micro or SUSE Linux Enterprise Server on a bare-metal machine.
-
During the installation, register SL Micro or SUSE Linux Enterprise Server along with the SUSE Multi-Linux Manager Proxy extension.
-
Saltのアクティベーションキーを作成します。
-
デフォルト
接続メソッドを使用して、プロキシをクライアントとしてブートストラップします。 -
プロキシ設定を生成します。
-
サーバからプロキシにプロキシ設定を転送します。
-
プロキシ設定を使用して、クライアントをSUSE Multi-Linux Managerにプロキシとして登録します。
プロキシコンテナホストでサポートされるオペレーティングシステム
The supported operating system for the container host are SL Micro 6.1 and SUSE Linux Enterprise Server 15 SP7.
|
1. プロキシのハードウェア要件
SUSE Multi-Linux Managerプロキシを配備するためのハードウェア要件の詳細については、installation-and-upgrade:hardware-requirements.adoc#proxy-hardware-requirementsを参照してください。
2. 親とプロキシ拡張機能の子チャンネルの同期
This section presumes that you have already entered your organization credentials under the Proxy
as an extension option selected.
-
SUSE Multi-Linux ManagerのWeb UIで、
を選択します。 -
From the products page enter SL Micro or SUSE Linux Enterprise Server in the filter field.
-
続いて、ドロップダウンを使用して必要なアーキテクチャを選択します。この例では、[x86-64]を選択します。
-
In the
Product Description
field select the SL Micro 6.1 or SUSE Linux Enterprise Server 15 SP7 checkbox then use the drop-down to select theSUSE Multi-Linux Manager Proxy Extension 5.1 x86_64
extension. -
製品の追加をクリックします。
-
同期が完了するまで待ちます。
3. Prepare SUSE Multi-Linux Manager Proxy Host
3.1. Install SL Micro 6.1 and Deploy Proxy
-
Locate the SL Micro 6.1 installation media at https://www.suse.com/download/sl-micro/.
-
ISOをダウンロードするには、SUSE Customer Centerのアカウントが必要で、ログインしている必要があります。
-
Download
SL-Micro-6.1-DVD-x86_64-GM-Media1.iso
. -
インストール用のUSBフラッシュディスクまたはDVDを準備します。
-
Insert a DVD or a bootable USB stick containing the installation image for SL Micro 6.1.
-
システムをブートまたは再起動します。
For detailed documentation on preparing your machines OS (virtual or physical), see Introduction to SL Micro 6.1 Deployment.
-
矢印キーを使用して
インストール
を選択します。 -
キーボードと言語を調整します。
チェックボックス
をクリックしてライセンス契約に同意します。 -
次へ
をクリックして続行します。 -
登録方法を選択します。この例では、SUSE Customer Centerでプロキシを登録します。
-
SUSE Customer Centerの電子メールアドレスを入力します。
-
Enter your registration code for SL Micro 6.1.
-
次へ
をクリックして続行します。 -
SUSE Multi-Linux Manager 5.1プロキシ拡張機能の
チェックボックス
をオンにします。 -
次へ
をクリックして続行します。 -
SUSE Multi-Linux Manager 5.1プロキシ拡張機能の登録コードを入力します。
-
次へをクリックして続行します。
-
NTP設定
ページで、次へをクリックします。 -
Authentication for the System (システムの認証)
ページで、rootユーザのパスワードを入力します。Click 次へをクリックします。 -
インストール設定
ページで、インストールをクリックします。
This finalizes installation of SL Micro 6.1 and SUSE Multi-Linux Manager 5.1 Proxy as an extension.
3.1.1. システムの更新
-
rootとしてログインします。
-
transactional-updateを実行します。
transactional-update
-
システムを再起動します。
-
rootとしてログインします。
-
Install the container utilities (
mgrpxy
should already be installed automatically):transactional-update pkg install mgrpxy-bash-completion
または、
mgrpxy-zsh-completion
またはmgrpxy-fish-completion
をインストールできます。 -
システムを再起動します。
SL Micro is designed to update itself automatically by default and will reboot after applying updates. However, this behavior is not desirable for the SUSE Multi-Linux Manager environment. To prevent automatic updates on your server, SUSE Multi-Linux Manager disables the transactional-update timer during the bootstrap process. If you prefer the SL Micro default behavior, enable the timer by running the following command:
|
To continue with deployment, see カスタム永続ストレージの設定.
3.2. Install SUSE Linux Enterprise Server 15 SP7 and Deploy Proxy
Alternatively, you can install SUSE Multi-Linux Manager Proxy on SUSE Linux Enterprise Server 15 SP7. The following procedure describes the main steps of the installation process.
-
Locate and download SUSE Linux Enterprise Server 15 SP7
.iso
at https://www.suse.com/download/sles/. -
Make sure that the SCC code you plan to use has the Extensions enabled.
-
Start the installation of SUSE Linux Enterprise Server 15 SP7.
-
Language, Keyboard and Product Selection
(言語、キーボードおよび製品の選択)で、インストールする製品を選択します。 -
ライセンス契約
で契約を読み、[I Agree to the License Terms
( ライセンス条項に同意します)にチェックを付けます。
-
-
Select the registration method.
For SUSE Linux Enterprise Server 15 SP7, you are required to have a valid SUSE Linux Enterprise Server subscription and corresponding regcode, which you must provide on this screen. You will be required to enter the SUSE Multi-Linux Manager Extension regcode below.
-
拡張とモジュールの選択
で、以下にチェックを付けます。-
SUSE Multi-Linux Managerプロキシ拡張機能
-
ベースシステムモジュール
-
Containersモジュール
Enter the SUSE Multi-Linux Manager Extension regcode.
-
-
インストールを完了します。
-
インストールが完了したら、rootとして新しくインストールしたサーバにログインします。
-
Update the System (optional, if the system was not set to download updates during install):
zypper up
-
再起動します。
-
Log in as root and install
podman
plusmgrpxy
andmgrpxy-bash-completion
(if not already automatically installed):zypper install podman mgrpxy mgrpxy-bash-completion
-
Start the Podman service by rebooting the system, or running a command:
systemctl enable --now podman.service
To continue with deployment, see カスタム永続ストレージの設定.
4. カスタム永続ストレージの設定
Configuring persistent storage is optional, but it is the only way to avoid serious trouble with container full disk conditions. If custom persistent storage is required for your infrastructure, use the mgr-storage-proxy
tool.
-
詳細については、
mgr-storage-proxy --help
を参照してください。このツールを使用すると、コンテナストレージとSquidキャッシュボリュームの作成が容易になります。
このコマンドは次のように使用します。
mgr-storage-proxy <storage-disk-device>
例:
mgr-storage-proxy /dev/nvme1n1
このコマンドは、 詳細については、以下を参照してください。 |
5. プロキシのアクティベーションキーの作成
-
Navigate to
, and click Create key. -
SLE Micro 6.1を親チャンネルとして使用して、プロキシホストのアクティベーションキーを作成します。このキーには、推奨されるすべてのチャンネルと、拡張機能としてのプロキシの子チャンネルが含まれる必要があります。
-
続行して、プロキシホストを
デフォルト
クライアントとしてブートストラップします。
6. クライアントとしてのプロキシホストのブートストラップ
-
を選択します。
-
プロキシホストのフィールドに入力します。
-
ドロップダウンから、前のステップで作成したアクティベーションキーを選択します。
-
Click ブートストラップをクリックします。
-
ブートストラッププロセスが完了するまで待ちます。Saltメニューをチェックし、Saltキーが一覧表示されていて受け入れられていることを確認します。
-
プロキシホストを再起動します。
-
すべてのイベントが終了したら、システムの一覧からホストを選択して2回目の再起動をトリガし、オンボーディングを完了します。
-
システムの一覧からホストを選択し、すべてのパッチを適用してホストを更新します。
-
プロキシホストを再起動します。
7. Generate Proxy Configuration
SUSE Multi-Linux Managerプロキシの設定アーカイブはSUSE Multi-Linux Managerサーバによって生成されます。追加のプロキシごとに専用の設定アーカイブが必要です。
Podmanの配備では、このプロキシ設定を生成する前に、SUSE Multi-Linux ManagerプロキシのコンテナホストをSUSE Multi-Linux Managerサーバにクライアントとして登録する必要があります。 |
プロキシFQDNを使用して、登録済みのクライアントではないプロキシコンテナ設定を生成すると(Kubernetesのユースケースと同様)、新しいシステムエントリがシステム一覧に表示されます。この新しいエントリは、以前に入力されたプロキシFQDN値の下に表示され、外部
システムタイプになります。
7.1. Web UIを使用したプロキシ設定の生成
-
Web UIで、
に移動し、必要なデータを入力します。 -
[
プロキシFQDN
]フィールドに、プロキシの完全修飾ドメイン名を入力します。 -
[
親FQDN
]フィールドに、SUSE Multi-Linux Managerサーバまたは別のSUSE Multi-Linux Managerプロキシの完全修飾ドメイン名を入力します。 -
[
プロキシSSHポート
]フィールドに、SSHサービスがSUSE Multi-Linux ManagerプロキシでリスンしているSSHポートを入力します。デフォルトの8022を維持することをお勧めします。 -
In the
Max Squid cache size [MB]
field type maximal allowed size for Squid cache. Recommended is to use at most 80% of available storage for the containers.2 GBはプロキシSquidのデフォルトのキャッシュサイズを表します。これは、環境に合わせて調整する必要があります。
-
[
SSL証明書
]選択リストで、SUSE Multi-Linux Managerプロキシ用に新しいサーバ証明書を生成するか、既存のサーバ証明書を使用するかを選択します。 生成された証明書は、SUSE Multi-Linux Manager組み込みの(自己署名)証明書とみなすことができます。選択に応じて、新しい証明書を生成するための署名CA証明書へのパス、またはプロキシ証明書として使用される既存の証明書とそのキーへのパスのいずれかを指定します。
サーバによって生成されたCA証明書は、
/var/lib/containers/storage/volumes/root/_data/ssl-build
ディレクトリに保存されます。既存の証明書またはカスタム証明書、および企業証明書と中間証明書の概念の詳細については、SSL証明書のインポートを参照してください。
-
生成をクリックして、SUSE Multi-Linux Managerサーバに新しいプロキシFQDNを登録し、コンテナホストの詳細を含む設定アーカイブ(
config.tar.gz
)を生成します。 -
しばらくすると、ダウンロードするファイルが表示されます。このファイルをローカルに保存します。
7.2. Generate Proxy Configuration With spacecmd
and Self-Signed Certificate
spacecmd
を使用してプロキシ設定を生成できます。
-
SSHでコンテナホストに接続します。
-
次のコマンドを実行してサーバとプロキシFQDNを置き換えます。
mgrctl exec -ti 'spacecmd proxy_container_config_generate_cert -- dev-pxy.example.com dev-srv.example.com 2048 email@example.com -o /tmp/config.tar.gz'
-
生成された設定をサーバコンテナからコピーします。
mgrctl cp server:/tmp/config.tar.gz .
7.3. Generate Proxy Configuration With spacecmd
and Custom Certificate
デフォルトの自己署名証明書ではなくカスタム証明書に対してspacecmd
を使用して、プロキシ設定を生成できます。
-
サーバコンテナホストにSSHで接続します。
-
次のコマンドを実行してサーバとプロキシFQDNを置き換えます。
for f in ca.crt proxy.crt proxy.key; do mgrctl cp $f server:/tmp/$f done mgrctl exec -ti 'spacecmd proxy_container_config -- -p 8022 pxy.example.com srv.example.com 2048 email@example.com /tmp/ca.crt /tmp/proxy.crt /tmp/proxy.key -o /tmp/config.tar.gz'
-
生成された設定をサーバコンテナからコピーします。
mgrctl cp server:/tmp/config.tar.gz .
8. プロキシ設定の転送
Web UIによって設定アーカイブが生成されます。このアーカイブをプロキシコンテナホストで利用できるようにする必要があります。
-
まだ実行していない場合は、前のステップで生成された設定アーカイブ (
config.tar.gz
)をサーバコンテナからサーバホストにコピーします。mgrctl cp server:/root/config.tar.gz .
-
まだ実行していない場合は、サーバホストからプロキシホストにファイルをコピーします。
scp config.tar.gz <proxy-FQDN>:/root
-
プロキシホストで、次のコマンドを使用してプロキシをインストールします。
mgrpxy install podman config.tar.gz
9. SUSE Multi-Linux Managerプロキシの起動
mgrpxy
コマンドを使用してコンテナを起動できます。
-
次のコマンドを呼び出してプロキシを起動します。
mgrpxy start
-
次のコマンドを呼び出してコンテナのステータスを確認します。
mgrpxy status
5つのSUSE Multi-Linux Managerプロキシコンテナが存在し、また、
proxy-pod
コンテナポッドの一部である必要があります。-
proxy-salt-broker
-
proxy-httpd
-
proxy-tftpd
-
proxy-squid
-
proxy-ssh
-
10. Use a Custom Container Image for a Service
デフォルトでは、SUSE Multi-Linux Managerプロキシスイートは、そのサービスごとに同じイメージバージョンとレジストリパスを使用するように設定されています。ただし、-tag
および-image
で終わるインストールパラメータを使用して、特定のサービスのデフォルト値を上書きすることは可能です。
例:
mgrpxy install podman --httpd-tag 0.1.0 --httpd-image registry.opensuse.org/uyuni/proxy-httpd /path/to/config.tar.gz
これは、httpdサービスの設定ファイルを調整してから再起動します。registry.opensuse.org/uyuni/proxy-httpds
は使用するイメージ、0.1.0
はバージョンタグです。
値をデフォルトにリセットするには、これらのパラメータを指定せずにもう一度installコマンドを実行します。
mgrpxy install podman /path/to/config.tar.gz
このコマンドは、すべてのサービスの設定をグローバルデフォルトにリセットして再ロードします。