CDIST-TYPE__DOWNLOAD(7) | cdist | CDIST-TYPE__DOWNLOAD(7) |
cdist-type__download - Download a file
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. If download happens in target (see --download) then type will fallback to (and install) wget.
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 ...).
__directory /opt/cpma require='__directory/opt/cpma' \
__download /opt/cpma/cnq3.zip \
--url https://cdn.playmorepromode.com/files/cnq3/cnq3-1.51.zip \
--sum md5:46da3021ca9eace277115ec9106c5b46 require='__download/opt/cpma/cnq3.zip' \
__unpack /opt/cpma/cnq3.zip \
--backup-destination \
--preserve-archive \
--destination /opt/cpma/server
Ander Punnar <ander-at-kvlt-dot-ee>
Copyright (C) 2020 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ungleich GmbH 2020
February 7, 2021 | 6.9.4 |