Coder Social home page Coder Social logo

ekryski / dnsimple-ansible-provisioner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from secure-pipeline/dnsimple-ansible-provisioner

0.0 0.0 0.0 128 KB

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

License: MIT License

Go 100.00%

dnsimple-ansible-provisioner's Introduction

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

dnsimple-ansible-provisioner's People

Contributors

garethr 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.