From 0f7357953330ec172517479c044e6c2a82731c5a Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 27 Sep 2016 13:51:54 -0700 Subject: [PATCH] Clarify server-members is server-only (#1761) * Add a note to the CLI that only servers can run this command * Add a callout that this is a server command * Remove the annoying bottom margin on callouts --- command/server_members.go | 3 ++- website/source/assets/stylesheets/_global.scss | 4 ++++ website/source/docs/commands/server-members.html.md.erb | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/command/server_members.go b/command/server_members.go index 94f5aadfc..e8340920d 100644 --- a/command/server_members.go +++ b/command/server_members.go @@ -17,7 +17,8 @@ func (c *ServerMembersCommand) Help() string { helpText := ` Usage: nomad server-members [options] - Display a list of the known servers and their status. + Display a list of the known servers and their status. Only Nomad servers are + able to service this command. General Options: diff --git a/website/source/assets/stylesheets/_global.scss b/website/source/assets/stylesheets/_global.scss index acc38ea47..79872463b 100755 --- a/website/source/assets/stylesheets/_global.scss +++ b/website/source/assets/stylesheets/_global.scss @@ -81,6 +81,10 @@ pre { text-align: center; } +.alert p:last-child { + margin-bottom: 0; +} + //fixed grid below 992 to prevent smaller responsive sizes @media (max-width: 992px) { .container{ diff --git a/website/source/docs/commands/server-members.html.md.erb b/website/source/docs/commands/server-members.html.md.erb index e72db0e4c..d5fe869ab 100644 --- a/website/source/docs/commands/server-members.html.md.erb +++ b/website/source/docs/commands/server-members.html.md.erb @@ -12,6 +12,9 @@ The `server-members` command displays a list of the known servers in the cluster and their current status. Member information is provided by the gossip protocol, which is only run on server nodes. +~> **Only runs on servers!** This command can only be run from the server nodes. +Running nomad server-members from a client will result in an error. + ## Usage ```