Details
-
Bug
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
None
-
None
-
Modules
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
- relates to
-
MODULES-4178 puppetlabs-stdlib 4.13.1 is incompatible with puppetlabs-concat 1.2.x
-
- Closed
-