Automation Suite
2021.10
False
Bannerhintergrundbild
Automation Suite-Installationsanleitung
Letzte Aktualisierung 19. April 2024

Verwenden des Orchestrator-Konfiguratortools

Das Orchestrator-Konfiguratortool ist ein Bash-Skript, mit dem Sie Dateien und Einstellungen in der Orchestrator-Bereitstellung in der Automation Suite platzieren können. Das Tool hilft Ihnen, Speicherdateien, Anmeldeinformationsspeicher-Plugins, NLog-Erweiterungen, neue NLog-Konfigurationen hinzuzufügen und appSettings zu übersteuern.

Die Umgebung, in der Sie das Orchestrator-Konfiguratortool verwenden, muss ein Bash-Skript ausführen können und über die folgenden Tools verfügen:

  • kubectl mit einer Verbindung zum Cluster konfiguriert
  • jq 1.6
  • s3cmd
Wichtig:

Sie sollten das ArgoCD-CLI-Tool nicht unabhängig herunterladen und verwenden. Um die Kompatibilität und einen reibungslosen Betrieb sicherzustellen, empfehlen wir die Verwendung des ArgoCD-Tools, das in den Automation Suite-Artefakten enthalten ist. Dazu müssen Sie ArgoCD mit dem neuesten Installationsprogramm zu Ihrem Pfad hinzufügen, indem Sie den folgenden Befehl ausführen:

export PATH=$PATH:/opt/UiPathAutomationSuite/<version>/installer/binexport PATH=$PATH:/opt/UiPathAutomationSuite/<version>/installer/bin

Um das Orchestrator-Konfigurationstool an einem beliebigen Speicherort ausführen zu können, führen Sie die folgenden Schritte aus:

  1. Aktualisieren Sie die Variable PATH , sodass sie <installer-dir>/bin enthält. Zum Beispiel:

    export PATH="$PATH:/opt/UiPathAutomationSuite/online_installer_2021.10.4/bin"

  2. Stellen Sie sicher, dass die jq --version -Dienstprogrammversion 1.6 ist. Ist dies nicht der Fall, aktualisieren Sie es über eine der folgenden Optionen:
    yum install -y epel-release
    yum install -y jqcurl https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jq-1.6-2.el7.x86_64.rpm --output /tmp/jq-1.6-2.el7.x86_64.rpm
    yum localinstall /tmp/jq-1.6-2.el7.x86_64.rpm
    jq --versionyum install -y epel-release
    yum install -y jqcurl https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jq-1.6-2.el7.x86_64.rpm --output /tmp/jq-1.6-2.el7.x86_64.rpm
    yum localinstall /tmp/jq-1.6-2.el7.x86_64.rpm
    jq --version

Beispiel

Usage: ./orchestrator_configurator.sh \)\)
  -s blobstoragefolder -p pluginsfolder -n nlogextensionsfolder \)\)
  -c appsettings.custom.config -l nlog.custom.config 
    -c|--app-settings
        application configuration file containing json with key-value structure
    -l|--nlog-config-file
        nlog config file, json
    -s|--storage-folder
        location of the storage folder on the local disk
    -n|--nlog-extensions-folder
        location of the nlog extensions on the local disk
    -p|--securestore-plugins-folder
        location of the securestore plugins on the local disk
    -d|--dry-run
        do not update the orchestrator app with the new values
    -y|--accept-all
        do not prompt for confirmation of actions and overwriting of files with kubectl cp.Usage: ./orchestrator_configurator.sh \)\)
  -s blobstoragefolder -p pluginsfolder -n nlogextensionsfolder \)\)
  -c appsettings.custom.config -l nlog.custom.config 
    -c|--app-settings
        application configuration file containing json with key-value structure
    -l|--nlog-config-file
        nlog config file, json
    -s|--storage-folder
        location of the storage folder on the local disk
    -n|--nlog-extensions-folder
        location of the nlog extensions on the local disk
    -p|--securestore-plugins-folder
        location of the securestore plugins on the local disk
    -d|--dry-run
        do not update the orchestrator app with the new values
    -y|--accept-all
        do not prompt for confirmation of actions and overwriting of files with kubectl cp.

Führen Sie den folgenden Befehl aus, um neue Anwendungseinstellungen anzuwenden:

./orchestrator_configurator.sh -c appsettings.custom.json./orchestrator_configurator.sh -c appsettings.custom.json

Beispiel appsettings.custom.config

{
    "ExampleSetting.Enabled": true,
    "ExampleSetting.Type": "BasicExample",
    "ExampleSetting.Count": 3
}{
    "ExampleSetting.Enabled": true,
    "ExampleSetting.Type": "BasicExample",
    "ExampleSetting.Count": 3
}

Führen Sie den folgenden Befehl aus, um die NLog-Konfiguration zu ändern:

./orchestrator_configurator.sh -l nlog.custom.json./orchestrator_configurator.sh -l nlog.custom.json

Beispiel nlog.custom.config

{
  "Nlog": {
    "targets": {
      "robotElasticBuffer": {
        "flushTimeout": 1000,
        "bufferSize": 1000,
        "slidingTimeout": false,
        "target": {
          "uri": "https://elastic.example.com:9200",
          "requireAuth": true,
          "username": "elastic-user",
          "password": "elastic-password",
          "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
          "documentType": "logEvent",
          "includeAllProperties": true,
          "layout": "${message}",
          "excludedProperties": "agentSessionId,tenantId,indexName"
        }
      }
    }
  }
}{
  "Nlog": {
    "targets": {
      "robotElasticBuffer": {
        "flushTimeout": 1000,
        "bufferSize": 1000,
        "slidingTimeout": false,
        "target": {
          "uri": "https://elastic.example.com:9200",
          "requireAuth": true,
          "username": "elastic-user",
          "password": "elastic-password",
          "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
          "documentType": "logEvent",
          "includeAllProperties": true,
          "layout": "${message}",
          "excludedProperties": "agentSessionId,tenantId,indexName"
        }
      }
    }
  }
}

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
UiPath Logo weiß
Vertrauen und Sicherheit
© 2005-2024 UiPath. All rights reserved.