automation-suite
2.2510
true
OpenShift 上的 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
覆盖集群级别存储配置
在 OpenShift 上的 Automation Suite 中,在产品级别覆盖集群级别存储配置。
Orchestrator 支持以下存储配置:
- 集群级别存储配置
- Orchestrator 级别的存储配置
我们建议使用与外部存储配对的集群级别配置。这使 Orchestrator 可以自动检测和使用这些设置,而无需其他配置。
配置 Azure/Amazon S3 存储桶
To configure the Orchestrator-level storage provider, update the Orchestrator parameters by taking the following steps. For details, refer to Configuring Orchestrator parameters.
- 在配置文件的
orchestrator下,添加包含存储类型和连接字符串的legacy_storage_provider部分,如以下示例所示:"orchestrator": { "enabled": true, "legacy_object_storage": { "type": "Azure", "connection_string": "DefaultEndpointsProtocol=https;AccountName=usr;AccountKey=...;EndpointSuffix=core.windows.net" } }"orchestrator": { "enabled": true, "legacy_object_storage": { "type": "Azure", "connection_string": "DefaultEndpointsProtocol=https;AccountName=usr;AccountKey=...;EndpointSuffix=core.windows.net" } } - 使用
type参数设置所需的提供程序。可能的值为:Azure、AWS和Minio。一些注意事项:storage.type参数值区分大小写。- 不支持
FileSystem存储配置。
- 使用
connection_string参数添加存储提供程序的连接字符串。有关连接字符串格式的详细信息,请参阅UiPath.Orchestrator.dll.config的Storage.Location部分。
备注:
由于提供程序端的同源策略,Orchestrator 网页浏览器对 Amazon 和 Azure 存储桶的访问可能会受到限制。要成功访问此类存储桶的内容,您必须配置相应的提供程序以允许来自 Orchestrator 的跨域请求。有关说明,请参阅CORS/CSP 配置。
将文件上传到存储
可以使用uipathctl命令行工具将文件上传到存储。 为此,请使用以下命令:
uipathctl config orchestrator upload [parameters]
uipathctl config orchestrator upload [parameters]
| 参数 | 描述 |
|---|---|
--storage-directory <string> | 本地磁盘上存储目录的位置。 |
--nlog-extensions-directory <string> | NLog 扩展程序在本地磁盘上的位置。 |
--securestore-plugins-directory <string> | 安全存储插件在本地磁盘上的位置。 |
--is-external-storage | 指示存储是否为外部存储。 |
--namespace <string> | 部署 Automation Suite 的命名空间。 默认值为uipath 。 |
-h, --help | 提供上传命令的帮助信息。 |
如果在集群级别使用外部存储配置,则必须通过在使用命令时包含--is-external-storage参数来指明这一点。
存储上传注意事项
使用--storage-directory参数指定的目录必须包含至少一个子目录。 所有子目录都将复制到存储空间。
使用--storage-directory上传到根文件夹的文件将被忽略。
内部存储空间
使用子目录名称作为路径,将子目录直接复制到存储桶。
外部存储
- 如果子目录名为
orchestrator-host,则其内容将复制到Orchestrator-Host路径。 - 如果子目录名为
orchestrator-<name>,则其内容将复制到O<name>路径。 - 在所有其他情况下,子目录的内容将复制到
<name>路径。
用法示例
-
正在将文件上传到存储:
uipathctl config orchestrator upload --storage-directory /path/to/storage/directoryuipathctl config orchestrator upload --storage-directory /path/to/storage/directory -
将 NLog 扩展程序上传到存储:
uipathctl config orchestrator upload --nlog-extensions-directory /path/to/nlog/extensions/directoryuipathctl config orchestrator upload --nlog-extensions-directory /path/to/nlog/extensions/directory -
将安全存储插件上传到存储:
uipathctl config orchestrator upload --securestore-plugins-directory /path/to/securestore/plugins/directoryuipathctl config orchestrator upload --securestore-plugins-directory /path/to/securestore/plugins/directory -
将文件上传到外部存储:
uipathctl config orchestrator upload --is-external-storage --storage-directory /path/to/storage/directoryuipathctl config orchestrator upload --is-external-storage --storage-directory /path/to/storage/directory -
将 NLog 扩展程序上传到外部存储:
uipathctl config orchestrator upload --is-external-storage --nlog-extensions-directory /path/to/nlog/extensions/directoryuipathctl config orchestrator upload --is-external-storage --nlog-extensions-directory /path/to/nlog/extensions/directory -
将安全存储插件上传到外部存储:
uipathctl config orchestrator upload --is-external-storage --securestore-plugins-directory /path/to/securestore/plugins/directoryuipathctl config orchestrator upload --is-external-storage --securestore-plugins-directory /path/to/securestore/plugins/directory