Create and edit a configuration pack 编辑

Create and edit a configuration pack

In Citrix ADM, you can create a configuration pack from a StyleBook. The configuration pack is tied to the StyleBook from which it is created. Any updates to the configuration pack are made through the StyleBook to which it is tied.

Create a configuration pack

Perform the following to create a configuration pack from a StyleBook:

  1. Navigate to Applications > Configuration > Config Packs.

  2. Click Add.

  3. In Choose StyleBooks, select the required StyleBooks from which you want to create a configuration pack.

    This page categorizes StyleBooks into default, enterprises, and custom StyleBooks. Select the respective tabs to find the required StyleBooks.

  4. Optional, specify a unique Config Key to your configuration pack. This key appears as a Display Key for this configuration pack.

    • If you specify a Config Key that already exists, Citrix ADM cannot create the configuration pack.

    • If you don’t specify a Config Key, Citrix ADM automatically assigns the Configpack ID. However, this value doesn’t appear as a Display Key.

    • If you don’t specify a Config Key and any of the StyleBook parameters has set the key attribute, that parameter value appears as the Display Key. For more information, see Parameters.

  5. Specify the required details such as application name, IP address, port, or protocol type.

    The GUI fields differ from one StyleBook to another StyleBook.

  6. In Target Instances, select instances or instance groups where you want to run the configuration.

    Note

    You can deploy the configuration on more than one Citrix ADC, by specifying as many target instances as needed.

  7. Click Dry Run.

    The Objects page displays the objects that get created, modified, or removed from the Citrix ADC instances.

  8. Click Create

    The configuration pack appears in the StyleBook > Configurations page.

If you want to edit the existing configuration packs, select the configuration pack and click Edit.

Change the StyleBook of a configuration pack

Sometimes, you need to update the StyleBook to add functionality or fix an issue. If you already have created configuration packs using the old StyleBook, you might want to update them to use the new updated StyleBook. To use a new StyleBook, change the existing StyleBook of the configuration pack.

Consider an example StyleBook example-lb that deploys a basic load balancer configuration on an ADC instance. And, you create a configuration pack CP1 from this StyleBook.

When you want to configure monitors with the basic load balancer configuration, you need a new StyleBook. Therefore, create example-lb-mon StyleBook that includes the ability to configure monitors along with the basic load balancer configuration.

After you create a StyleBook, update the existing configuration pack CP1 to add some monitors. To do so, perform the following:

  1. Navigate to Applications > Configuration > Config Packs.

  2. Select the configuration pack for which you want to change the StyleBook.

    In this example, select CP1 from the list.

  3. Click Change StyleBook.

  4. Select the required StyleBook from the list. Then, click Save Selection.

  5. Click Change.

    In this example, select example-lb-mon from the list.

    When you change the StyleBook of a configuration pack, the parameters in the new StyleBook might have a different structure than the existing StyleBook. If the parameter structure is similar to the previous StyleBook, the parameters’ values are automatically retained in their respective fields. Otherwise, only parameters that have the same structure between the two StyleBooks are transferred. For example, the same parameter name, type, parameter parent, and more.

    Note

    The StyleBook Compatibility page displays the differences in the parameters. This page helps you decide whether to change the StyleBook or continue with the existing StyleBook. If you want to change the StyleBook, review and acknowledge the changes, then click Next.

    StyleBook Compatibility

    If new required parameters are added in the new StyleBook, after changing the StyleBook, you have to manually specify the values for such parameters.

    In this example, the parameters that appear on the configuration page for the example-lb StyleBook are as follows:

    Example load-balancing configuration pack

    The parameters that appear on the configuration page for the new example-lb-mon StyleBook are as follows:

    Example parameters after configuration pack migration

    In this case, the StyleBooks retain the older values for the basic load balancer configuration because the new StyleBook hasn’t changed existing parameters. And, it adds only the new parameters. For monitor parameters, manually specify the required values.

  6. In Target Instances, review the selected instances and update the list if necessary.

  7. Click Dry Run.

    The Objects page displays the objects that get created, modified, or removed from the Citrix ADC instances.

  8. Click OK.

    In the StyleBook > Configurations page, the StyleBook Name column displays the new StyleBook name for the selected configuration pack. In this case, it displays example-lb-mon.

