Nietzsche's Preposterous Moustache

    etcetera

    3.2.1 • Public • Published

    etcetera

    on npm Coverage Status

    Read config from etcd. Fill out templates. Write upstart files. Be our diode electrode generator oscillator configurator make a circuit with us.

    An example template is in templates/configuration.tmpl.

    Usage

    npm install -g etcetera

    This will install two commandline tools.

    etcetera

    Configure the named application by filling out its template with data from etcd.

    etcetera [-d deploydir] [-g hostgroup] [-c template] appname
    Options:
      --version        Show version number                                 [boolean]
      -d, --deploydir  full path to deploy directory
      -t, --template   configuration template file name
                                                     [default: "configuration.tmpl"]
      -g, --group      hostgroup, if there is one                      [default: ""]
      -s, --silent     do not log helpfully                                [boolean]
      -h, --host       etcd host to talk to (overrides `.renvrc`)            [array]
      -e, --env        etcdrc environment
      -u, --username   etcd username
      -p, --password   etcd password
      --help           Show help                                           [boolean]
    Examples:
      etcetera my-service
      etcetera -d /mnt/deploys/foozle my-service
    

    upstarter

    Generate an upstart file from the provided config

    upstarter [-o output] [service-name|configpath]
    Options:
      -o, --output  where to write the upstart files          [default: "/etc/init"]
      -s, --silent  do not log helpfully                                   [boolean]
      --help        Show help                                              [boolean]
    
    Examples:
      upstarter my-service
      upstarter -o /etc/whatever /mnt/deploys/my-service/configuration.toml
    

    If you don't have a full path in the target for upstarter, it will look for a configuration file in /mnt/deploys/TARGET/configuration.toml.

    systemder

    Generate a systemd unit file from a provided config

    generate a systemd unit file from the provided config
    systemder.js [-o output] [service-name|configpath]
    
    Options:
          --version   Show version number                                  [boolean]
      -o, --output    where to write the upstart files
                                                   [default: "/etc/systemd/system/"]
      -s, --silent    do not log helpfully                                 [boolean]
      -f, --filebeat  write to filebeat instead of disk                    [boolean]
          --help      Show help                                            [boolean]
    
    Examples:
      systemder my-service
      systemder -o /etc/whatever /mnt/deploys/my-service/configuration.toml
    

    .etcdrc

    etcetera will read your etcd configuration from any .etcdrc files you have sitting around, defaulting with $HOME/.etcdrc and falling back to $HOME/.renvrc for backwards compatibility

    LICENSE

    ISC.

    Install

    npm i etcetera

    DownloadsWeekly Downloads

    90

    Version

    3.2.1

    License

    ISC

    Unpacked Size

    37.3 kB

    Total Files

    27

    Last publish

    Collaborators

    • kmkumaran
    • fauldsh
    • trevrosen
    • vipuljain
    • bhaveshbhati
    • devyani-chowdhury2
    • ben-1997
    • raashidanwar
    • ruslan-bikkinin
    • makhmudjon-inadullaev
    • isaacs
    • fritzy
    • npm
    • kirupakaranh
    • npmci
    • 20shivangi
    • akshayagh
    • nishantms
    • prabum3
    • ghostdevhv
    • s121pradhan
    • amit-avit
    • saquibkhan
    • nehsharmms
    • dhilipdkkumar
    • sandeepmeduru
    • singit
    • lisayu
    • neeldani
    • arjgupta
    • ashishonce
    • nlf
    • asranja
    • phanikm
    • andrialexandrou
    • thedave42
    • gar
    • darcyclarke
    • ruyadorno
    • mangwana
    • npm-sre-readonly
    • npm-sre-write
    • robdnpm
    • john7doe
    • soph2k
    • lumaxis
    • meijin007
    • sapieneptus
    • jacobe
    • gordey4doronin
    • hilli
    • christoflemke
    • maxxkrakoa
    • owenniblock
    • olefriis
    • ethomson
    • baj-
    • stoneman
    • radiantspace
    • smeirsha
    • jmoody
    • t-dekell
    • t-dedim
    • mylesborins
    • ndorfman
    • npm-qa
    • npm-qa-tfa1
    • npm-qa-tfa2
    • jar349
    • trevorsg
    • rzhade3
    • seryozha95
    • royetadmor
    • synse
    • fabyus
    • lukekarrys
    • levenleven
    • timaramazanov
    • anurbol
    • ceejbot
    • mmalecki
    • bcoe