From ac8c3807cf1330988dd6b3cc5a71761f5b1149ca Mon Sep 17 00:00:00 2001 From: Patryk Gudalewicz Date: Sat, 31 Dec 2022 13:52:11 +0100 Subject: [PATCH] Empty structure --- .gitignore | 42 ++++++++++++++++++++++++ CN_PREPROD/main.tf | 12 +++++++ CN_PREPROD/providers.tf | 20 +++++++++++ CN_PROD/main.tf | 12 +++++++ CN_PROD/providers.tf | 20 +++++++++++ EMEA_PREPROD/main.tf | 12 +++++++ EMEA_PREPROD/providers.tf | 20 +++++++++++ EMEA_PROD/main.tf | 12 +++++++ EMEA_PROD/providers.tf | 20 +++++++++++ NA_PREPROD/main.tf | 12 +++++++ NA_PREPROD/providers.tf | 20 +++++++++++ NA_PROD/main.tf | 12 +++++++ NA_PROD/providers.tf | 20 +++++++++++ _templates/_template_alerting_profile.tf | 0 _templates/_template_dashboard.tf | 0 _templates/_template_management_zone.tf | 0 environments.yaml | 0 17 files changed, 234 insertions(+) create mode 100644 .gitignore create mode 100644 CN_PREPROD/main.tf create mode 100644 CN_PREPROD/providers.tf create mode 100644 CN_PROD/main.tf create mode 100644 CN_PROD/providers.tf create mode 100644 EMEA_PREPROD/main.tf create mode 100644 EMEA_PREPROD/providers.tf create mode 100644 EMEA_PROD/main.tf create mode 100644 EMEA_PROD/providers.tf create mode 100644 NA_PREPROD/main.tf create mode 100644 NA_PREPROD/providers.tf create mode 100644 NA_PROD/main.tf create mode 100644 NA_PROD/providers.tf create mode 100644 _templates/_template_alerting_profile.tf create mode 100644 _templates/_template_dashboard.tf create mode 100644 _templates/_template_management_zone.tf create mode 100644 environments.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..23ba8bc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,42 @@ +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +#lockfiles +*.terraform.lock* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sentitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +# +*.tfvars + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +.terraformrc +terraform.rc +.DS_Store +SLO.xcworkspace/contents.xcworkspacedata +SLO.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +SLO.xcworkspace/xcuserdata/q281667.xcuserdatad/UserInterfaceState.xcuserstate \ No newline at end of file diff --git a/CN_PREPROD/main.tf b/CN_PREPROD/main.tf new file mode 100644 index 00000000..5c895aed --- /dev/null +++ b/CN_PREPROD/main.tf @@ -0,0 +1,12 @@ +module "management_zone" { + source = "./management_zone" +} + +module "alerting" { + source = "./alerting" + depends_on = [module.management_zone] +} +module "dashboard" { + source = "./dashboard" + depends_on = [module.management_zone] +} diff --git a/CN_PREPROD/providers.tf b/CN_PREPROD/providers.tf new file mode 100644 index 00000000..6da2e8a8 --- /dev/null +++ b/CN_PREPROD/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + dynatrace = { + version = "1.14.1" + source = "dynatrace-oss/dynatrace" + } + } +} +variable "DYNATRACE_CNPREPROD_ENV_URL" { + type = string + description = "URL of Dynatrace environment" +} +variable "DYNATRACE_CNPREPROD_API_TOKEN" { + type = string + description = "API token for Dynatrace environment" +} +provider "dynatrace" { + dt_env_url = "${var.DYNATRACE_CNPREPROD_ENV_URL}" + dt_api_token = "${var.DYNATRACE_CNPREPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/CN_PROD/main.tf b/CN_PROD/main.tf new file mode 100644 index 00000000..5c895aed --- /dev/null +++ b/CN_PROD/main.tf @@ -0,0 +1,12 @@ +module "management_zone" { + source = "./management_zone" +} + +module "alerting" { + source = "./alerting" + depends_on = [module.management_zone] +} +module "dashboard" { + source = "./dashboard" + depends_on = [module.management_zone] +} diff --git a/CN_PROD/providers.tf b/CN_PROD/providers.tf new file mode 100644 index 00000000..e3df0f99 --- /dev/null +++ b/CN_PROD/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + dynatrace = { + version = "1.14.1" + source = "dynatrace-oss/dynatrace" + } + } +} +variable "DYNATRACE_CNPROD_ENV_URL" { + type = string + description = "URL of Dynatrace environment" +} +variable "DYNATRACE_CNPROD_API_TOKEN" { + type = string + description = "API token for Dynatrace environment" +} +provider "dynatrace" { + dt_env_url = "${var.DYNATRACE_CNPROD_ENV_URL}" + dt_api_token = "${var.DYNATRACE_CNPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/EMEA_PREPROD/main.tf b/EMEA_PREPROD/main.tf new file mode 100644 index 00000000..5c895aed --- /dev/null +++ b/EMEA_PREPROD/main.tf @@ -0,0 +1,12 @@ +module "management_zone" { + source = "./management_zone" +} + +module "alerting" { + source = "./alerting" + depends_on = [module.management_zone] +} +module "dashboard" { + source = "./dashboard" + depends_on = [module.management_zone] +} diff --git a/EMEA_PREPROD/providers.tf b/EMEA_PREPROD/providers.tf new file mode 100644 index 00000000..a528dde7 --- /dev/null +++ b/EMEA_PREPROD/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + dynatrace = { + version = "1.14.1" + source = "dynatrace-oss/dynatrace" + } + } +} +variable "DYNATRACE_EMEAPREPROD_ENV_URL" { + type = string + description = "URL of Dynatrace environment" +} +variable "DYNATRACE_EMEAPREPROD_API_TOKEN" { + type = string + description = "API token for Dynatrace environment" +} +provider "dynatrace" { + dt_env_url = "${var.DYNATRACE_EMEAPREPROD_ENV_URL}" + dt_api_token = "${var.DYNATRACE_EMEAPREPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/EMEA_PROD/main.tf b/EMEA_PROD/main.tf new file mode 100644 index 00000000..5c895aed --- /dev/null +++ b/EMEA_PROD/main.tf @@ -0,0 +1,12 @@ +module "management_zone" { + source = "./management_zone" +} + +module "alerting" { + source = "./alerting" + depends_on = [module.management_zone] +} +module "dashboard" { + source = "./dashboard" + depends_on = [module.management_zone] +} diff --git a/EMEA_PROD/providers.tf b/EMEA_PROD/providers.tf new file mode 100644 index 00000000..5599c207 --- /dev/null +++ b/EMEA_PROD/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + dynatrace = { + version = "1.14.1" + source = "dynatrace-oss/dynatrace" + } + } +} +variable "DYNATRACE_EMEAPROD_ENV_URL" { + type = string + description = "URL of Dynatrace environment" +} +variable "DYNATRACE_EMEAPROD_API_TOKEN" { + type = string + description = "API token for Dynatrace environment" +} +provider "dynatrace" { + dt_env_url = "${var.DYNATRACE_EMEAPROD_ENV_URL}" + dt_api_token = "${var.DYNATRACE_EMEAPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/NA_PREPROD/main.tf b/NA_PREPROD/main.tf new file mode 100644 index 00000000..5c895aed --- /dev/null +++ b/NA_PREPROD/main.tf @@ -0,0 +1,12 @@ +module "management_zone" { + source = "./management_zone" +} + +module "alerting" { + source = "./alerting" + depends_on = [module.management_zone] +} +module "dashboard" { + source = "./dashboard" + depends_on = [module.management_zone] +} diff --git a/NA_PREPROD/providers.tf b/NA_PREPROD/providers.tf new file mode 100644 index 00000000..618d1e0f --- /dev/null +++ b/NA_PREPROD/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + dynatrace = { + version = "1.14.1" + source = "dynatrace-oss/dynatrace" + } + } +} +variable "DYNATRACE_NAPREPROD_ENV_URL" { + type = string + description = "URL of Dynatrace environment" +} +variable "DYNATRACE_NAPREPROD_API_TOKEN" { + type = string + description = "API token for Dynatrace environment" +} +provider "dynatrace" { + dt_env_url = "${var.DYNATRACE_NAPREPROD_ENV_URL}" + dt_api_token = "${var.DYNATRACE_NAPREPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/NA_PROD/main.tf b/NA_PROD/main.tf new file mode 100644 index 00000000..5c895aed --- /dev/null +++ b/NA_PROD/main.tf @@ -0,0 +1,12 @@ +module "management_zone" { + source = "./management_zone" +} + +module "alerting" { + source = "./alerting" + depends_on = [module.management_zone] +} +module "dashboard" { + source = "./dashboard" + depends_on = [module.management_zone] +} diff --git a/NA_PROD/providers.tf b/NA_PROD/providers.tf new file mode 100644 index 00000000..ae9b0dab --- /dev/null +++ b/NA_PROD/providers.tf @@ -0,0 +1,20 @@ +terraform { + required_providers { + dynatrace = { + version = "1.14.1" + source = "dynatrace-oss/dynatrace" + } + } +} +variable "DYNATRACE_NAPROD_ENV_URL" { + type = string + description = "URL of Dynatrace environment" +} +variable "DYNATRACE_NAPROD_API_TOKEN" { + type = string + description = "API token for Dynatrace environment" +} +provider "dynatrace" { + dt_env_url = "${var.DYNATRACE_NAPROD_ENV_URL}" + dt_api_token = "${var.DYNATRACE_NAPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/_templates/_template_alerting_profile.tf b/_templates/_template_alerting_profile.tf new file mode 100644 index 00000000..e69de29b diff --git a/_templates/_template_dashboard.tf b/_templates/_template_dashboard.tf new file mode 100644 index 00000000..e69de29b diff --git a/_templates/_template_management_zone.tf b/_templates/_template_management_zone.tf new file mode 100644 index 00000000..e69de29b diff --git a/environments.yaml b/environments.yaml new file mode 100644 index 00000000..e69de29b