VMware Integrated OpenStack ダッシュボード ログイン ページの背景として表示されるイメージを指定できます。
手順
- カスタム グラフィック ファイルを VMware Integrated OpenStack デプロイの /home/viouser/custom/horizon/ ディレクトリにロードします。
このディレクトリは、 VMware Integrated OpenStack ダッシュボードのグラフィック ファイルのデフォルト ディレクトリです。
- テキスト エディタで /home/viouser/custom/horizon/_styles.scss ファイルを開きます。
- .login-bg パラメータをコメント解除します。
.login-bg { height: 100%; body { background: #1D2226 url("/static/themes/vmware/CUSTOM-BACKGROUND-IMAGE.jpg") repeat-x 45% 0 !important; background-size: 100% auto !important; color: black; }
- カスタム背景グラフィック ファイルを参照するように、.login-bg パラメータを変更します。
- _styles.scss ファイルを保存します。
- .login-bg パラメータをコメント解除します。
- custom.yml ファイルを実装します。
sudo mkdir -p /opt/vmware/vio/custom sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
- テキスト エディタで /opt/vmware/vio/custom/custom.yml ファイルを開きます。
- custom.yml の設定を有効にするパラメータのコメントを解除して、デフォルト スタイル シートの設定をオーバーライドします。
# overwrite the _styles.scss file in the VMware theme horizon_custom_stylesheet: "/home/viouser/custom/horizon/_styles.scss"
- カスタム グラフィック ファイルを格納するカスタム ディレクトリを指定するパラメータのコメントを解除します。
# copy all custom images (or other files) to be accessible in horizon # IMPORTANT: this line must end with a "/" in order to place the files # in the right location for horizon horizon_custom_directory: "/home/viouser/custom/horizon/"
- custom.yml ファイルを保存します。
- custom.yml の設定を有効にするパラメータのコメントを解除して、デフォルト スタイル シートの設定をオーバーライドします。
結果
次のセッション開始時にダッシュボード ログイン ページにカスタム背景イメージが表示されます。