Initial skeleton of setup. Ansible only runs a few initial tasks.
This commit is contained in:
16
terraform/cloudflare.tf
Normal file
16
terraform/cloudflare.tf
Normal file
@@ -0,0 +1,16 @@
|
||||
variable "cloudflare_key" {}
|
||||
|
||||
# Configure the Cloudflare provider
|
||||
provider "cloudflare" {
|
||||
email = "jacob.wimer@gmail.com"
|
||||
token = "${var.cloudflare_key}"
|
||||
}
|
||||
|
||||
# Create a record
|
||||
resource "cloudflare_record" "wimermedia-record" {
|
||||
domain = "wimermedia.com"
|
||||
name = "terraform"
|
||||
# value = "${digitalocean_floating_ip.web.ip_address}"
|
||||
value = "${digitalocean_droplet.web.ipv4_address}"
|
||||
type = "A"
|
||||
}
|
||||
Reference in New Issue
Block a user