thanks for the explanation I'll update our code then the module and try 
again...

On Thursday, August 20, 2020 at 8:25:08 PM UTC+1 Ben Ford wrote:

> Subscribe to Concat['/etc/exports'] instead.
>
> The concat type used to be a defined type that wrapped a file resource 
> many years ago. It's now a first class citizen itself.
>
> On Thu, Aug 20, 2020 at 4:28 AM Andy Hall <[email protected]> wrote:
>
>> we have updated the concat module and it no longer likes our code...so
>> this used to work fine...
>>
>>   concat { "/etc/exports":
>>     ensure => present,
>>   }
>>
>>   Concat::Fragment {
>>     content => "# HEADER: This file is managed by Puppet. DO NOT EDIT.\n",
>>     order   => '0',
>>   }
>>
>>   concat::fragment { 'nfs_exports_header':
>>     target  => "/etc/exports",
>>   }
>>
>>   exec { 'reload_nfs_exports':
>>     command => "exportfs -ra",
>>     subscribe => File["/etc/exports"],
>>     refreshonly => true,
>>   }
>>
>> ...but after updating to concat version 6.2 we get this error...
>>
>> Server Error: Could not find resource 'File[/etc/exports]' in
>> parameter 'subscribe' (file:
>>
>> /etc/puppetlabs/code/environments/production/modules/flex/manifests/profiles/archive/server.pp,
>> line: 34)
>>
>> what has changed for this to break ? does concat itself not declare
>> the file ? this works fine once we roll back the version.
>>
>> any help most appreciated thanks.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/CAOp5WB7Ew4cz%3D1zo8oSHK4Y74kAdqteXWp%3DG%3D1YBZD3Vrx5Sxw%40mail.gmail.com
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/da3ef8dc-564f-4a05-823d-e3f669888cd7n%40googlegroups.com.

Reply via email to