项目作者: DNSMadeEasy

项目描述 :
Terraform DNSMadeEasy provider
高级语言: Go
项目地址: git://github.com/DNSMadeEasy/terraform-provider-dme.git
创建时间: 2017-06-05T20:54:02Z
项目社区:https://github.com/DNSMadeEasy/terraform-provider-dme

开源协议:Mozilla Public License 2.0

下载


DNSMadeEasy Provider

Requirements

Building The Provider

Clone this repository to: $GOPATH/src/github.com/DNSMadeEasy/terraform-provider-dme.

  1. $ mkdir -p $GOPATH/src/github.com/DNSMadeEasy; cd $GOPATH/src/github.com/DNSMadeEasy
  2. $ git clone https://github.com/DNSMadeEasy/terraform-provider-dme.git

Enter the provider directory and run make build to build the provider binary.

  1. $ cd $GOPATH/src/github.com/DNSMadeEasy/terraform-provider-dme
  2. $ make build

Using The Provider

If you are building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

ex.

  1. #configure provider with your DNSMadeEasy credentials.
  2. provider "dme" {
  3. # DNSMadeEasy Api key
  4. apikey = "apikey"
  5. # DNSMadeEasy secret key
  6. secretkey = "secretkey"
  7. insecure = true
  8. proxy_url = "https://proxy_server:proxy_port"
  9. base_url = "https://api.sandbox.dnsmadeeasy.com/V2.0"
  10. }
  11. resource "dme_domain" "example" {
  12. name = "example.com"
  13. gtd_enabled = "false"
  14. soa_id = "${dme_custom_soa_record.example.id}"
  15. template_id = "${dme_template.example.id}"
  16. vanity_id = "${dme_vanity_nameserver_record.example.id}"
  17. transfer_acl_id = "${dme_transfer_acl.example.id}"
  18. folder_id = "${dme_folder.example.id}"
  19. }
  1. terraform plan -parallelism=1
  2. terraform apply -parallelism=1

Developing The Provider

If you want to work on the provider, you’ll first need Go installed on your machine. You’ll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider with sanity checks present in scripts directory and put the provider binary in $GOPATH/bin directory.