From 446916146da27e7bf3579742b5ff7f458e237f61 Mon Sep 17 00:00:00 2001 From: Matt Mabis Date: Wed, 4 Dec 2024 12:59:01 -0700 Subject: [PATCH] test --- .github/workflows/sanity-tests.yml | 2 +- integrations/{ => templates}/dynatrace_setup/README.MD | 0 .../dynatrace_setup/bigip_next_WAF_Rapid-Template.json | 0 integrations/{ => templates}/dynatrace_setup/collector.yaml | 0 integrations/{ => templates}/dynatrace_setup/deploy_all.sh | 5 +++-- .../dynatrace_setup/dynatrace_workflow_example.yaml | 0 .../{ => templates}/dynatrace_setup/edgeConnect.yaml | 0 integrations/{ => templates}/elasticsearch_watcher/README.MD | 0 .../elasticsearch_watcher/watch_awaf_enable.json | 0 .../elasticsearch_watcher/watch_blocked_ips.json | 0 10 files changed, 4 insertions(+), 3 deletions(-) rename integrations/{ => templates}/dynatrace_setup/README.MD (100%) rename integrations/{ => templates}/dynatrace_setup/bigip_next_WAF_Rapid-Template.json (100%) rename integrations/{ => templates}/dynatrace_setup/collector.yaml (100%) rename integrations/{ => templates}/dynatrace_setup/deploy_all.sh (88%) rename integrations/{ => templates}/dynatrace_setup/dynatrace_workflow_example.yaml (100%) rename integrations/{ => templates}/dynatrace_setup/edgeConnect.yaml (100%) rename integrations/{ => templates}/elasticsearch_watcher/README.MD (100%) rename integrations/{ => templates}/elasticsearch_watcher/watch_awaf_enable.json (100%) rename integrations/{ => templates}/elasticsearch_watcher/watch_blocked_ips.json (100%) diff --git a/.github/workflows/sanity-tests.yml b/.github/workflows/sanity-tests.yml index 42836ba..019c169 100644 --- a/.github/workflows/sanity-tests.yml +++ b/.github/workflows/sanity-tests.yml @@ -14,4 +14,4 @@ on: jobs: sanity-tests: - uses: ansible-network/github_actions/.github/workflows/sanity.yml@main \ No newline at end of file + uses: ansible-network/github_actions/.github/workflows/sanity.yml@main diff --git a/integrations/dynatrace_setup/README.MD b/integrations/templates/dynatrace_setup/README.MD similarity index 100% rename from integrations/dynatrace_setup/README.MD rename to integrations/templates/dynatrace_setup/README.MD diff --git a/integrations/dynatrace_setup/bigip_next_WAF_Rapid-Template.json b/integrations/templates/dynatrace_setup/bigip_next_WAF_Rapid-Template.json similarity index 100% rename from integrations/dynatrace_setup/bigip_next_WAF_Rapid-Template.json rename to integrations/templates/dynatrace_setup/bigip_next_WAF_Rapid-Template.json diff --git a/integrations/dynatrace_setup/collector.yaml b/integrations/templates/dynatrace_setup/collector.yaml similarity index 100% rename from integrations/dynatrace_setup/collector.yaml rename to integrations/templates/dynatrace_setup/collector.yaml diff --git a/integrations/dynatrace_setup/deploy_all.sh b/integrations/templates/dynatrace_setup/deploy_all.sh similarity index 88% rename from integrations/dynatrace_setup/deploy_all.sh rename to integrations/templates/dynatrace_setup/deploy_all.sh index fd83708..816b775 100644 --- a/integrations/dynatrace_setup/deploy_all.sh +++ b/integrations/templates/dynatrace_setup/deploy_all.sh @@ -1,10 +1,11 @@ #!/bin/bash + # Replace [MyInstance_ID] and [MyAPIToken] with your Dynatrace Instance ID and Token (No Brackets) export DT_ENDPOINT="https://[MyInstance].live.dynatrace.com/api/v2/otlp" export API_TOKEN="[MyAPIToken]" podman pull dynatrace/edgeconnect:latest -podman run --name dt-edgeconn --mount type=bind,src=${PWD}/edgeConnect.yaml,dst=/edgeConnect.yaml -d --restart always dynatrace/edgeconnect +podman run --name dt-edgeconn --mount type=bind,src="$PWD"/edgeConnect.yaml,dst=/edgeConnect.yaml -d --restart always dynatrace/edgeconnect -podman run --name dt-otelcol --env DT_ENDPOINT="$DT_ENDPOINT" --env API_TOKEN="$API_TOKEN" -p 5678:5678 -v /dynatrace/collector.yaml:/collector.yaml -d --restart always ghcr.io/dynatrace/dynatrace-otel-collector/dynatrace-otel-collector:latest --config collector.yaml \ No newline at end of file +podman run --name dt-otelcol --env DT_ENDPOINT="$DT_ENDPOINT" --env API_TOKEN="$API_TOKEN" -p 5678:5678 -v /dynatrace/collector.yaml:/collector.yaml -d --restart always ghcr.io/dynatrace/dynatrace-otel-collector/dynatrace-otel-collector:latest --config collector.yaml diff --git a/integrations/dynatrace_setup/dynatrace_workflow_example.yaml b/integrations/templates/dynatrace_setup/dynatrace_workflow_example.yaml similarity index 100% rename from integrations/dynatrace_setup/dynatrace_workflow_example.yaml rename to integrations/templates/dynatrace_setup/dynatrace_workflow_example.yaml diff --git a/integrations/dynatrace_setup/edgeConnect.yaml b/integrations/templates/dynatrace_setup/edgeConnect.yaml similarity index 100% rename from integrations/dynatrace_setup/edgeConnect.yaml rename to integrations/templates/dynatrace_setup/edgeConnect.yaml diff --git a/integrations/elasticsearch_watcher/README.MD b/integrations/templates/elasticsearch_watcher/README.MD similarity index 100% rename from integrations/elasticsearch_watcher/README.MD rename to integrations/templates/elasticsearch_watcher/README.MD diff --git a/integrations/elasticsearch_watcher/watch_awaf_enable.json b/integrations/templates/elasticsearch_watcher/watch_awaf_enable.json similarity index 100% rename from integrations/elasticsearch_watcher/watch_awaf_enable.json rename to integrations/templates/elasticsearch_watcher/watch_awaf_enable.json diff --git a/integrations/elasticsearch_watcher/watch_blocked_ips.json b/integrations/templates/elasticsearch_watcher/watch_blocked_ips.json similarity index 100% rename from integrations/elasticsearch_watcher/watch_blocked_ips.json rename to integrations/templates/elasticsearch_watcher/watch_blocked_ips.json