terraform-dnspod

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2017 License: MIT Imports: 2 Imported by: 0

README

Terraform DNSPod Provider [WIP] Build Status

Usage

Install terraform-dnspod-provider

wget -c https://github.com/CuriosityChina/terraform-dnspod/releases/download/v1.0.0/terraform-provider-dnspod_linux-amd64.tgz
tar -zxvf terraform-provider-dnspod_linux-amd64.tgz
cp terraform-provider-dnspod_linux-amd64 $(dirname `which terraform`)/terraform-provider-dnspod

Sample

如下是一个使用案例

provider "dnspod"{
	id = "xxx"
	token = "xxxx"
}

variable "domain_id" {
	default = 123123123
}

# 设置以一个域名
resource "dnspod_record" "first"{
	domain_id = "${var.domain_id}"
	sub_domain = "a"
	type = "A"
	line = "默认"
	value = "12.12.112.11"
	mx = "2"
	ttl = "12312"
	status = "enable"
}
# 设置第二个域名
resource "dnspod_record" "second"{
	domain_id = "${var.domain_id}"
	sub_domain = "b"
	value = "12.12.112.11"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL