Asteroid

Gem Version

Asteroid is a server management framework built in Ruby. It is heavily inspired by Fucking Shell Scripts.

Creating a new Project

gem install asteroid
asteroid new <project_name>

Things you need to edit

  • secrets/providers.rb contains the file that loads providers
  • secrets/secrets.yml is a place to store secrets used elsewhere

Create a new Server

To create a server, create a .yml file in asteroid/servers. Create one named web.yml that looks like this:

name: web

instance_options:
  size_id: 61               # DigitalOcean 1gb
  region_id: 12             # DigitalOcean NYC2
  ssh_key_ids: [1123232]

commands:
  after-create:
    - configure

  configure:
    - run apt-get upgrade

To create an instance

Run this in your project root

asteroid server create web

If everything is configured you should have a new server in the cloud.