UiPath Documentation
automation-suite
2023.10
false
Linux 版 Automation Suite 安装指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

步骤 5:更新已迁移的产品连接字符串

在迁移到 Automation Suite 的过程中,使用 uipathctl 更新已迁移的产品连接字符串。

正在下载 uipathctl

uipathctl包含在as-installer.zip安装包中。要下载installer.zip ,请参阅下载安装包

生成配置文件

要生成cluster_config.json配置文件,请执行以下步骤之一:

  • 选项 A :生成最新的cluster_config.json文件:
    uipathctl manifest get-revision | Out-File -Encoding ascii cluster_config.json
    uipathctl manifest get-revision | Out-File -Encoding ascii cluster_config.json
    
  • 选项 B :列出所有过去的cluster_config.json文件,并确定您要选择的文件:
    uipathctl manifest list-revisions
    uipathctl manifest list-revisions
    

替换连接字符串并开始安装

  1. versions.json 文件移动到与 cluster_config.json相同的目录。 您可以从 Automation Suite 安装文件夹中获取 versions.json

  2. 为已安装的产品提供新的连接字符串。

    • 要将已还原的连接字符串提供给 Orchestrator 服务,请在 sql_connection_str orchestratorcluster_config.json 件中的 下添加或更新 :
      "orchestrator": {
        "sql_connection_str": "<restored orchesrator connection string>",   (added line)
        "enabled": true
      }
      "orchestrator": {
        "sql_connection_str": "<restored orchesrator connection string>",   (added line)
        "enabled": true
      }
      
    • 如果测试自动化表放置在独立的 Orchestrator 数据库中,则还可以在 cluster_config.json 文件中为测试自动化功能添加相同的连接字符串:
      "orchestrator": {
        "testautomation": {
          "enabled": true,
          "sql_connection_str": "<restored orchestrator connection string>"
        },
        "sql_connection_str": "<restored orchestrator connection string>",   (added line)
        "enabled": true
      }
      "orchestrator": {
        "testautomation": {
          "enabled": true,
          "sql_connection_str": "<restored orchestrator connection string>"
        },
        "sql_connection_str": "<restored orchestrator connection string>",   (added line)
        "enabled": true
      }
      
    • 如果测试自动化表未放置在独立的 Orchestrator 数据库中,则必须在cluster_config.jsontestautomation下添加或更新sql_connection_str
      "testautomation": {
         "enabled": true,   
         "sql_connection_str": "<restored test-automation connection string>",  (added line)
      }
      "testautomation": {
         "enabled": true,   
         "sql_connection_str": "<restored test-automation connection string>",  (added line)
      }
      
    • 要将还原的连接字符串提供给 Insights 服务,请在cluster_config.json文件的insights下添加或更新sql_connection_str
      "insights": {   
         "sql_connection_str": "<restored connection string>",   (added line)
         "enabled": true }
      "insights": {   
         "sql_connection_str": "<restored connection string>",   (added line)
         "enabled": true }
      
    • 要将还原的连接字符串提供给 Test Manager 服务,请在cluster_config.json文件的test_manager下添加或更新sql_connection_str
      "test_manager": {
        "sql_connection_str": "<restored test_manager connection string>",   (added line)
        "enabled": true
      }
      "test_manager": {
        "sql_connection_str": "<restored test_manager connection string>",   (added line)
        "enabled": true
      }
      
  3. 通过运行安装程序来更新cluster_config.json文件。

    • 如要仅迁移 Orchestrator,请运行以下命令:
      uipathctl manifest apply cluster_config.json --only orchestrator --versions versions.json
      uipathctl manifest apply cluster_config.json --only orchestrator --versions versions.json
      
    • 如要仅迁移 Insights,请运行以下命令:
      uipathctl manifest apply cluster_config.json --only insights --versions versions.json
      uipathctl manifest apply cluster_config.json --only insights --versions versions.json
      
    • 要仅迁移 Test Manager,请运行以下命令:
      ./bin/uipathctl manifest apply cluster_config.json --only test_manager --versions versions/helm-chart.json
      ./bin/uipathctl manifest apply cluster_config.json --only test_manager --versions versions/helm-chart.json
      
  4. 在 Insights 表中重新映射组织 ID。有关更多详细信息,请参阅重新映射组织 ID

  5. 运行 Test Manager 迁移脚本并提供必要的参数:

    ./testmanager_migrator.sh -k <encryption_key> -y
    ./testmanager_migrator.sh -k <encryption_key> -y
    
    1. 要迁移作为 Orchestrator 一部分的测试自动化模块,请运行以下命令:
      ./bin/uipathctl manifest apply cluster_config.json --only testautomation --versions versions/helm-chart.json
      ./bin/uipathctl manifest apply cluster_config.json --only testautomation --versions versions/helm-chart.json
      
  • 正在下载 uipathctl
  • 生成配置文件
  • 替换连接字符串并开始安装

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新