Skip to content

Commit

Permalink
Remove cronitor and opsgenie modules
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed May 2, 2024
1 parent b3d1e24 commit e76b75e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 67 deletions.
10 changes: 4 additions & 6 deletions templates/kubespray/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "cluster" {
source = "github.com/getupcloud/terraform-cluster-kubespray?ref=v4.0.0-beta1"
source = "github.com/getupcloud/terraform-cluster-kubespray?ref=v4.0.0-beta2"

# cluster basics
customer_name = var.customer_name
Expand All @@ -14,11 +14,9 @@ module "cluster" {
dump_debug = var.dump_debug

# monitoring and operations
cronitor_enabled = var.cronitor_enabled
cronitor_pagerduty_key = var.cronitor_pagerduty_key
cronitor_notification_lists = var.cronitor_notification_lists
opsgenie_enabled = var.opsgenie_enabled
teleport_auth_token = var.teleport_auth_token
cronitor_id = var.cronitor_id
opsgenie_integration_api_key = var.opsgenie_integration_api_key
teleport_auth_token = var.teleport_auth_token

# flux
flux_git_repo = var.flux_git_repo
Expand Down
8 changes: 0 additions & 8 deletions templates/providers-config.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
provider "cronitor" {
api_key = var.cronitor_api_key
}

provider "opsgenie" {
api_key = var.opsgenie_api_key == "" ? "FAKE" : var.opsgenie_api_key
}

provider "shell" {
enable_parallelism = true
interpreter = ["/bin/bash", "-c"]
Expand Down
10 changes: 0 additions & 10 deletions templates/requires.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ terraform {
version = "< 1"
}

cronitor = {
source = "nauxliu/cronitor"
version = "~> 1"
}

opsgenie = {
source = "opsgenie/opsgenie"
version = "~> 0.6"
}

random = {
version = "~> 2"
}
Expand Down
46 changes: 12 additions & 34 deletions templates/variables-common.tf
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
## Common variables to all providers
## Copy to cluster repo

variable "cronitor_enabled" {
description = "Creates and enables Cronitor monitor."
type = bool
default = false
}

variable "cronitor_notification_lists" {
description = "Cronitor Notification lists by SLA"
type = any
default = {
high : ["default", "opsgenie-high-sla"]
low : ["default", "opsgenie-low-sla"]
none : []
}
}

variable "cronitor_pagerduty_key" {
description = "Cronitor PagerDuty key"
type = string
default = ""
}

variable "cluster_name" {
description = "Cluster name"
type = string
Expand Down Expand Up @@ -108,22 +86,22 @@ variable "manifests_template_vars" {
}
}

variable "modules" {
description = "Configure modules to install"
type = any
default = {}
variable "cronitor_id" {
description = "Cronitor Monitor ID (6 chars key)."
type = string
default = ""
}

variable "opsgenie_enabled" {
description = "Creates and enables Opsgenie integration."
type = bool
default = false
variable "opsgenie_integration_api_key" {
description = "Opsgenie integration API key to send alerts."
type = string
default = ""
}

variable "opsgenie_team_name" {
description = "Opsgenie Owner team name of the integration."
type = string
default = "Operations"
variable "modules" {
description = "Configure modules to install"
type = any
default = {}
}

variable "post_create" {
Expand Down
9 changes: 0 additions & 9 deletions templates/variables.tf
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
variable "cronitor_api_key" {
description = "Cronitor API key"
type = string
}

variable "opsgenie_api_key" {
description = "Opsgenie API key to create prometheus integration"
type = string
}

0 comments on commit e76b75e

Please sign in to comment.