Noisy Pneumatic Mnemonic

    tm-consul-cluster-manager

    1.0.11 • Public • Published

    Tm-consul-cluster-manager

    Trinity mirror cluster manager, tied to Hashicorp consul for configuration management.

    processes

    Watches a consul KV endpoint, For a configuration file list, defined as a JSON array. Contacts those KV endpoints and downloads and writes out the NodeJS configuration files for the scripts to consume. Upon either modification or startup, manages the PM2 process manager to start or restart the cluster.Cluster is defined from a pm2.json file.

    Set the enviroment variable

    CONSUL_URL=http://192.168.99.100:8500/v1/kv/configmanifest

    This is the config manifest file list which is defined as such

    
    [{
        "key": "development",
        "dest": "config/development.js"
    }]
    
    

    This will then load the value store in the 'key' attribute, and save it in to the specified 'dest' file

    see example/master.js

    Install

    npm i tm-consul-cluster-manager

    DownloadsWeekly Downloads

    3

    Version

    1.0.11

    License

    ISC

    Last publish

    Collaborators

    • jc888