From d24303b31530dfd6196d2e8c3d01a42193d304f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com>
Date: Fri, 4 Nov 2011 10:22:13 +0100
Subject: [PATCH] ganeti(7): Adding documentation about env variables
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: RenΓ© Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 man/ganeti.rst | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/man/ganeti.rst b/man/ganeti.rst
index 3daf8b54f..a95b63e7d 100644
--- a/man/ganeti.rst
+++ b/man/ganeti.rst
@@ -176,6 +176,21 @@ would succeed.
 The option ``--priority`` sets the priority for opcodes submitted
 by the command.
 
+Defaults
+~~~~~~~~
+
+For certain commands you can use environment variables to provide
+default command line arguments. Just assign the arguments as a string to
+the corresponding environment variable. The format of that variable
+name is **binary**_*command*. **binary** is the name of the ``gnt-*``
+script all upper case and dashes replaced by underscores, and *command*
+is the command invoked on that script.
+
+Currently supported commands are ``gnt-node list``, ``gnt-group list``
+and ``gnt-instance list``. So you can configure default command line
+flags by setting ``GNT_NODE_LIST``, ``GNT_GROUP_LIST`` and
+``GNT_INSTANCE_LIST``.
+
 Field formatting
 ----------------
 
-- 
GitLab