bc-cliservice config etcd

This is a configuration service that connects to a etcd distributed key value store using the v2 protocol.

Environment variables

BEYONDCRON_CONFIG_SERVICE ETCD
ETCD_DIR etcd directory in which BeyondCron will read/write key/value pairs.
ETCD_ENDPOINTS Space separated list for etcd servers to connect to. Default = http://localhost:2379/
ETCD_PROTOCOL Protocol on which the etcd endpoints are listening on. This value is used for any servers listed in ETCD_ENDPOINTS that do not include a protocol. Default = http
ETCD_PORT Port on which the etcd endpoints are listening. This value is used for any servers listed in ETCD_ENDPOINTS that do not include a port. Default = 2379
ETCD_USER_NAME name of user to authenticate with the etcd servers as. If not defined, BeyondCron will attempt an unauthenticated connection to the etcd Servers.
ETCD_USER_PASSWORD password of the etcd authentication user. If the password is in the format file:filename, then the password will be read from filename. Default is no password.

Examples

Set up an unauthenticated connection to etcd.

$ export ETCD_ENDPOINTS=etcd1.example.com etcd2.example.com
$ export ETCD_DIR=bc-config
$ export BEYONDCRON_CONFIG_SERVICE=ETCD
$ /opt/bc-cli/bin/bc-cli

Set up an authenticated connection to etcd.

$ export ETCD_ENDPOINTS=etcd.example.com
$ export ETCD_DIR=bc-config
$ export ETCD_USER_NAME=beydoncron
$ export ETCD_USER_PASSWORD=Battery…
$ export BEYONDCRON_CONFIG_SERVICE=ETCD
$ /opt/bc-cli/bin/bc-cli

Set up connection to etcd with the password being read from a file.

$ export ETCD_ENDPOINTS=etcd.example.com
$ export ETCD_DIR=bc-config
$ export ETCD_USER_NAME=beydoncron
$ export ETCD_USER_PASSWORD=file:/home/jsmith/.etcd/beyondcron-password
$ export BEYONDCRON_CONFIG_SERVICE=ETCD
$ /opt/bc-cli/bin/bc-cli

See also

  • service config AWS
  • service config JDBC

Reference

  • Cloud Native Computing Foundation etcd