Change the StyleBook that has multiple configuration packs

When you change an existing StyleBook that has multiple configuration packs, do the following:

  1. Import a new StyleBook to Citrix ADM.

    Typically, the new StyleBook has the same name and namespace with a higher version than the existing StyleBook. However, you can skip this step if the name, namespace, or version are different.

  2. Change the StyleBook for the configuration packs that are associated with the existing StyleBook.

    You can select Change StyleBook only when the selected configuration packs are associated with the same StyleBook.

    Select the configuration packs associated to the same StyleBook

    For the selected configuration packs, the Citrix ADM successfully changes the StyleBook when the following conditions are met:

    • All the configuration parameters of the existing StyleBook must present in the selected StyleBook.

    • The new parameters from the selected StyleBook are optional.

    To see the progress of the selected configuration packs, select Configurations in Progress/Failed in the Configurations page.

    Configuration pack progress status

  3. Remove the old StyleBook from Citrix ADM once all configuration packs are tied to the new StyleBook.

Export or import configuration packs

You can export or import a configuration pack like StyleBooks. With this feature, you can readily share the StyleBook configuration to another Citrix ADM server. When you export a configuration pack, a tgz or zip bundle downloads to your local computer. This bundle includes a JSON file with all the parameters defined in a configuration pack.

Export configuration

Do the following to export a configuration pack:

  1. Navigate to Applications > Configuration > Config Packs.

  2. Select a configuration pack that you want to export.

  3. In Select Action, select Export Configuration.

    Export configuration option

  4. In the Export Configuration pane, specify the following:

    • Target instance(s) information on which the configuration is deployed: Select this option to include target instances’ information with the export bundle.

    • StyleBook associated with Configuration: Select this option to include the StyleBook in the export bundle.

    • Passphrase for protecting the export configuration data: Specify a passphrase to encrypt the export bundle. This passphrase secures the sensitive data of a configuration pack.

    • Compress file type: Select either ZIP or TGZ file type.

    Export configuration pack

  5. Click Export.

    Save the export bundle on your local computer.

Import configuration

You can import a configuration pack from your local computer to a different Citrix ADM server. To import a configuration pack, do the following:

  1. Navigate to Applications > Configuration > Config Packs.

  2. Select Import Configuration.

    Import configuration option

  3. Choose the import file bundle from your computer.

  4. Use the passphrase that you have specified during export.

  5. Optional, in Advanced Options, select Only allow creation of new configuration if all config objects already exist on ADC.

    This option does not alter the objects that are already created on the ADC instance.

    Consider that you added the same ADC instance in two Citrix ADM servers. And, you want to migrate a configuration pack from one Citrix ADM server to another server. Use this option to import a configuration pack without altering its configuration objects on an ADC instance.

    Important

    To use this option, ensure that the specified configuration bundle has the target instances information. See, Export configuration.

    This option only migrates the configuration if all the objects are present on the target instance.

  6. Click Import.

Import configuration

When you import a configuration pack, the Citrix ADM verifies the following:

  • Associated StyleBook: If the associated StyleBook is not in the Citrix ADM, it imports the StyleBook along with the configuration pack.

  • Target instances: Check for target instances and deploys the configuration on the specified target instances. If the mentioned ADC instances are absent in the Citrix ADM, the configuration pack is imported without target instances.

  • Source Citrix ADM: If you are importing a configuration pack on the same Citrix ADM server, the selected bundle updates the existing configuration pack.

Build your StyleBooks

The full content of example-lb StyleBook is provided for your reference as follows:

name: example-lb
namespace: examples.stylebooks
version: "1.0"
display-name: Basic Load Balancer App
description: This is an example StyleBook that creates a load balancer application
schema-version: "1.0"
import-stylebooks:
  -
    namespace: com.citrix.adc.stylebooks
    prefix: stlb
    version: "1.0"
parameters-default-sources:
  - stlb::lb
components:
  -
    name: lb-comp
    type: stlb::lb
    description: Uses the default lb StyleBook to build the typical lb configuration objects
    properties-default-sources:
      - $parameters
<!--NeedCopy-->

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:59 次

字数:14825

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文