[__download] update manual

This commit is contained in:
ander 2020-06-28 16:43:45 +03:00
parent 85614aabd6
commit b6bf90e3f1
1 changed files with 6 additions and 7 deletions

View File

@ -8,15 +8,14 @@ cdist-type__download - Download a file
DESCRIPTION
-----------
Persistent storage for destination file in target host must be used
(``$__object_id``) because it will be used for checksum calculation in
order to decide if file must be (re-)downloaded.
Destination (``$__object_id``) in target host must be persistent storage
in order to calculate checksum and decide if file must be (re-)downloaded.
By default type will try to use ``wget``, ``curl`` or ``fetch`` for
downloading. If ``--download remote`` type will fallback to (and
install) ``wget``.
By default type will try to use ``wget``, ``curl`` or ``fetch``.
If download happens in target (see ``--download``) then type will
fallback to (and install) ``wget``.
If ``--download local`` (default), then environment variables like
If download happens in local machine, then environment variables like
``{http,https,ftp}_proxy`` etc can be used on cdist execution
(``http_proxy=foo cdist config ...``).