From 2746aca8bab4296a82f96af0a0a9f5a3bca0bd5f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 11 Jun 2019 11:51:07 -0300 Subject: Comment sections of vps.tf --- vps.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vps.tf b/vps.tf index a329bcf..e120437 100644 --- a/vps.tf +++ b/vps.tf @@ -1,3 +1,5 @@ +# Input variables + variable "do_token" { type = "string" description = "DigitalOcean API token." @@ -18,6 +20,8 @@ variable "nextcloud_tld_prefix" { description = "DNS prefix used for the Nextcloud installation. Does not contain a dot at the end." } +# DigitalOcean + provider "digitalocean" { token = "${var.do_token}" version = "~> 1.1" @@ -28,6 +32,8 @@ resource "digitalocean_ssh_key" "client" { public_key = "${file("${path.module}/secrets/ssh/vps-box-client.pub")}" } +## Droplet and volume + resource "digitalocean_droplet" "vps" { image = "ubuntu-18-04-x64" name = "sovereignty" @@ -68,6 +74,8 @@ resource "digitalocean_volume_attachment" "foobar" { droplet_id = "${digitalocean_droplet.vps.id}" } +## DNS and IP configuration + resource "digitalocean_floating_ip" "vps_public_ip" { region = "${digitalocean_droplet.vps.region}" } -- cgit v1.2.3