Skip to content

A lightweight Linux cluster orchestration system written in Go (Under active development, just working on plugins https://github.com/chabad360/plugins)

License

Notifications You must be signed in to change notification settings

chabad360/covey

Repository files navigation

Covey

A lightweight Linux cluster orchestration server written in Go

Codacy Badge Codacy Badge CII Best Practices Chat on discord

Covey is a project designed to fill a certain void, the lack of a nice lightweight cluster management system. There are tools like Rundeck (which Covey takes after), that are quite capable, but are far too heavy to be useful.

Features

Covey has, and will gain (in the coming weeks/months) a variety of features, including:

  • RESTful API (with swagger docs!)
  • Plug-able Modules (ish, it's very broken at the moment)
  • Web Interface (basic)
  • Node Monitoring (using Netdata)
  • Automated Setup (Almost there)
  • Crash-only design (pretty much)

Current Roadmap

V0.1 MVP

  • Create MVP

V0.2 The Refactor

  • Major Refactor

V0.3 Web Interface

  • Design and implement the basic web interface
  • Implement basic authentication
  • Begin adding tests
  • Switch away from mux (too slow...)

V0.4 Monitoring

  • Fix some issues with the plugin system
  • Rework the task module
  • Create Node Agent
  • Persistent queue
  • Add relevant UI elements
  • Automatically install agent
  • Add SystemD service file to the agent
  • Integrate with Netdata for monitoring
  • Add tests

V0.5 A Better API

  • Evaluate designing a very basic framework (for keeping things cleaner)
  • Evaluate GraphQL for the API
  • Redesign DB using Gorm
  • Fully implement (and test) the API
  • Swagger (OpenAPI)
  • Fully document the API

V0.6 Alpha

  • Fix the plugin system (in progress, checkout github.com/chabad360/plugins for more details)
  • Provide configuration system
  • Switch to //go:embed (this might need to wait)
  • CI/CD
  • Big Refactor
  • Add and refactor tests (Aim for 80% Coverage)
  • Complete the web UI
  • Add a Makefile (?)
  • Refactor agent

State of the Project

Covey is in active development, it's written in Go, and uses Postgres as the database. If you are interested in helping with development, open a PR with your changes. At the moment, I'm currently polishing off the plugin system and fixing up the CI/CD process.

Installation Instructions

$ git clone https://github.com/chabad360/covey
$ cd covey
$ goreleser build --snapshot --rm-dist
$ createdb covey
$ ./dist/Covey_linux_amd64/Covey # This will crash, it's meant to (will be fixed)
$ psql -U postgres covey <<EOF
INSERT INTO users(username, password_hash) VALUES(<username>, crypt(<password>, gen_salt('bf')));
EOF
$ ./dist/Covey_linux_amd64/Covey -plugins-folder=./plugins

Use the following command to build covey with live file system changes support:

$ goreleaser build --snapshot --rm-dist
$ go build -tags=live -trimpath github.com/chabad360/covey

Build Signing

The builds are signed with the following public key:

https://keys.openpgp.org/vks/v1/by-fingerprint/63192DE48E0FBE543127B71C8CD4B302F58542C6

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQGNBF/8/78BDADo6hwlrKrBBhQCl2o4HQosYB+gdMMdG14ioaTMLRXJ6e1ftfqg
tz0TmMpvqpNIW/fV6yWzdVtIxMG54NT0mQN2gToVV/Upy4ApXN9rkH8tx+QJoXeW
8u0IOORBYogQ9qJn3B7s02bAcghbOFlNgdSEPru8/aAs+E+IGUbw8a2BG+13Iz4F
NttYIRB1pfBLI+Qsy1Z/sW/P6B92UHJ6Qxk8kNJ83/5wnl/IjgAqsgvDszlz+ch+
Hlni4S38tQQadtd4QCHqLI3MCTci/8tp3DSJ06nynuCA/tmJ8m3j8RmLXaHFjRwc
RqOW9wGxGIy2us8dINpAnTGwHrhMptB7a2oxAEY6sud9GbGVHzXZVTR2RYfTDwXG
ICCsuxlOUVbMLOxKiRrvnYgiaMSRcfBhTVRbdikCir1HqPO6vgymXhaJWh1xKXHt
rmUBmI7n3pr4s+x7vTIvXfT738f+08KCcidEftSe5/wxolMlqzdUInCOsIPwiXYL
uVK5Aaya5QLUvvMAEQEAAbQhQ292ZXkgQ0kgQm90IDxjb3ZleUBjaGFiYWQzNjAu
bWU+iQHSBBMBCgA8FiEEYxkt5I4PvlQxJ7ccjNSzAvWFQsYFAl/8/78CGwMFCQPC
ZwAECwkIBwQVCgkIBRYCAwEAAh4BAheAAAoJEIzUswL1hULGP00L+gMnm+kyskuD
O+NsT8504ePtxxqc7m9p425r3yYAW96sLm8IEinlGs7QgDFn+xA+z5P9PZ1n8pq5
wBxOoTgpgxmZkNUinwvhDy36Dv4xCHMr6r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wWkDDke54hUrCF7GPF8olS925XDLyH
aSDKwiZSeiIioPU+fyXQnWv/tGU6J7wym+ybbjsMg1bT/kvIn6X28yZ7TqwzZHXk
2VEVG3L0L4R1jMsbtIJu2igx1TO8S+RtH3D4OEYsa8q8v4kUtLYBDo7Kw0ibOMBs
hjCsLQ1WqqTk7lkBYQ==
=d1Jz
-----END PGP PUBLIC KEY BLOCK-----

Fossa

FOSSA Status

About

A lightweight Linux cluster orchestration system written in Go (Under active development, just working on plugins https://github.com/chabad360/plugins)

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages