This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
複合スタイルブックの作成
StyleBookの重要かつ便利な特徴の1つは、別のStyleBookの構築ブロックとして使用できる点です。StyleBookは別のStyleBookにインポートすることができ、それはNitro組み込みのStyleBookと同様に、2番目のStyleBookのコンポーネントで使用される タイプ として参照することができます。
たとえば、前のセクションで作成した basic-lb-configStyleBookを使用して、 コンポジット例と呼ばれる別のスタイルブックを構築できます。「basic-lb-config」StyleBookを使用するには、新しいStyleBookのインポート・スタイルブックセクションにインポートする必要があります。
スタイルブックを構築する
新しいStyleBookは、次のようになります。
name: composite-example
namespace: com.example.stylebooks
version: "0.1"
display-name: Load Balancing Virtual Server (HTTP/RoundRobin)
description: This StyleBook defines a RoundRobin load balancing configuration with a monitor.
schema-version: "1.0"
import-stylebooks:
-
namespace: netscaler.nitro.config
version: "10.5"
prefix: ns
-
namespace: com.example.stylebooks
version: "0.1"
prefix: stlb
parameters:
-
name: name
type: string
label: Application Name
description: Give a name to the application configuration.
required: true
-
name: ip
type: ipaddress
label: Application Virtual IP (VIP)
description: The Application VIP that clients access
required: true
-
name: svc-servers
type: ipaddress[]
label: Application Server IPs
description: The IP addresses of all the servers of this application
required: true
-
name: response-code
type: string[]
label: List of Response Codes
description: List of Response Codes - Provide a list of response codes in integer.
components:
-
name: basic-lb-comp
type: stlb::basic-lb-config
description: This component's type is another StyleBook that builds the NetScaler lbvserver, servicegroups and services configuration objects.
properties:
name: $parameters.name
ip: $parameters.ip
svc-servers: $parameters.svc-servers
-
name: monit-comp
type: ns::lbmonitor
description: This component is a basic Nitro type (a Builtin StyleBook) that builds the NetScaler monitor configuration object.
properties:
monitorname: $parameters.name + "-mon"
type: HTTP
respcode: $parameters.response-code
httprequest: "'GET /'"
lrtm: ENABLED
secure: "YES"
components:
-
name: monit-svcgrp-bind-comp
type: ns::servicegroup_lbmonitor_binding
properties:
servicegroupname: $components.basic-lb-comp.outputs.servicegroup-comp.properties.servicegroupname
monitor_name: $parent.properties.monitorname
<!--NeedCopy-->
import-stylebooksセクションで、名前空間とバージョンを指定してbasic-lb-config StyleBookをインポートします。このStyleBookは、プレフィックス「stlb」で参照できます。
Componentsセクションでは、2つのコンポーネントが定義されています。最初のコンポーネントは stlb:: basic-lb-config型です。ここで、「basic-lb-config」はStyleBookによる基本的な負荷分散構成の作成で作成したスタイルブックの名前です。このコンポーネントで定義されているプロパティは、basic-lb-config StyleBookで宣言されている必須パラメーターに対応しています。ただし、StyleBookの任意のパラメータ(必須とオプションの両方)を使用できます。lbvserver、サービスグループ、サービスグループおよびサービスグループバインディングを再構築する代わりに、これらすべてをコンポーネントとして行うStyleBookをインポートし、それを使用して新しいStyleBookにこれらの設定オブジェクトを作成します。
StyleBookは、Nitroリソース「lbmonitor」(組み込みStyleBook)の属性を使用してmonitor構成オブジェクトを作成する、2番目のコンポーネント「monit-comp」を追加します。このコンポーネントは、最初のコンポーネントで作成されたservicegroupにmonitorをバインドするバインド構成オブジェクトを作成する、サブコンポーネント「monit-svcgrp-bind-comp」も持っています。「basic-lb-config」スタイルブックで作成されたサービスグループコンポーネントは、出力として公開されるため、このスタイルブックは、式 $components.basic-lb-comp.outputs.servicegroup-compを使用してアクセスすることができます。この例では、インポート先のStyleBookが、Outputsセクションを使用してインポート元のStyleBookのコンポーネントにアクセスする方法を示しています。この方法以外でアクセスすることはできません。
次に、StyleBookの内容をコピーしてテキストエディタに貼り付け、ファイルを コンポジット-example.yamlとして保存します。Citrix ADM でファイルをインポートする前に、必ずYAMLの内容を検証してください。次に、それをCitrix ADM にインポートし、このStyleBookを使用して1つまたは複数の構成を作成します。
StyleBooksに組み込みのYAMLバリデータを使用して、YAMLコンテンツを検証およびインポートすることをお勧めします。
共有
共有
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.