Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3310

concat::fragment does not load source from modules

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • concat
    • None

    Description

      When using concat::fragment with a source pointing to a puppet:/// module file it fails to load it:

      $route_file = "/etc/sysconfig/network-scripts/route-${device}"

      concat

      { $route_file: owner => root, group => root, mode => '0644', }

      concat::fragment { "routes_${device}_header":
      target => $route_file,
      source => 'puppet:///modules/xxx/header',
      order => 00,
      }

      Error: /Stage[main]/Machine/Network[eth0]/Concat[/etc/sysconfig/network-scripts/route-eth0]/Concat_file[/etc/sysconfig/network-scripts/route-eth0]: Failed to generate additional resources using 'eval_generate': Could not intern from application/octet-stream: No format match the given format name or mime-type (application/octet-stream)

      ===

      So to verify the source is working properly, path is correct and client can fetch it I added a file resource:

      file

      { '/tmp/puppet-source-test': ensure => file, source => 'puppet:///modules/xxx/header', }

      And client successfully fetches it successfully:

      Notice: /Stage[main]/Machine/Network[eth0]/File[/tmp/puppet-source-test]/ensure: defined content as '

      {md5}

      80065d60ff682b5796a0968a50e83cce'

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nelsonjr Nelson Araujo
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support