Giter Club home page Giter Club logo

casper's Introduction

CASPER

Configuration Automation for Safe and Painless Environment Releases

Build Status Coverage Status Go Report Card

Description

Casper is a simple tool for managing configurations as code where the structure of the configurations is separated from the values themselves. That way you can use the same structure for different environments. The structure of the configurations is described in a template file. Overall the tool combines the template file with all the values, serializes it to a format applicable for the configuration storage and pushes the changes to the storage.

Installation

From source

go get -u github.com/miracl/casper/cmd/casper

Example

cd examples/
casper build

Usage

All configurations can be given on the command line, with file or with environment variables. Check casper -h for full list.

  • template - The template file is a golang template. The end product of the template file and the values should be of a format applicable for the configuration storage (e.g: json, yaml for key/value stores)
  • sources - Sources are the thing containing the keys for the template. Sources is a list. Currently there are 2 available:
    • Config source is a list of key/value pairs directly in the configuration file. Check (config.yaml) for examples.
       sources:
       - key1=val1
       - key2=val2
      
    • File source defines key/value pairs in a file. Currently supported formats are json and yaml.
       sources:
       - file://source.yaml
      
  • storage - Storage is the system that Casper menages. Currently there are 2 available:
    • Consul.
       storage: consul
       consul-addr: http://172.17.0.1:8500/?token=acl_token&ignore=_ignore
      
      • ignore - keys given the value of this setting in configuration will be ignored by Casper. The default such value is _ignore
    • File
       storage: file
       file-path: output.yaml
      

casper's People

Contributors

aleksandarkrastev avatar vmitov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

casper's Issues

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.