aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-28 15:07:16 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-28 15:07:18 -0800
commit89977123b6da298e07c429f78e68c0529fe611c5 (patch)
tree07722b81b00feb7bcc51fe88cdfd6ebe9a2bd2d7 /weed/command/scaffold.go
parent54fe0e5059acd9bf53852a65ecdb63820bb71c33 (diff)
downloadseaweedfs-89977123b6da298e07c429f78e68c0529fe611c5.tar.xz
seaweedfs-89977123b6da298e07c429f78e68c0529fe611c5.zip
shell: add shell.toml support
fix https://github.com/chrislusf/seaweedfs/issues/1664
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index 6cfd46427..d1b4b27ac 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -44,6 +44,8 @@ func runScaffold(cmd *Command, args []string) bool {
content = SECURITY_TOML_EXAMPLE
case "master":
content = MASTER_TOML_EXAMPLE
+ case "shell":
+ content = SHELL_TOML_EXAMPLE
}
if content == "" {
println("need a valid -config option")
@@ -460,4 +462,18 @@ copy_other = 1 # create n x 1 = n actual volumes
treat_replication_as_minimums = false
`
+ SHELL_TOML_EXAMPLE = `
+
+[cluster]
+default = "c1"
+
+[cluster.c1]
+master = "localhost:9333" # comma-separated master servers
+filer = "localhost:8888" # filer host and port
+
+[cluster.c2]
+master = ""
+filer = ""
+
+`
)