mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-07 01:06:04 +02:00
4e5550a877
As announced[2][3] the bugtracker has been migrated to gitlab, so bugs.a.o can be decommissioned and replaced with a static copy[1](to avoid link rot). [1] https://gitlab.archlinux.org/archlinux/bugs-archive/ [2] https://archlinux.org/news/bugtracker-migration-to-gitlab-completed/ [3] https://lists.archlinux.org/hyperkitty/list/arch-dev-public@lists.archlinux.org/thread/WYXDTJ3TR2DWRQCDZK44BQDH67IDVGTS/ Fix #550 Fix #551
39 lines
1.3 KiB
HCL
39 lines
1.3 KiB
HCL
# When deleting a resource outside of terraform, the provider errors out and a
|
|
# resource has to be manually deleted in terraform, see:
|
|
# https://github.com/louy/terraform-provider-uptimerobot/issues/82
|
|
|
|
data "external" "vault_uptimerobot" {
|
|
program = ["${path.module}/../misc/get_key.py", "${path.module}/../group_vars/all/vault_uptimerobot.yml",
|
|
"vault_uptimerobot_api_key",
|
|
"vault_uptimerobot_alert_contact",
|
|
"--format", "json"]
|
|
}
|
|
|
|
provider "uptimerobot" {
|
|
api_key = data.external.vault_uptimerobot.result.vault_uptimerobot_api_key
|
|
}
|
|
|
|
data "uptimerobot_account" "account" {}
|
|
|
|
locals {
|
|
archlinux_org_monitor = {
|
|
"Accounts" = "https://accounts.archlinux.org"
|
|
"AUR" = "https://aur.archlinux.org"
|
|
"Forum" = "https://bbs.archlinux.org"
|
|
"Gitlab" = "https://gitlab.archlinux.org"
|
|
"Man" = "https://man.archlinux.org"
|
|
"Security Tracker" = "https://security.archlinux.org"
|
|
"Website" = "https://archlinux.org"
|
|
"Wiki" = "https://wiki.archlinux.org"
|
|
}
|
|
}
|
|
|
|
resource "uptimerobot_monitor" "uptimerobot_monitor_archlinux" {
|
|
for_each = local.archlinux_org_monitor
|
|
|
|
friendly_name = each.key
|
|
type = "http"
|
|
url = each.value
|
|
interval = 300
|
|
}
|