Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1072

support HTTP(S) URL as the file 'source'

    XMLWordPrintable

Details

    • 3
    • Client 2015-07-22, Client 2015-08-05, Client 2015-09-16, Client 2016-01-13
    • New Feature
    • Hide
      This adds support for 'http' and 'https' URLS as source attributes to the file resource.

      Since the checksum metadata is not available from the URL, applying a file resource with an http/s source will always be detected as a content change. This can be avoided by specifying the {{checksum}} and {{checksum_value}} explicitly, or using {{mtime}} as the checksum.
      Show
      This adds support for 'http' and 'https' URLS as source attributes to the file resource. Since the checksum metadata is not available from the URL, applying a file resource with an http/s source will always be detected as a content change. This can be avoided by specifying the {{checksum}} and {{checksum_value}} explicitly, or using {{mtime}} as the checksum.

    Description

      Lots and lots of folks want to be able to do this:

      file { 
          "/tmp/example.txt":
              source => 'http://example.com/example.txt'
      }
      

      This would be good to support; obviously the metadata for the HTTP URI is much less available than via puppet file serving, but this would make a lot of people very, very happy.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redmine.exporter redmine.exporter
              Eric Thompson Eric Thompson
              Votes:
              27 Vote for this issue
              Watchers:
              51 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support