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

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

使用 uipathctl 和 input.json 配置文件在 Automation Suite 中更新已迁移的产品连接字符串。

正在下载 uipathctl​

要下载uipathctl ,请参阅下载安装包。

生成配置文件​

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

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

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

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

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

    • 要将已还原的连接字符串提供给 Orchestrator 服务,请在 sql_connection_str orchestrator 文 input.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 数据库中,则还可以在 input.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 数据库中,则必须在input.json的testautomation下添加或更新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 服务,请在input.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 服务,请在input.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. 通过运行安装程序来更新input.json文件。

    • 如要仅迁移 Orchestrator,请运行以下命令:
      uipathctl manifest apply input.json --only orchestrator --versions versions.json
      uipathctl manifest apply input.json --only orchestrator --versions versions.json
      
    • 如要仅迁移 Insights,请运行以下命令:
      uipathctl manifest apply input.json --only insights --versions versions.json
      uipathctl manifest apply input.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
      
    备注:

    如果在 Windows 上运行该命令,请将命令中的 uipathctl 替换为 .\uipathctl.exe 。

  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 论坛

保持更新