From 33651cdc8f9b00ee9cd757d79370480ebe310a52 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 9 Jan 2021 15:11:27 -0500 Subject: [PATCH] Delete web-server host --- prod/web-server/ansible/.envrc | 1 - prod/web-server/ansible/hosts.ini | 2 -- prod/web-server/terraform/main.tf | 13 ------------- prod/web-server/terraform/outputs.tf | 7 ------- prod/web-server/terraform/terraform.tf | 18 ------------------ prod/web-server/terraform/variables.tf | 11 ----------- 6 files changed, 52 deletions(-) delete mode 100644 prod/web-server/ansible/.envrc delete mode 100644 prod/web-server/ansible/hosts.ini delete mode 100644 prod/web-server/terraform/main.tf delete mode 100644 prod/web-server/terraform/outputs.tf delete mode 100644 prod/web-server/terraform/terraform.tf delete mode 100644 prod/web-server/terraform/variables.tf diff --git a/prod/web-server/ansible/.envrc b/prod/web-server/ansible/.envrc deleted file mode 100644 index 0512d72..0000000 --- a/prod/web-server/ansible/.envrc +++ /dev/null @@ -1 +0,0 @@ -export ANSIBLE_INVENTORY="$(expand_path hosts.ini)" diff --git a/prod/web-server/ansible/hosts.ini b/prod/web-server/ansible/hosts.ini deleted file mode 100644 index e3ecc05..0000000 --- a/prod/web-server/ansible/hosts.ini +++ /dev/null @@ -1,2 +0,0 @@ -jeremydormitzer.com -wallabag.jeremydormitzer.com \ No newline at end of file diff --git a/prod/web-server/terraform/main.tf b/prod/web-server/terraform/main.tf deleted file mode 100644 index a9fcc13..0000000 --- a/prod/web-server/terraform/main.tf +++ /dev/null @@ -1,13 +0,0 @@ -provider "digitalocean" { - token = var.do_token - spaces_access_id = var.spaces_access_id - spaces_secret_key = var.spaces_secret_key -} - -resource "digitalocean_droplet" "jdormit_website" { - name = "web-server" - image = "50901536" - region = "nyc1" - size = "s-1vcpu-1gb" - backups = true -} diff --git a/prod/web-server/terraform/outputs.tf b/prod/web-server/terraform/outputs.tf deleted file mode 100644 index 52fadf6..0000000 --- a/prod/web-server/terraform/outputs.tf +++ /dev/null @@ -1,7 +0,0 @@ -output "jdormit_website_ip_address" { - value = digitalocean_droplet.jdormit_website.ipv4_address -} - -output "jdormit_website_urn" { - value = digitalocean_droplet.jdormit_website.urn -} diff --git a/prod/web-server/terraform/terraform.tf b/prod/web-server/terraform/terraform.tf deleted file mode 100644 index 48a39bb..0000000 --- a/prod/web-server/terraform/terraform.tf +++ /dev/null @@ -1,18 +0,0 @@ -terraform { - required_providers { - digitalocean = { - source = "digitalocean/digitalocean" - version = "~> 2.3.0" - } - } - - backend "s3" { - skip_credentials_validation = true - skip_metadata_api_check = true - # Need to specify an AWS region to stop Terraform complaining - region = "us-east-1" - endpoint = "nyc3.digitaloceanspaces.com" - bucket = "jdormit-tf-state" - key = "prod/web-server.tfstate" - } -} diff --git a/prod/web-server/terraform/variables.tf b/prod/web-server/terraform/variables.tf deleted file mode 100644 index 1b3748a..0000000 --- a/prod/web-server/terraform/variables.tf +++ /dev/null @@ -1,11 +0,0 @@ -variable "do_token" { - type = string -} - -variable "spaces_access_id" { - type = string -} - -variable "spaces_secret_key" { - type = string -}