Commit a0dd4a73 authored by Mike Horwath's avatar Mike Horwath
Browse files

docs updates

parent e4b7794e
Pipeline #97 failed with stages
in 13 seconds
......@@ -13,21 +13,22 @@ This module supports:
- TXT records
- MX records (requires a list of lists and not a map)
This works great with Terraform [Workspaces](https://www.terraform.io/docs/state/workspaces.html)
## usage example
your `example.tf` file
```
module "cloudflare_dns_records" {
source = "git::https://gitlab.com/geekandi-terraform/cloudflare-dns-record-module.git"
domain = "${var.domain}"
noproxy_cnames = "${var.noproxy_cnames}"
noproxy_hosts_ipv4 = "${var.noproxy_hosts_ipv4}"
noproxy_hosts_ipv6 = "${var.noproxy_hosts_ipv6}"
proxy_cnames = "${var.proxy_cnames}"
proxy_hosts_ipv4 = "${var.proxy_hosts_ipv4}"
proxy_hosts_ipv6 = "${var.proxy_hosts_ipv6}"
spf_records = "${var.spf_records}"
text_records = "${var.text_records}"
source = "git::https://gitlab.com/geekandi-terraform/cloudflare-dns-record-module.git"
domain = "${var.domain}"
"noproxy_cnames" = "${var.noproxy_cnames}"
"noproxy_hosts_ipv4" = "${var.noproxy_hosts_ipv4}"
"noproxy_hosts_ipv6" = "${var.noproxy_hosts_ipv6}"
"proxy_cnames" = "${var.proxy_cnames}"
"proxy_hosts_ipv4" = "${var.proxy_hosts_ipv4}"
"proxy_hosts_ipv6" = "${var.proxy_hosts_ipv6}"
"spf_records" = "${var.spf_records}"
"text_records" = "${var.text_records}"
"mx_records" = "${var.mx_records}"
}
```
......@@ -85,9 +86,12 @@ mx_records = [
## example command lines
```
terraform workspace new example.com
terraform workspace select example.com
terraform init -upgrade
terraform plan -var-file example.vars -out example.tfplan
terraform apply -var-file examples.var example.tfplan
terraform workspace select default
```
## required variables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment