Code Monkey home page Code Monkey logo

mast's Introduction

mast

Configuration managent on top of etcd

mast is CLI tool that uses etcd to get customizable configuration management values

In order to orchestrate a farm of containers it is often needed to customize key/values on specific subsets of containers. mast is using etcdctl to get the value of the requested key

Format:

mast <SERVICE> <KEY>

Keys that are looked for value (in priority order - first wins):

  • /mast/service/SERVICE/KEY
  • /mast/hostname/HOSTNAME/KEY
  • /mast/metadata/METAKEY1=METAVALUE1/KEY
  • /mast/metadata/METAKEY2=METAVALUE2/KEY
  • /mast/metadata/METAKEYX=METAVALUEX/KEY
  • /mast/global/KEY

Dependencies

mast depends on:

  • etcd (for the distributed key/value storage)
  • fleet (for the machine's metadata sets)

mast is only used for retrieving values, in order to set the values, etcdctl can be used.

Use Case

The most common way to use mast is inside fleet unit files as such:

mast %p KEY

The %p is dynamically resolved by systemd with the service name.

Installation

Installation From CLI:

curl -L https://github.com/harbur/mast/raw/v0.0.1/mast > /usr/local/bin/mast
chmod +x /usr/local/bin/mast

Installation from Cloud-config at CoreOS:

coreos:
  units:
    - name: mast.service
      runtime: true
      command: start
      content: |
        [Unit]
        Description=Install Mast

        [Service]
        ExecStart=/usr/bin/bash -c '/usr/bin/sleep 10s && /usr/bin/mkdir -p /opt/bin && /usr/bin/curl -sSL https://github.com/harbur/mast/raw/v0.0.1/mast > /opt/bin/mast && chmod +x /opt/bin/mast'

mast's People

Contributors

dkapanidis avatar

Stargazers

 avatar

Watchers

James Cloos 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.