mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #39991 from terminalmage/source_hash-docs
Document the fact that the checksum type can be omitted in file.managed states
This commit is contained in:
commit
61f1fb04c5
@ -1235,7 +1235,20 @@ def managed(name,
|
||||
Debian file type ``*.dsc`` files are also supported.
|
||||
|
||||
**Inserting the Source Hash in the SLS Data**
|
||||
Examples:
|
||||
|
||||
The source_hash can be specified as a simple checksum, like so:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
tomdroid-src-0.7.3.tar.gz:
|
||||
file.managed:
|
||||
- name: /tmp/tomdroid-src-0.7.3.tar.gz
|
||||
- source: https://launchpad.net/tomdroid/beta/0.7.3/+download/tomdroid-src-0.7.3.tar.gz
|
||||
- source_hash: 79eef25f9b0b2c642c62b7f737d4f53f
|
||||
|
||||
.. note::
|
||||
Releases prior to 2016.11.0 must also include the hash type, like
|
||||
in the below example:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
@ -1245,7 +1258,6 @@ def managed(name,
|
||||
- source: https://launchpad.net/tomdroid/beta/0.7.3/+download/tomdroid-src-0.7.3.tar.gz
|
||||
- source_hash: md5=79eef25f9b0b2c642c62b7f737d4f53f
|
||||
|
||||
|
||||
Known issues:
|
||||
If the remote server URL has the hash file as an apparent
|
||||
sub-directory of the source file, the module will discover that it
|
||||
|
Loading…
Reference in New Issue
Block a user