confd.toml:
[global]
confdir = "/etc/confd"
interval = 200
noop = false
onetime = true
prefix = "/"
watch = false
log_level = "debug"
[etcd]
srv = "https,confd.io"
client_cert = "/etc/ssl/etcd.cert"
client_cert_key = "/etc/ssl/etcd.cert.key"
client_ca_keys = "/etc/ssl/ca-keys"
[fs]
root_path = "/mycustomroot"
max_file_size = 1024
templates:
[template]
src = "basic.conf.tmpl"
dest = "/tmp/confd-basic-test.conf"
uid = 0
gid = 0
mode = "0644"
keep_stage_file = false
prefix = "/"
keys = [
"/database/host",
"/database/password",
"/database/port",
"/database/username",
]
check_cmd = ""
reload_cmd = ""
$> confd --help
NAME:
confd - manage local application configuration files using templates and data
USAGE:
confd [global options] command [command options] [arguments...]
VERSION:
0.10.0-dev
AUTHOR(S):
COMMANDS:
consul
env
etcd
redis
zookeeper
fs
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--config-file "/etc/confd/confd.toml" the confd config file
--confdir confdir
--interval "600" interval
--noop noop
--onetime onetime
--prefix prefix
--watch watch
--log-level log-level
--tmpl-src tmpl-src
--tmpl-dest tmpl-dest
--tmpl-uid "0" tmpl-uid
--tmpl-gid "0" tmpl-gid
--tmpl-mode "0644" tmpl-mode
--tmpl-keep-stage-file tmpl-keep-stage-file
--tmpl-key [--tmpl-key option --tmpl-key option] tmpl-key
--tmpl-check-cmd tmpl-check-cmd
--tmpl-reload-cmd tmpl-reload-cmd
--help, -h show help
--version, -v print the version
$> confd consul --help
NAME:
consul -
USAGE:
command consul [command options] [arguments...]
OPTIONS:
--node [--node option --node option] node
--srv srv
$> confd etcd --help
NAME:
etcd -
USAGE:
command etcd [command options] [arguments...]
OPTIONS:
--node [--node option --node option] node [$ETCDCTL_PEERS]
--srv srv
--client-cert client-cert
--client-cert-key client-cert-key
--client-ca-keys client-ca-keys
$> confd fs --help
NAME:
fs -
USAGE:
command fs [command options] [arguments...]
OPTIONS:
--root-path root-path
--max-file-size "1048576" max-file-size