You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/puppet/latest/type.md
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1227,7 +1227,7 @@ mount points.
1227
1227
* Fully qualified paths to locally available files (including files on NFS
1228
1228
shares or Windows mapped drives).
1229
1229
*`file:` URIs, which behave the same as local file paths.
1230
-
*`http:` URIs, which point to files served by common web servers.
1230
+
*`http(s):` URIs, which point to files served by common web servers.
1231
1231
1232
1232
The normal form of a `puppet:` URI is:
1233
1233
@@ -1243,16 +1243,17 @@ directories if the `recurse` attribute is set to `true` or `remote`. If
1243
1243
a source directory contains symlinks, use the `links` attribute to
1244
1244
specify whether to recreate links or follow them.
1245
1245
1246
-
_HTTP_ URIs cannot be used to recursively synchronize whole directory
1246
+
HTTP URIs cannot be used to recursively synchronize whole directory
1247
1247
trees. You cannot use `source_permissions` values other than `ignore`
1248
1248
because HTTP servers do not transfer any metadata that translates to
1249
1249
ownership or permission details.
1250
1250
1251
-
The `http` source uses the server `Content-MD5` header as a checksum to
1252
-
determine if the remote file has changed. If the server response does not
1253
-
include that header, Puppet defaults to using the `Last-Modified` header.
1254
-
Puppet will update the local file if the header is newer than the modified
1255
-
time (mtime) of the local file.
1251
+
Puppet determines if file content is synchronized by computing a checksum for the local file and comparing it against the `checksum_value` parameter. If the `checksum_value` parameter is not specified for `puppet` and `file` sources, Puppet computes a checksum based on its `Puppet[:digest_algorithm]`. For `http(s)` sources, Puppet uses the
1252
+
first HTTP header it recognizes out of the following list:`X-Checksum-Sha256`, `X-Checksum-Sha1`, `X-Checksum-Md5` or `Content-MD5`. If the server response does not include one of these headers, Puppet defaults to using the `Last-Modified` header. Puppet updates the localfile if the header is newer than the modified time (mtime) of the local file.
1253
+
1254
+
HTTP URIs can include a user information component so that Puppet can retrieve file metadata and content from HTTP servers that require HTTP Basic authentication. For example `https://<user>:<pass>@<server>:<port>/path/to/file.`
1255
+
1256
+
When connecting to HTTPS servers, Puppet trusts CA certificates in the `puppet-agent` certificate bundle and the Puppet CA. You can configure Puppet to trust additional CA certificates using the `Puppet[:ssl_trust_store]` setting.
1256
1257
1257
1258
Multiple `source` values can be specified as an array, and Puppet will
1258
1259
use the first source that exists. This can be used to serve different
Copy file name to clipboardExpand all lines: source/puppet/latest/types/file.md
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -649,7 +649,7 @@ mount points.
649
649
* Fully qualified paths to locally available files (including files on NFS
650
650
shares or Windows mapped drives).
651
651
*`file:` URIs, which behave the same as local file paths.
652
-
*`http:` URIs, which point to files served by common web servers.
652
+
*`http(s):` URIs, which point to files served by common web servers.
653
653
654
654
The normal form of a `puppet:` URI is:
655
655
@@ -668,13 +668,14 @@ specify whether to recreate links or follow them.
668
668
_HTTP_ URIs cannot be used to recursively synchronize whole directory
669
669
trees. You cannot use `source_permissions` values other than `ignore`
670
670
because HTTP servers do not transfer any metadata that translates to
671
-
ownership or permission details.
671
+
ownership or permission details.
672
672
673
-
The `http` source uses the server `Content-MD5` header as a checksum to
674
-
determine if the remote file has changed. If the server response does not
675
-
include that header, Puppet defaults to using the `Last-Modified` header.
676
-
Puppet will update the local file if the header is newer than the modified
677
-
time (mtime) of the local file.
673
+
Puppet determines if file content is synchronized by computing a checksum for the local file and comparing it against the `checksum_value` parameter. If the `checksum_value` parameter is not specified for `puppet` and `file` sources, Puppet computes a checksum based on its `Puppet[:digest_algorithm]`. For `http(s)` sources, Puppet uses the
674
+
first HTTP header it recognizes out of the following list:`X-Checksum-Sha256`, `X-Checksum-Sha1`, `X-Checksum-Md5` or `Content-MD5`. If the server response does not include one of these headers, Puppet defaults to using the `Last-Modified` header. Puppet updates the localfile if the header is newer than the modified time (mtime) of the local file.
675
+
676
+
HTTP URIs can include a user information component so that Puppet can retrieve file metadata and content from HTTP servers that require HTTP Basic authentication. For example `https://<user>:<pass>@<server>:<port>/path/to/file.`
677
+
678
+
When connecting to HTTPS servers, Puppet trusts CA certificates in the `puppet-agent` certificate bundle and the Puppet CA. You can configure Puppet to trust additional CA certificates using the `Puppet[:ssl_trust_store]` setting.
678
679
679
680
Multiple `source` values can be specified as an array, and Puppet will
680
681
use the first source that exists. This can be used to serve different
0 commit comments