setup: Add seeds and no server feature

We will want both of these for most clustered setups.
This commit is contained in:
James Shubin
2025-03-10 16:24:18 -04:00
parent f5e2fde20d
commit 09f3b8c05f
2 changed files with 31 additions and 5 deletions

View File

@@ -163,10 +163,13 @@ type SetupPkgArgs struct {
// SetupSvcArgs is the setup service CLI parsing structure and type of the
// parsed result.
type SetupSvcArgs struct {
BinaryPath string `arg:"--binary-path" help:"path to the binary"`
Install bool `arg:"--install" help:"install the systemd mgmt service"`
Start bool `arg:"--start" help:"start the mgmt service"`
Enable bool `arg:"--enable" help:"enable the mgmt service"`
BinaryPath string `arg:"--binary-path" help:"path to the binary"`
Seeds []string `arg:"--seeds,env:MGMT_SEEDS" help:"default etcd client endpoints"`
NoServer bool `arg:"--no-server" help:"do not start embedded etcd server (do not promote from client to peer)"`
Install bool `arg:"--install" help:"install the systemd mgmt service"`
Start bool `arg:"--start" help:"start the mgmt service"`
Enable bool `arg:"--enable" help:"enable the mgmt service"`
}
// SetupFirstbootArgs is the setup service CLI parsing structure and type of the