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

static catalogs do not copy source host and port to content_uri

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.4.0
    • None
    • None
    • Not Needed
    • Bug fix for unreleased feature.

    Description

      If you define a file resource with a source parameter:

      file { '/tmp/file':
        ensure => file,
        source => 'puppet://host:8888/modules/foo/bar',
      }
      

      Then the content_uri omits the host and port:

        "content_uri": "puppet:///modules/foo/bar"
      

      which can cause the agent to retrieve the file from a different host/port than was originally specified.

      We should preserve the host and port. The reason we don't is because we call CGI.escape which corrupts the URI.

      Attachments

        Activity

          People

            Unassigned Unassigned
            josh Josh Cooper
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support