Skip to content

Commit d2a7249

Browse files
committed
Update source with support for https URIs
1 parent 7082110 commit d2a7249

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

source/puppet/latest/type.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ mount points.
12271227
* Fully qualified paths to locally available files (including files on NFS
12281228
shares or Windows mapped drives).
12291229
* `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.
12311231

12321232
The normal form of a `puppet:` URI is:
12331233

@@ -1243,16 +1243,17 @@ directories if the `recurse` attribute is set to `true` or `remote`. If
12431243
a source directory contains symlinks, use the `links` attribute to
12441244
specify whether to recreate links or follow them.
12451245

1246-
_HTTP_ URIs cannot be used to recursively synchronize whole directory
1246+
HTTP URIs cannot be used to recursively synchronize whole directory
12471247
trees. You cannot use `source_permissions` values other than `ignore`
12481248
because HTTP servers do not transfer any metadata that translates to
12491249
ownership or permission details.
12501250

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.
12561257

12571258
Multiple `source` values can be specified as an array, and Puppet will
12581259
use the first source that exists. This can be used to serve different

source/puppet/latest/types/file.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ mount points.
649649
* Fully qualified paths to locally available files (including files on NFS
650650
shares or Windows mapped drives).
651651
* `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.
653653

654654
The normal form of a `puppet:` URI is:
655655

@@ -668,13 +668,14 @@ specify whether to recreate links or follow them.
668668
_HTTP_ URIs cannot be used to recursively synchronize whole directory
669669
trees. You cannot use `source_permissions` values other than `ignore`
670670
because HTTP servers do not transfer any metadata that translates to
671-
ownership or permission details.
671+
ownership or permission details.
672672

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.
678679

679680
Multiple `source` values can be specified as an array, and Puppet will
680681
use the first source that exists. This can be used to serve different

0 commit comments

Comments
 (0)