Giter VIP home page Giter VIP logo

terraform-ultradns-cts's Introduction

Terraform logo

UltraDNS Consul-Terraform-Sync module

Dependencies

Usage

Using Consul client meta

Sample service block of Consul client HCL config:

# Service Block
service {
  name = "client"
  id = "client-host-1"
  meta = {
    zone_name = "zone.com"
    owner_name = "www"
    record_type = "A"
    ttl = "120"
  }
}

Using CTS task

Sample task block of CTS HCL config:

# Task Block
task {
    name        = "sample_task"
    module      = "ultradns/cts/ultradns"
    variable_files = ["/var/lib/consul/terraform.tfvars"]
    condition "services" {
        names = ["client"]
    }
}

Sample terraform.tfvars file for a CTS task:

ultradns_username="username"
ultradns_password="password"
ultradns_host_url="https://api.ultradns.com/"

zone_name="zone.com"
owner_name="www"
record_type="A"
ttl=120

Requirements

Name Version
Terraform >= 0.13.1

Providers

Name Version
UltraDNS >= 1.6.1

Modules

No modules.

Resources

Name Type
ultradns_record.A/ultradns_record.AAAA resource

Inputs

Name Description Type Default Required
ultradns_username UltraDNS username string n/a yes
ultradns_password UltraDNS password string n/a yes
ultradns_host_url UltraDNS hosturl string n/a yes
zone_name Name of the zone. string n/a yes
owner_name The domain name of the owner of the RRSet. string n/a yes
record_type Record type of the RRSet.Supported values are: A,AAAA,1,28. string A no
record_data The data for the record. list(string) n/a yes
ttl The time to live (in seconds) for the record. number 120 no
services Consul services monitored by Consul Terraform Sync
map(
object({
id = string
name = string
address = string
port = number
meta = map(string)
tags = list(string)
namespace = string
status = string

node = string
node_id = string
node_address = string
node_datacenter = string
node_tagged_addresses = map(string)
node_meta = map(string)
})
)
n/a yes

Outputs

Name Description Type
services Services record details
map(
object({
id = string
owner_name = string
zone_name = string
ttl = number
record_type = string
record_data = list(string)
})
)

terraform-ultradns-cts's People

Contributors

stevedejong avatar

Stargazers

Niranjan Anandkumar avatar

Watchers

 avatar Ashley Roeckelein avatar Kushal Bhandari avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.