Skip to content

Commit

Permalink
Add copyright headers to terraform files
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolfc committed Aug 1, 2024
1 parent a93a4e8 commit ad30f95
Show file tree
Hide file tree
Showing 48 changed files with 144 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "azurerm_log_analytics_workspace" "analyticsworkspace" {
name = "${var.prefix}-analytics-workspace-${resource.random_string.name_suffix.result}"
count = var.enable_telemetry ? 1 : 0
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/infra/cosmos.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "azurerm_cosmosdb_account" "cosmos" {
name = "${var.prefix}-cosmos-${resource.random_string.name_suffix.result}"
location = var.location
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/infra/data.tf
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

data "azurerm_client_config" "current" {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

data "http" "ip" {
url = "https://ipv4.icanhazip.com"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

locals {
default_node_pool_max_count = 3
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

output "kubernetes_config_path" {
value = local_file.kubeconfig.filename

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "azurerm_public_ip" "publicip" {
name = "${var.prefix}-${substr(sha256(var.resource_group_name), 0, 6)}-ip"
resource_group_name = azurerm_kubernetes_cluster.kubernetes.node_resource_group
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/infra/random.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "random_string" "name_suffix" {
length = 5
special = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

data "azurerm_resource_group" "resourcegroup" {
name = var.resource_group_name
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "azurerm_storage_account" "storageaccount" {
name = "storage${resource.random_string.name_suffix.result}"
resource_group_name = var.resource_group_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "location" {
description = "Location of the resources."
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/infra/vnet.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "azurerm_network_security_group" "aks-nsg" {
name = "${var.prefix}-nsg"
location = var.location
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "helm_release" "letsencrypt" {
name = "cert-manager"
repository = "https://charts.jetstack.io"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_namespace" "kubernetesdaprnamespace" {
metadata {
name = "dapr-system"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_namespace" "kubernetesnamespace" {
count = var.namespace == "default" ? 0 : 1
metadata {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_config_map" "otel" {
count = var.enable_telemetry ? 1 : 0
metadata {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

output "dapr_sidecars_deployed" {
value = true

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_storage_class" "csi_storage_class" {
metadata {
name = "csi-storage-class"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "helm_release" "rabbitmq" {
name = "rabbitmq"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "helm_release" "redis" {
name = "redis"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "tenantId" {
description = "Tenant ID"
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/rg/providers.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"

Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/rg/random.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "random_string" "name_suffix" {
length = 5
special = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "azurerm_resource_group" "resourcegroup" {
location = var.location
name = var.resource_group_name
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/modules/rg/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "location" {
description = "Location of the resources."
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/aks/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "location" {
description = "Azure Location of the resources."
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/local/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"
backend "local" {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_namespace" "kubernetesdaprnamespace" {
metadata {
name = "dapr-system"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_deployment" "jaeger" {
count = var.enable_telemetry ? 1 : 0
metadata {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_config_map" "otel_collector_config" {
count = var.enable_telemetry ? 1 : 0
metadata {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

output "ready_to_deploy" {
value = true

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "kubernetes_persistent_volume" "user_storage_pv" {
metadata {
name = "user-storage-pv"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "helm_release" "rabbitmq" {
name = "rabbitmq"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

resource "helm_release" "redis" {
name = "redis"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "namespace" {
description = "Namespace"
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/local/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "acr_registry" {
description = "ACR Registry"
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/cache.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

locals {
cache_common_args = concat(
[
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/dataops.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

locals {
service_name = "terravibes-data-ops"
data_ops_common_args = concat(
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/init.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/orchestrator.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

locals {
orchestrator_common_args = concat(
[
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/providers.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

terraform {
required_version = ">=0.12"

Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/restapi.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

locals {
restapi_common_args = concat(
[
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

variable "prefix" {
description = "Prefix for resources"
}
Expand Down
3 changes: 3 additions & 0 deletions src/vibe_core/vibe_core/terraform/services/worker.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

locals {
worker_common_args = concat(
[
Expand Down

0 comments on commit ad30f95

Please sign in to comment.