Skip to content

davidbanham/cavalry

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

Cavalry

Cavalry is a way to get git repositories onto machines, then run the code in them. It's heavily inspired by fleet and propagit.

Cavalry is designed to work in conjuction with Field Marshal

Build Status

Installation

Cavalry expects nginx to be present on the system. Ports:

  • 3000 will need to be accessible by the master.
  • 7005 is where nginx is listening
  • 8000-9000 Web accessible services, if they ask, will be assigned ports between 8000 and 9000.

It's in npm, so just: npm install -g cavalry

Running it

Configuration paramaters are passed in via environment variables. eg:

SLAVEID=us-1 MASTERHOST=localhost MASTERPASS=masterpassword SECRET=password node index.js

If they're not present, a default will be substituted.

  • SLAVEID is the identifier for the machine
  • MASTERHOST is the fqdn/ip where the master can be found
  • MASTERPASS is the password used to authenticate with the master
  • SECRET is the password the master will use to authenticate with this slave

About

The per-machine worker process for Field Marshal

Resources

Stars

Watchers

Forks

Packages

No packages published