No description
  • Go 96.4%
  • HTML 2.8%
  • Shell 0.4%
  • Makefile 0.4%
Find a file
2020-09-01 13:05:49 +00:00
constellix Added logic for importer 2020-08-31 18:07:14 +05:30
examples examples 2020-08-17 15:31:08 +05:30
scripts Initial commit 2020-03-20 21:02:41 +05:30
vendor Updated plugin-sdk version 2020-07-24 16:32:23 +05:30
website added importer to all the resources 2020-09-01 17:37:11 +05:30
.DS_Store Updated plugin-sdk version 2020-07-24 16:32:23 +05:30
CHANGELOG.md Cleanup after v0.3.0 release 2020-09-01 13:05:49 +00:00
GNUmakefile Initial commit 2020-03-20 21:02:41 +05:30
go.mod Updated plugin-sdk version 2020-07-24 16:32:23 +05:30
go.sum Fixed the issue with checks not getting saved 2020-08-17 15:29:24 +05:30
LICENSE Create LICENSE 2020-03-19 17:16:03 +05:30
main.go update provider path 2020-06-02 09:26:05 -07:00
README.md Initial commit 2020-03-20 21:02:41 +05:30

Constellix DNS Provider

Requirements

Building The Provider

Clone this repository to: $GOPATH/src/github.com/Constellix/terraform-provider-constellix.

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

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

$ cd $GOPATH/src/github.com/Constellix/terraform-provider-constellix
$ 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 Constellix  credentials.
provider "constellix" {
  # constellix Api key
  apikey = "apikey"
  # cosntellix secret key
  secretkey = "secretkey"
  insecure = true
  proxy_url = "https://proxy_server:proxy_port"
}

resource "constellix_domain" "domain1" {
  name = "domain1.com"
  soa = {
    primary_nameserver = "ns41.constellix.com."
    ttl                = 1800
    refresh            = 48100
    retry              = 7200
    expire             = 1209
    negcache           = 8000
  }
}


Note : If you are facing the issue of 409 conflict error try running your Terraform configuration with parallelism set to one as mentioned below.

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.