Skip to content

ekryski/dnsimple-ansible-provisioner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains an Ansible playbook to create machines in Digital Ocean and add entries for each to DNS using the DNSimple API.

Installation

This project has a few python dependencies.

pip install -r requirements.txt

Usage

Note that this assumes you have a DigitalOcean and DNSimple account and have the relevant values stored in the following environment variable: DO_CLIENT_ID, DO_API_KEY, DNSIMPLE_EMAIL and DNSIMPLE_API_TOKEN.

ansible-playbook -i hosts provision.yml

The specific code here has a few hardcoded elements that you'll likely want to change for your own usage.

Generating configuration

A small script is provided to generate random names for use in provisioning machines. The names are used as both the name of the instance and as the subdomain so need a good degree of uniqueness.

go run printnames.go <number>

This will print a YAML formatted configuration file for use by ansible. You'll probably run something like:

go run printnames.go 200 > vars/droplets.yml

About

Launch a fleet of Jenkins instances for use in a workshop or demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%