Skip to content

Commit

Permalink
formatted tf files
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu219 committed Sep 20, 2022
1 parent eb9b7bc commit f8f7083
Show file tree
Hide file tree
Showing 28 changed files with 4,407 additions and 4,399 deletions.
11 changes: 6 additions & 5 deletions application-components/cassandra_app.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# ********************** App ********************** #
locals {
cassandra_app_id = "e98f457e-ec29-4b26-8477-f371424d37a5"
cassandra_app_name = "Cassandra"
cassandra_app_id = "e98f457e-ec29-4b26-8477-f371424d37a5"
cassandra_app_name = "Cassandra"
cassandra_app_description = "This folder is created by Terraform.DO NOT DELETE."
}

resource "null_resource" "install_cassandra_app" {
count = contains(local.database_engines_values, "cassandra") ? 1 : 0
count = contains(local.all_components_values, "cassandra") ? 1 : 0
triggers = {
api_endpoint = local.sumologic_api_endpoint
organization = var.sumologic_organization_id
api_endpoint = local.sumologic_api_endpoint
organization = var.sumologic_organization_id
solution_version = local.solution_version
}
depends_on = [
Expand Down
588 changes: 294 additions & 294 deletions application-components/cassandra_monitors.tf

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions application-components/common_component.tf
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# ********************** Fields ********************** #
resource "sumologic_field" "component" {
data_type = "String"
field_name = "component"
state = "Enabled"
data_type = "String"
field_name = "component"
state = "Enabled"
}

resource "sumologic_field" "environment" {
data_type = "String"
field_name = "environment"
state = "Enabled"
data_type = "String"
field_name = "environment"
state = "Enabled"
}


# ********************** Application Components App ********************** #
locals {
application_component_app_id = "22aa033e-5a36-4a20-b07d-810096e18050"
application_component_app_name = "Application Components"
application_component_app_id = "22aa033e-5a36-4a20-b07d-810096e18050"
application_component_app_name = "Application Components"
application_component_app_description = "This folder is created by Terraform.DO NOT DELETE."
}
resource "null_resource" "install_app_component_app" {
triggers = {
api_endpoint = local.sumologic_api_endpoint
organization = var.sumologic_organization_id
api_endpoint = local.sumologic_api_endpoint
organization = var.sumologic_organization_id
solution_version = local.solution_version
}
depends_on = [
Expand All @@ -47,44 +47,44 @@ resource "sumologic_hierarchy" "application_component_view" {
}
level {
entity_type = "environment"
next_level {
next_level {
entity_type = "component"
next_levels_with_conditions {
condition = "database"
level {
entity_type = "db_system"
next_levels_with_conditions {
next_levels_with_conditions {
condition = "mysql"
level {
entity_type = "db_cluster"
next_level {
next_level {
entity_type = "schema"
next_level {
next_level {
entity_type = "table"
}
}
}
}
next_levels_with_conditions {
next_levels_with_conditions {
condition = "postgresql"
level {
entity_type = "db_cluster"
next_level {
next_level {
entity_type = "db"
next_level {
next_level {
entity_type = "schemaname"
next_level {
next_level {
entity_type = "relname"
}
}
}
}
}
next_levels_with_conditions {
next_levels_with_conditions {
condition = "cassandra"
level {
entity_type = "db_cluster"
next_level {
next_level {
entity_type = "keyspace"
}
}
Expand All @@ -93,43 +93,43 @@ resource "sumologic_hierarchy" "application_component_view" {
condition = "mariadb"
level {
entity_type = "db_cluster"
next_level {
next_level {
entity_type = "schema"
next_level {
next_level {
entity_type = "table"

}
}
}
}
next_levels_with_conditions {
next_levels_with_conditions {
condition = "couchbase"
level {
entity_type = "db_cluster"
next_level {
next_level {
entity_type = "bucket"
}
}
}
next_levels_with_conditions {
condition = "oracle"
level {
entity_type = "db_cluster"
next_level {
entity_type = "instance"
}
next_levels_with_conditions {
condition = "oracle"
level {
entity_type = "db_cluster"
next_level {
entity_type = "instance"
}
}
}
next_levels_with_conditions {
next_levels_with_conditions {
condition = "sqlserver"
level {
entity_type = "db_cluster"
next_level {
next_level {
entity_type = "database_name"
}
}
}
next_level {
next_level {
entity_type = "db_cluster"
}
}
Expand Down
10 changes: 5 additions & 5 deletions application-components/couchbase_app.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ********************** App ********************** #
locals {
couchbase_app_id = "89dd08be-215f-4930-81f3-d22fbee14831"
couchbase_app_name = "Couchbase"
couchbase_app_id = "89dd08be-215f-4930-81f3-d22fbee14831"
couchbase_app_name = "Couchbase"
couchbase_app_description = "This folder is created by Terraform.DO NOT DELETE."
}
resource "null_resource" "install_couchbase_app" {
count = contains(local.database_engines_values, "couchbase") ? 1 : 0
count = contains(local.all_components_values, "couchbase") ? 1 : 0
triggers = {
api_endpoint = local.sumologic_api_endpoint
organization = var.sumologic_organization_id
api_endpoint = local.sumologic_api_endpoint
organization = var.sumologic_organization_id
solution_version = local.solution_version
}
depends_on = [
Expand Down
Loading

0 comments on commit f8f7083

Please sign in to comment.