Git Product home page Git Product logo

doadm's Introduction

doadm

Scripts for managing DigitalOcean droplets, databases, and firewalls.

  • doctl
  • dig

Before using this script, you must first authenticate with DigitalOcean. To do so, run:

doadm -I

To create a droplet with the name droplet-1, run:

doadm -cdn droplet-1

To expunge the droplet with the name droplet-1, run:

doadm -xdn droplet-1

To display the list of droplets, run:

doadm -ld

To create the PostgreSQL database mimix-db-1, run:

doadm -cbn mimix-db-1

To destroy the PostgreSQL database mimix-db-1, run:

doadm -xbn mimix-db-1

To display the list of databases, run:

doadm -lb

To create or apply the firewall mimix to the droplets droplet-1 and droplet-2, allowing access from your public IP address and 62.5.13.190 only, on the ports 22, 80, and 443, run:

doadm -cfn mimix -a droplet-1,droplet-2 -SA 62.5.13.190 -P 22,80,443

To expel droplet-2 from the firewall mimix, run:

doadm -cfn mimix -X droplet-2

To expunge the firewall mimix and its association with any droplet, run:

doadm -xfn mimix

To display the list of firewalls, run:

doadm -lf

To create a subdomain home under the TLD streamsharing.io, pointing to 161.35.122.135, run:

doadm -cDn streamsharing.io -s home -A 161.35.122.135

To expunge the subdomain home from streamsharing.io, run:

doadm -xDn streamsharing.io -s home

To list the domains under streamsharing.io, run:

doadm -lDn streamsharing.io

To display usage summary, run:

doadm --help

doadm's People

Watchers

Garran Plum 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.