No description
  • Go 93.4%
  • HTML 3.7%
  • Shell 1.5%
  • Makefile 1.2%
  • HCL 0.2%
Find a file
2020-07-06 10:10:40 +00:00
.github Make CoC and support channels more visible 2017-11-01 23:04:48 +01:00
dme Recreated provider with standards 2020-06-26 11:04:20 +05:30
scripts Recreated provider with standards 2020-06-26 11:04:20 +05:30
vendor Updated vendor 2020-07-06 14:46:43 +05:30
website Recreated provider with standards 2020-06-26 11:04:20 +05:30
.gitignore Updating Makefile + Add gitignore 2017-06-06 16:26:48 -04:00
.travis.yml update go version in travisci 2020-06-26 11:17:37 +05:30
CHANGELOG.md Cleanup after v0.1.1 release 2020-07-06 10:10:40 +00:00
go.mod Recreated provider with standards 2020-06-26 11:04:20 +05:30
go.sum Recreated provider with standards 2020-06-26 11:04:20 +05:30
LICENSE initial commit 2017-06-05 20:54:03 +00:00
main.go Recreated provider with standards 2020-06-26 11:04:20 +05:30
main.tf Recreated provider with standards 2020-06-26 11:04:20 +05:30
makefile Recreated provider with standards 2020-06-26 11:04:20 +05:30
README.md Merge branch 'master' into dme_release_0.1.1 2020-07-06 12:15:16 +05:30

DNSMadeEasy Provider

Requirements

Building The Provider

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

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

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

$ cd $GOPATH/src/github.com/DNSMadeEasy/terraform-provider-dme
$ 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.

#configure provider with your DNSMadeEasy credentials.
provider "dme" {
  # DNSMadeEasy Api key
  apikey = "apikey"
  # DNSMadeEasy secret key
  secretkey = "secretkey"
  insecure = true
  proxy_url = "https://proxy_server:proxy_port"
}

resource "dme_domain" "example" {
  name            = "example.com"
  gtd_enabled     = "false"
  soa_id          = "${dme_custom_soa_record.example.id}"
  template_id     = "${dme_template.example.id}"
  vanity_id       = "${dme_vanity_nameserver_record.example.id}"
  transfer_acl_id = "${dme_transfer_acl.example.id}"
  folder_id       = "${dme_folder.example.id}"
}

terraform plan -parallelism=1
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.