Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Table of Contents

  1. Overview
  2. Description
  3. Setup - The basics of getting started with do_dns
  4. Usage - Configuration options and additional functionality
  5. Reference
  6. Limitations
  7. Development - Guide for contributing to the module

Overview

Grabs the Digital Ocean public IP address and points it to a Digital Ocean DNS record using the $::hostname fact. Build Status

Module Description

Uses the Digital Ocean metadata of your droplet and issues an api curl command to set the dns record based on the droplet's hostname.

Setup

What do_dns affects

  • creates /usr/local/bin/set_do_dns.sh and executes it.

Usage

class {'do_dns':
  api_key  => 'xxxxx',
  dns_zone => 'domain.tld',
}

This will ensure $::hostname.domain.tld points to this droplet.

Reference

api_key

This is your Digital Ocean API key for managing DNS records

dns_zone

This is the domain zone you want to update.

filename (optional)

This is an optional setting. Configures the filename of the script to execute. Useful if you need to update the DNS record.

Limitations

Only works on Digital Ocean Droplets and Digital Ocean DNS. Requires curl and Puppet 4.x (or 3.5+ with future parser).

Development

See CONTRIBUTING.md

About

Uses the Digital Ocean metadata of your droplet and issues an api curl command to set the dns record based on the droplet's hostname.

Resources

License

Packages

No packages published