summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-07-29 16:50:25 +0300
committerLars Wirzenius <liw@liw.fi>2017-07-29 16:50:25 +0300
commitbc086c828c6bc5174de464f8888bfb3ae2b23ecd (patch)
treed2b1ae4edfa8785ade78921f1d2f0d461d044eec
parent42617160d1827e72031d9bdb1a8a84dc0d0af567 (diff)
downloadvmdb2-bc086c828c6bc5174de464f8888bfb3ae2b23ecd.tar.gz
Add: chapter on configuration files
-rw-r--r--doc/en/000.mdwn23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/en/000.mdwn b/doc/en/000.mdwn
index 96cab72..9f333af 100644
--- a/doc/en/000.mdwn
+++ b/doc/en/000.mdwn
@@ -176,6 +176,29 @@ cache tar archive.
- cliapp config files, ini and yaml, and the fact that a long
option is always an acceptable variable in a config file
+`vmdb2` has a number of command line options. Run `vmdb2 --help` to
+see them all, or look at the manual page (`man vmdb2`).
+
+Each long option (`--output` for example) can be a **configuration
+variable** in a configuration file. The program looks up and reads
+several configration files, such as `~/.config/vmdb2/*.conf` and
+`*.yaml` in the same directory. `.yaml` files use a YAML syntax,
+everything else uses INI file syntax.
+
+Example: Store the following as `~/.config/vmdb2/vmdb2.yaml`:
+
+ config:
+ output: /tmp/vmdb2.img
+ log: /tmp/vmdb2.log
+ rootfs-tarball: /tmp/vmdb2.tar.gz
+
+This is equivalent of running `vmdb2--output=/tmp/vmdb2.img
+--log=/tmp/vmdb2.log --rootfs-tarball=/tmp/vmdb2.tar.gz`.
+
+See **cliapp**(5) for more detailed information about configuration
+files. cliapp is a Python library that `vmdb2` uses for command line
+handling, configuration files, and such things.
+
# A .vmdb2 image specification file
- yaml, jinja2 syntax