ganeti(7): Adding documentation about env variables
authorRené Nussbaumer <rn@google.com>
Fri, 4 Nov 2011 09:22:13 +0000 (10:22 +0100)
committerRené Nussbaumer <rn@google.com>
Fri, 4 Nov 2011 12:21:27 +0000 (13:21 +0100)
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

man/ganeti.rst

index 3daf8b5..a95b63e 100644 (file)
@@ -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
 ----------------