Closed nak3 closed 8 years ago
$ ./bin/torusctl config
$ ./bin/torusctl config --view
{
"etcd_config": {
"default": {
"etcd": "127.0.0.1:2379"
}
}
}
$ ./bin/torusctl config --profile=production --etcd=https://192.168.133.2:2379 --etcd-ca-file=/path --etcd-cert-file=/path --etcd-key-file=/path
$ ./bin/torusctl config --view
{
"etcd_config": {
"default": {
"etcd": "127.0.0.1:2379"
},
"production": {
"etcd": "https://192.168.133.2:2379",
"etcd-ca-file": "/path",
"etcd-cert-file": "/path",
"etcd-key-file": "/path"
}
}
}
$ ./bin/torusctl init --profile=production
$ ./bin/torusctl init --etcd=192.168.133.3
This is great. Can the config file be YAML instead of JSON? Fewer user errors with YAML I think.
Yeah, JSON for the config files -- that's why you have a torusctl config
command. Less user error in doing it that way.
fixes https://github.com/coreos/torus/issues/176